python不被识别为内部或外部命令 [英] python is not recognised as an internal or external command

查看:403
本文介绍了python不被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个非常恼人的问题。我已经解决了网络的解决方案,但我发现的是关于更改PATH变量的提示,当然,我做了。我的Python安装目录是C:\ Python27。它是一个32位版本。每当我在命令提示符中键入python,它说它不被识别为内部或外部命令。目前,我的PATH变量设置为C:\Python27; C:\Python27\Lib\site-packages\; C:\Python27 \Scripts。任何人都有什么想法?我运行Windows 7的方式(64位)。我很绝望。 heck,如果没有什么工作,我想我会尝试双引导Linux和Windows 7 ...

This is a really annoying problem. I've prowled the web for solutions, but all I found was tips about changing the PATH variable, which I did, of course. My Python install directory is C:\Python27. It' a 32 bit version. Whenever I type python in the command prompt, it says that it isn't recognised as an internal or external command. Currently, my PATH variable is set to C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts. Anyone has any ideas? I run Windows 7 by the way (64 bit). I'm pretty desperate. Heck, if nothing works I guess I'll try dual-booting Linux and Windows 7...

推荐答案

只是添加Python

Just adding the Python path and trying again worked for me (without reboot).

Python 2.7的MS-dos命令:

MS-dos command for Python 2.7:

set PATH=%PATH%;C:\python27\

MS-dos命令为Python 3.3:

MS-dos command for Python 3.3:

set PATH=%PATH%;C:\python33\

(检查是否是安装Python的文件夹)。

(check if that is the folder where you installed Python).

这篇关于python不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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