Python - manually install package using virtualenv

后端 未结 4 502
不思量自难忘°
不思量自难忘° 2020-12-12 10:07

I have a python program I want to install into my virtualenv - it\'s a zip package that I need to unzip and then run a setup.py program - but my question is more regarding h

4条回答
  •  温柔的废话
    2020-12-12 10:29

    I typically would extract the program to a temporary folder, then from that folder, run the setup.py using the direct path to the virtualenv python instance. eg if your virtualenv is in /home/username/virtualpy, use this (from your temporary folder)

    /home/username/virtualpy/bin/python setup.py install
    

    This should install it to your virtualenv site package folder.

提交回复
热议问题