Pip does not exist or cannot be executed in virtualenv

When I try to use pip to install a flask in a virtual environment, I get the following error:

>(venv)username@Username-MacBook-Air ~/G/L/flaskTest> pip install Flask
>Failed to execute process '/Users/User/Google Drive/flaskTest/venv/bin/pip'. Reason:
>The file '/Users/username/Google Drive/flaskTest/venv/bin/pip' does not exist or could not         be executed.

Is there a reason why this is happening?

+4
source share
2 answers

I had the same problem that brought me here. I just created a new virtual environment and got this error. Like you, I had an ancestral catalog with a space in it. After renaming the directory to eliminate space, everything worked fine. (Someday I’ll track the error!) Try changing Google Drive to google_drive or GoogleDrive, etc.

+8

.

, pip, easy_install pip

-1

Source: https://habr.com/ru/post/1539947/


All Articles