[英]Pip freeze generating '@ file:///' on conda environment
First time this is happening to me, and I have no idea why pip is outputting the requirements in such strange form.这是第一次发生在我身上,我不知道为什么 pip 会以这种奇怪的形式输出需求。 I'm using a conda environment.
我正在使用 conda 环境。 Output example from
pip freeze
: Output 示例来自
pip freeze
:
aioredis @ file:///home/conda/feedstock_root/build_artifacts/aioredis_1591809643295/work
amqp @ file:///home/conda/feedstock_root/build_artifacts/amqp_1591005859311/work
asgiref==3.2.7
async-timeout==3.0.1
attrs==19.3.0
Why aren't aioredis
and amqp
listed with their respective version just like the other requirements?为什么
aioredis
和amqp
不像其他要求一样列出各自的版本?
This solves it:这解决了它:
pip list --format=freeze > requirements.txt
You can use !conda list
instead.您可以改用
!conda list
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.