Reputation: 17
I know this is a very dumb question, but I can't install CherryPy. In the documentation is written:
To install, change to the directory where setup.py is located and type (python-2.3 or later needed):
python setup.py install
Which is what I do, I type this in Python Shell and it gives me error Invalid syntax
, but I don't think I have any syntax errors.
Upvotes: 1
Views: 9865
Reputation: 11
I have found out the steps to install via command prompt, please fer to the attachment below. For me "python setup.py install" does not work but it works find for "setup.py install" after I pointed it properly to the directory>
Hope my experiment helps: Step1 Step2
Upvotes: 1
Reputation: 133
If you are installing on Mac and say you are using python 3, you would want to use:
sudo python3.3 setup.py build
Then after build is finished.
sudo python3.3 setup.py install
Upvotes: 0
Reputation: 2103
The best installation for Cherrypy, Mako, Python with terminal in Ubuntu is:
sudo apt-get install subversion python-mako python-simplejson python-cherrypy3 graphviz
And after sudo apt-get update
and after sudo apt-get upgrade
Upvotes: 2
Reputation: 106430
You won't install programs in the Python shell. Navigate to where you downloaded the source and run python setup.py install
.
Alternatively, you can use pip:
pip install cherrypy
Upvotes: 4
Reputation: 169334
"I type this in Python Shell"...
Don't type that in the Python shell.
>>> python setup.py install
File "<stdin>", line 1
python setup.py install
^
SyntaxError: invalid syntax
Type it at the commandline.
$ python setup.py install
Or if you're on Windows:
C:\>python setup.py install
Upvotes: 1