【问题标题】:Is it possible to specify `--no-binary :all:` in the Pipfile?是否可以在 Pipfile 中指定 `--no-binary :all:` ?
【发布时间】:2019-04-17 14:46:02
【问题描述】:

我想切换到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.

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

...
lxml = "==3.8.0"
pandas = "==0.23.4"
...

有没有办法在Pipfile中指定--no-binary :all:的需要?

【问题讨论】:

    标签: python pipenv pipfile


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2013-04-03
      • 1970-01-01
      • 2010-11-26
      • 2020-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-26
      • 1970-01-01
      相关资源
      最近更新 更多