Unable to open virtualenv on WIndows

I am trying to create a virtual env on windows 7 - I have Python27, virtualenvin the site packages, the path is set to site=packagesand scripts, but I can not open virtualenv.

C:\>python virtualenv flask
python: can't open file 'virtualenv': [Errno 2] No such file or directory
0
source share
1 answer

With this command you are trying to run a file virtualenvin a folder C:\. This is not what you want.

I do not know how you installed the virtualenvWindows window, but the installation script should have been placed virtualenv.exein C:/path/to/python/Scripts( C:/Python27/Scripts/virtualenv.exeon my machine).

So all you need is

C:\>C:/path/to/python/Scripts/virtualenv.exe flask

PS: Put C:/path/to/python/ScriptsinPATH

+1
source

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


All Articles