What happens if I install something using pip / pip3 with sudo privilege in virtualevn?
I have a PermissionError when installing tensorflow with pip3 inside virtualenv, so I used sudo.
(.tensorflow) $ pip3.5 install tensorflow ... PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.5/site-packages' (.tensorflow) $ sudo pip3.5 install tensorflow
Then I can import shadoworflow into ipython3 outside of virtualenv.
However, I did not receive PermissionError when I installed using pip2.
So, if I install something inside virtualenv with sudo privilege, is it accessible from the outside?
Thanks.
source share