Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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?

like image 568
Filipe Avatar asked Jul 12 '20 15:07

Filipe


People also ask

What is conda equivalent of pip freeze?

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.


1 Answers

This solves it:

pip list --format=freeze > requirements.txt
like image 154
Filipe Avatar answered Sep 28 '22 09:09

Filipe