I have installed Anaconda with Python3. Then, I additionally created a virtual environment with Python2. There are no other Pythons on the computer. My problem:
If I run the command
python C:\Path\To\myScript.py arg1 arg2
in CMD, Python 3.4 is used to execute myScript.py (as expected/desired). But! If I create a .bat file that contains precisely the upper command, Python 2.7 is used. (I check the version with the command print(sys.version) in myScript.py).
How can I fix that?
...;C:\Anaconda3;C:\Anaconda3\Scripts;...are the only two Python-related parts. InC:\Anaconda3, there ispython.exethat starts Python3. InC:\Anaconda3\Scriptsthere is nopython.exe.C:\Anaconda3is my python installation folder.