我想切换到pipenv,但我当前的requirements.txt转换不是1:1。
requirements.txt包含:
...
lxml==3.8.0 --no-binary :all:
pandas==0.23.4
...因此,当我运行pipenv install时,它工作得很好:
$ pipenv install
requirements.txt found, instead of Pipfile! Converting…
✔ Success!
Warning: Your Pipfile now contains pinned versions, if your requirements.txt did.
We recommend updating your Pipfile to specify the "*" version, instead.
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
✔ Success!
Updated Pipfile.lock (383f9f)!
Installing dependencies from Pipfile.lock (383f9f)…
? ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 44/44 — 00:00:05
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run....but生成的Pipfile只包含:
...
lxml = "==3.8.0"
pandas = "==0.23.4"
...有没有办法在Pipfile中指定对--no-binary :all:的需求
发布于 2019-07-15 20:52:28
pipenv支持任何PIP变量,因此通过PIP_...环境变量支持大多数pip选项。
虽然不完全是您想要的,但是在运行pipenv之前设置PIP_NO_BINARY=lxml可能是朝着正确方向迈出的一步。
https://stackoverflow.com/questions/55730350
复制相似问题