I am trying to show python libraries in requirements.txt by using "pip freeze > requirements.txt" and my virtual environment is still activated.
But instead of getting my current virtual env's libraries, I am getting all the libraries in my requirements.txt file that i used in other environment earlier.
What is the issue?
Your virtualenv is certainly messed up.
To find the packages which are not required, run:
pip list --not-required
But, I think it's time to recreate your virtualenv.
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.