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?
pip freeze , like conda list --export , is more for generating requirements files for your environment. For example, if you have created a package in your customized environment with certain dependencies, you can do conda list --export > requirements.
This solves it:
pip list --format=freeze > requirements.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With