How to use setuptools to install in a custom directory?

后端 未结 2 1351
南笙
南笙 2020-12-16 15:42

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

2条回答
  •  难免孤独
    2020-12-16 16:12

    --install-lib sets the installation directory for a module

    python setup.py install --install-lib /src/lib/
    

提交回复
热议问题