python is not recognised as an internal or externa

2019-03-25 15:44发布

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 cmd
8条回答
别忘想泡老子
2楼-- · 2019-03-25 16:25

Okay, as you said your Python install directory is C:\Python27, open my computer, then open c: drive, if you don't see "Python27" named folder there then try to search it using search option, (in my case i found it in old.window folder, don't know how it moved there) cut and past it in c drive along with folders like, program files, user etc... , now open cmd and type python and hit enter to check if it is working now,

查看更多
够拽才男人
3楼-- · 2019-03-25 16:26

When installing, there is a checkbox that is by default not selected, but it asks to add python to the environment variable. Re-install and check that box.

I'd rather the installer do it than struggle in the weeds myself.

查看更多
登录 后发表回答