This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
working_with_python [2019/02/20 13:49] – [Working with Python] lenocil | working_with_python [2019/04/23 13:25] – jansen | ||
---|---|---|---|
Line 67: | Line 67: | ||
* When globally installed packages are on the python path, and they satisfy the installation requirements, | * When globally installed packages are on the python path, and they satisfy the installation requirements, | ||
* pip will not perform a --user install in a virtualenv unless the virtualenv was created specifying '' | * pip will not perform a --user install in a virtualenv unless the virtualenv was created specifying '' | ||
+ | |||
+ | === Method 1 - subsection Incompatible versions === | ||
+ | |||
+ | Unfortunately, | ||
+ | |||
+ | In cases like this, it might be necessary to create a separate python user directory structure for those machines: | ||
+ | |||
+ | Add to your .bashrc something like this: | ||
+ | if [ ! -f / | ||
+ | export PYTHONUSERBASE=$HOME/ | ||
+ | fi | ||
+ | For users of the '' | ||
+ | if (! -f / | ||
+ | setenv PYTHONUSERBASE $HOME/ | ||
+ | endif | ||
+ | |||
+ | And make sure to create that directory ~/ | ||
==== METHOD 2: virtualenv ==== | ==== METHOD 2: virtualenv ==== |