简体   繁体   中英

calling python 3.6 in cmd instead of python 2.7

Whenever I try to run python 3.6 in cmd, I only get python 2.7. I need both on my computer. I changed the PATH, I repaired python3.6, I tried moving it etc.

I write "python" in cmd to call it but its always 2.7 even if it is not in the path anymore 在此处输入图片说明

To call python3 from an absolute path, you can use "C:\\Program Files\\Python36\\python.exe" . For example, "C:\\Program Files\\Python36\\python.exe" hello.py .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM