AbyssalSwamp  ActivaUser
» Guest:  Register | Login | 会员列表

RSS subscription to this AbyssalSwamp  

Previous thread Next thread
     
Title: win7 64位“python 不是内部或外部命令”解决办法  
 
Phoenix001





UID 305208
Digest 0
Points 0
Posts
码币MB 0 Code
黄金 0 Catty
钻石 0 Pellet
Permissions 10
Register 2019-5-27
Status offline
win7 64位“python 不是内部或外部命令”解决办法

默认python安装在Cython27目录下

一些文章里提到以下解决办法:

方法一、计算机->属性->高级系统设置->环境变量->系统变量  
在系统变量里找到PATH,双击PATH,在结尾加上 ";Cython27"(不要引号,不要忽略分号)  
方法二、运行->cmd  
输入set PATH=%PATH%;Cython27  
接下来,再在当前的 cmd下输入python,即可运行


在64位win7平台上亲测,第二种方法虽然可以

但是,第二种方式后,发现关闭当前CMD窗口后,再次打开就会失效,还需重新按照方式2设置。
————————————————
版权声明:本文为CSDN博主「anzice」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u012422144/article/details/40951553



2022-9-29 16:23#1
View profile  Blog  Send a short message  Top
 
Phoenix001





UID 305208
Digest 0
Points 0
Posts
码币MB 0 Code
黄金 0 Catty
钻石 0 Pellet
Permissions 10
Register 2019-5-27
Status offline
RE:win7 64位“python 不是内部或外部命令”解决办法

1111.png

2022-9-29 16:24#2
View profile  Blog  Send a short message  Top
     


  Printable version | Recommend to a friend | Subscribe to topic | Favorite topic  


 


All times are GMT+8, and the current time is 2026-1-14 08:00 Clear informations ->sessions/cookies - Contact Us - CAFFZ - ZAKE