我最近安装了另一个 Python 而没有删除以前的,现在当我尝试从 cmd 运行我的脚本时,Windows 促使我选择将运行 py.script 的应用程序。
as alex067 stated, you have to set the PATH variable in your Environment Variables.
You can follow the instructions here https://superuser.com/questions/143119/how-do-i-add-python-to-the-windows-path
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.