L
L
lleviy2019-12-01 11:23:16
Django
lleviy, 2019-12-01 11:23:16

Why is everything I install in a virtual environment installed globally?

All the modules that I installed in the virtual environment - there was always an icon (my_env) on the right side of the command line - installed globally in the folder "C:\Users\admin\AppData\Local\Programs\Python\Python37-32\lib\site- packages".
I understand that in a good way the modules should have been installed in this folder: ...\my_env\Lib\site-packages.
In addition, when I pip freeze > requirements.txt all global modules are written to the file, the same thing happens when I want to download modules from requirements.txt - they are all installed in the global folder.
In general, the virtual environment behaves as if it does not exist at all, as if I run all commands directly from the usual command line.
How to fix it?
UPD: I understand that I can fix the problem by reinstalling Wirth. environment, but I'm wondering why this happens at all (before the environment worked fine).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question