I've just downloaded Winpython 3.4.4.2 , and I'm trying to use it portably from a flash drive. I'm using git-bash as well. I'm in Win 7 and I set the "path" and "pythonpath" environmental variables to include
F:\WinPython-32bit-3.4.4.2
If I look in the real Scripts folder:
/real/Scripts
$ ls
Activate.ps1 _decimal.pyd _msi.pyd _sqlite3.pyd _testimportmultiple.pyd easy_install-3.4-script.py easy_install.exe pip-3.4-script.py pip.exe python3.dll pywintypes34.dll tk86t.dll
_bz2.pyd _elementtree.pyd _multiprocessing.pyd _ssl.pyd _tkinter.pyd easy_install-3.4.exe easy_install.exe.manifest pip-3.4.exe pip.exe.manifest python34.dll select.pyd unicodedata.pyd
_ctypes.pyd _hashlib.pyd _overlapped.pyd _testbuffer.pyd activate.bat easy_install-3.4.exe.manifest msvcp100.dll pip-3.4.exe.manifest pyexpat.pyd pythoncom34.dll sqlite3.dll vcomp100.dll
_ctypes_test.pyd _lzma.pyd _socket.pyd _testcapi.pyd deactivate.bat easy_install-script.py msvcr100.dll pip-script.py python.exe pythonw.exe tcl86t.dll winsound.pyd
I've created a virtualenv called 'real'. Now when I try to activate the virtualenv I get:
/real/Scripts
$ source activate.bat
sh: @echo: command not found
sh: ./activate.bat: line 4: syntax error near unexpected token `('
sh: ./activate.bat: line 4: `if not defined PROMPT ('
/real/Scripts
$ source activate
sh: activate: No such file or directory
The activate.bat file starts with:
@echo off
set "VIRTUAL_ENV=F:\envs\virtalenvs\real"
if not defined PROMPT (
set "PROMPT=$P$G"
)
if defined _OLD_VIRTUAL_PROMPT (
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
)
How can I activate the virtualenv ?