I have a Python package that I need to install in the /usr/lib/python2.7/dist-packages
or any other specific directory for that matter.
Whenever I run t
Since the python setup.py install
command is just a shortcut to easy_install
, try running it directly, it has the --install-dir
option:
easy_install . --install-dir /usr/lib/python2.7/dist-packages
You can get other available options with python setup.py install -h
, in case you need some more, but these are rather cryptic.
--install-lib
sets the installation directory for a module
python setup.py install --install-lib /src/lib/