首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >是否可以在Pipfile中指定`--no-binary :all:`?

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

Stack Overflow用户
提问于 2019-04-17 22:46:03
回答 1查看 1.5K关注 0票数 4

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

requirements.txt包含:

代码语言:javascript
复制
...
lxml==3.8.0 --no-binary :all:
pandas==0.23.4
...

因此,当我运行pipenv install时,它工作得很好:

代码语言:javascript
复制
$ 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只包含:

代码语言:javascript
复制
...
lxml = "==3.8.0"
pandas = "==0.23.4"
...

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

EN

回答 1

Stack Overflow用户

发布于 2019-07-15 20:52:28

pipenv支持任何PIP变量,因此通过PIP_...环境变量支持大多数pip选项。

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

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55730350

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档