Windows 10无法识别python [英] python is not recognized windows 10

查看:218
本文介绍了Windows 10无法识别python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在设备上安装了Python 3.6.3.当我在cmd中键入python时,它给了我这个错误.我的环境变量中确实有PATH. 路径列表.通常,这应该可以修复它,但是仍然无法识别python.我需要帮助.

I recently installed Python 3.6.3 on my device. When I type python in my cmd, it gives me this error. I do have the PATH in the environment variables. Path Lists. This should normally fix it but python is still not recognized. I need help.

推荐答案

确保路径位于系统PATH变量中,而不位于用户PATH变量中.将路径添加到PATH变量后,请确保关闭并重新打开所有命令提示符,以便它们使用更新的PATH.您还应该通过直接从文件夹检查python来确认路径.下面的示例适用于OP的路径.确保使用特定于安装的路径(例如,%USERPROFILE%\ AppData \ Local \ Programs \ Python \ Python36).另外,请确保为Scripts文件夹添加第二个PATH变量(例如%USERPROFILE%\ AppData \ Local \ Programs \ Python \ Python36 \ Scripts)以访问诸如PIP之类的工具.

Make sure the path is in your System PATH variable and not in a User PATH variable. After adding the path to the PATH variable, make sure you close and re-open any command prompts so they use the updated PATH. You should also confirm the path by checking python directly from the folder. The example below is for the OP's path. Make sure you use the path specific to your installation (e.g. %USERPROFILE%\AppData\Local\Programs\Python\Python36). Also make sure you add a second PATH variable for the Scripts folder (e.g. %USERPROFILE%\AppData\Local\Programs\Python\Python36\Scripts) for access to tools such as PIP.

cd c:\Python\Python36-32
python --version

这篇关于Windows 10无法识别python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆