Skip to content Skip to sidebar Skip to footer

What Does Happen If I Use Sudo Pip In Python Virtualenv?

What does happen if I install something using pip/pip3 with sudo privilege in virtualevn? I got PermissionError while installing tensorflow with pip3 inside virtualenv, so I used s

Solution 1:

Is your virtualenv using Python 3.5 as its interpreter? You can check this by just running python --version with the virtualenv activated. Based on your statements I suspect you have a 2.7 virtualenv. Since the virtualenv is 2.7 pip3.5 is not operating within the context of the virtual environment, which is why you needed to use sudo. virtualenv -p python3.5 myvenvname should give you what you want.


Post a Comment for "What Does Happen If I Use Sudo Pip In Python Virtualenv?"