Ray P.
Ray P.

Reputation: 925

The filename, directory name, or volume label syntax is incorrect - virtualenvwrapper

I have virtualenvwrapper-win installed with python3.6 on win7. When using it, and providing path to another version of python I get these error messages:

> mkvirtualenv mynew_env --python=d:\python\python35\python.exe
Running virtualenv with interpreter d:\python\python35\python.exe
Using base prefix 'd:\\python\\python35'
New python executable in C:\Users\Bob\Envs\mynew_env\Scripts\python.exe
Installing setuptools, pip, wheel...done.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.

How do I fix it? I tried different slashes in the path to my python installation: backslashes, forward slashes, double backslashes, the result is always the same.

Upvotes: 2

Views: 2710

Answers (1)

Robert
Robert

Reputation: 126

For some reason on the windows version of virtualenvwrapper it appears that you need to specify the options before the name of the environment, so you should initialise it as below:

mkvirtualenv --python=d:\python\python35\python.exe  mynew_env

Upvotes: 6

Related Questions