When I run python venv:
python -m venv test-env
. test-env/bin/activate
I have virtual environment with pip
avaliable (although it's not avaliable for my outside the venv. However, in this environment all packages need to be installed, which are already avaliable globally. I learned I have to set venv
with --system-site-packages
flag. But when I do this:
python -m venv --system-site-packages test-env
. test-env/bin/activate
I can't use pip
inside the virtual environment, so it's pointless, because I can't install any additional packages.
How to solve this problem?