Wil*_*ams 5 python virtualenv pipenv
我有很多使用virtualenvand requirements.txt或./requirements/pattern 的项目,但是现在使用pipenv显然好很多。
这似乎是很容易产生requirements.txt的pipenv,但走另一条路似乎更加扑朔迷离。
似乎没有明显的方法可以将现有项目“转换”为pipenv。
我正在编写一个脚本来pipenv对所有内容执行,requirements.txt但这是不对的-有没有办法将现有的requirements.txt应用于pipenv?
好的,我想办法回答我自己的问题,并认为有可能采用“官方”/详细的方式来做到这一点:
$ pipenv shell
(env) $ pip install -r requirements
Run Code Online (Sandbox Code Playgroud)
现在也存在:https : //pipenv.kennethreitz.org/en/latest/basics/#importing-from-requirements-txt
$ pipenv install -r path/to/requirements.txt
Run Code Online (Sandbox Code Playgroud)
真的,我只是误解了pipenv.