Rob*_*ark 2 pipenv pipenv-install
我跑去在当前目录中pipenv install创建一个Pipfile没有Pipfile. 它给出了以下输出,但没有创建Pipfile. 为什么不?
Installing dependencies from Pipfile.lock (639627)\xe2\x80\xa6\n \xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89\xe2\x96\x89 0/0 \xe2\x80\x94 00:00:00\nTo activate this project's virtualenv, run pipenv shell.\nAlternatively, run a command inside the virtualenv with pipenv run.\nRun Code Online (Sandbox Code Playgroud)\n看起来像是找到了Pipfile.lock某个地方并使用了它?(类似git行为)
使用PIPENV_NO_INHERIT环境变量忽略从当前目录之上的目录继承,例如,
PIPENV_NO_INHERIT=True pipenv install
Run Code Online (Sandbox Code Playgroud)
在您的情况下,pipenv搜索当前目录上方的目录并找到它使用的 Pipfile(可以使用 查看其位置pipenv --where)。
(顺便说一句,我查看了pipenv文档,但找不到讨论此行为的位置,因此,如果您找到该文档,请在此处添加指向该文档的链接。)
| 归档时间: |
|
| 查看次数: |
1484 次 |
| 最近记录: |