是否可以在 Pipfile 中指定 `--no-binary :all:`?

Ika*_*ský 3 python pipenv pipfile

我想切换到pipenv,但转换我的电流requirements.txt不是 1:1。

其中requirements.txt包含:

...
lxml==3.8.0 --no-binary :all:
pandas==0.23.4
...
Run Code Online (Sandbox Code Playgroud)

所以,当我运行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.
Run Code Online (Sandbox Code Playgroud)

...但生成的Pipfile只包含:

...
lxml = "==3.8.0"
pandas = "==0.23.4"
...
Run Code Online (Sandbox Code Playgroud)

有没有办法如何指定需要--no-binary :all:Pipfile

Zaa*_*Hai 5

pipenv 尊重任何 PIP 变量,因此通过PIP_...env vars支持大多数 pip 选项。

虽然不完全是你想要的,但PIP_NO_BINARY=lxml在运行 pipenv 之前设置可能是朝着正确方向迈出的一步。