Bastian Wenzel added the comment:
Ok I think I found my problem. The system path of of my machine is ok but my
user path contains a stray double quotation mark (") like this:
C:\Program Files\Git\bin";C:\Tools\antlr;C:\Program Files (x86)\Common
Files\Oracle\Java\javapath ...
W
Bastian Wenzel added the comment:
So if I replace this section from venv's activate.bat:
if defined _OLD_VIRTUAL_PATH (
set "PATH=%_OLD_VIRTUAL_PATH%"
) else (
set "_OLD_VIRTUAL_PATH=%PATH%"
)
with the part from virtualenv's activate.bat:
REM if defi
Bastian Wenzel added the comment:
I have attached the activate.bat script that got generated by venv.
My current path looks like this (added line breaks for readability):
C:\Program Files\Git\bin;
C:\Tools\antlr;
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;
C:\ProgramData\Oracle
New submission from Bastian Wenzel :
After creating a virtual environment on win 7 (64bit) with:
py -3.7 -m venv venv
Running venv\Scripts\activate.bat will yield this result:
\Common was unexpected at this time.
(venv) C:\...
My PATH variable contains a path that starts with:
C:\Program