Skip to content Skip to sidebar Skip to footer

Can I Use Setuptools Without Permissions To /usr/local Etc

I want to use some packages (i.e., IPython or zdaemon), butI am doing this on a system (my university) that does not give me permissions for /usr/local, /usr/bin, or all these dire

Solution 1:

Sure, you can use a configuration file that specifies an alternate installation directory, or use the --install-dir option. The standard place to put Python packages in your own user account is, I think, in $HOME/.local/ (if you're using Python 2.6). So for instance, pure-Python packages will wind up in $HOME/.local/lib/python2.6/site-packages/.

If your version of setuptools is recent enough to support it, also have a look at the --prefix option.

Solution 2:

Use the --install-dir option. You need to make sure this directory is in PYTHONPATH. You may find the documentation helpful.

Solution 3:

Other Option is using virtualenv to help, if available

$ virtualenv myenv $ source myenv/bin/activate (myenv)$ easy_install mycoolpackage

now it will end up in myenv subdir to re-activate, just call the source line above and to deactivate it, just close the terminal or (myenv)$ deactivate $

Post a Comment for "Can I Use Setuptools Without Permissions To /usr/local Etc"