Reputation: 699
I'm new to using mac and tornado. I have installed easy_install and tried installing tornado but I am keep getting "Permission denied"
easy_install tornado
Searching for tornado Best match: tornado 2.3 Processing tornado-2.3-py2.7.egg Adding tornado 2.3 to easy-install.pth file error: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/easy-install.pth: Permission denied
What is going wrong?
Upvotes: 0
Views: 5289
Reputation: 1880
Try running it like this:
sudo easy_install tornado
When you are using stock python on OSX the easy_install command will install tornado system wide and it therefore needs admin rights. When using homebrew python (e.g. installed brew and python with "brew install python") then you can install python packages without having to do the sudo.
One word of advice: when working on a lot of python projects it's better to use virtualenv for installing python deps; that way you can have multiple isolated python environments AND you don't need the sudo.
Upvotes: 1
Reputation: 8343
You might want to try running that command as root if you want to install tornado system-wide or take a look at virtualenv
for installing python packages in a sandboxed environment. Also, I recommend pythonbrew
if you want to experiment with various versions of Python.
Upvotes: 0