First time this is happening to me, and I have no idea why pip is outputting the requirements in such strange form. I'm using a conda environment. Output example from 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?
This solves it:
pip list --format=freeze > requirements.txt
You can use !conda list
instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.