virtualenv - how to install python packages in "site-packages"? -


i made virt2 virtual environment.
using $ python -m venv virt2.

i want install custom packages in "site-packages" directory. packages installed in "dist-packages" directory.

enter image description here

what should install packages in python virtual environment site-packages??


my python version 3.6.2 (in /usr/local/bin)

you use sudo , sudo switches user root, i.e. you're outside of virtual env. system pip3 outside of virtual env installs packages system directory dist-packages.

run pip install inside virtual env without sudo.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -