免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6442 | 回复: 10
打印 上一主题 下一主题

环境变量设置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-05-25 16:00 |显示全部楼层 |倒序浏览
按照网上的步骤Path 的变量值设为PATH=PATH;d:\python27
为什么还是不能运行脚本

论坛徽章:
0
2 [报告]
发表于 2012-05-25 16:12 |显示全部楼层
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    hello.py
NameError: name 'hello' is not defined
是不是脚本保存路径还的设置?

论坛徽章:
0
3 [报告]
发表于 2012-05-25 16:20 |显示全部楼层
只有一行
print 'hello world'

论坛徽章:
0
4 [报告]
发表于 2012-05-25 16:26 |显示全部楼层
d:\python27\python hello.py
SyntaxError: invalid syntax

论坛徽章:
0
5 [报告]
发表于 2012-05-25 16:33 |显示全部楼层
回复 8# sunny7476


还是不行

论坛徽章:
0
6 [报告]
发表于 2012-05-25 16:34 |显示全部楼层
回复 9# anonymous0502
这个可以
按F5也能执行


   

论坛徽章:
0
7 [报告]
发表于 2012-05-25 16:39 |显示全部楼层
回复 12# anonymous0502

只安装了一个版本
修复了也不行
看来只能卸掉重装了
   

论坛徽章:
0
8 [报告]
发表于 2012-05-25 16:52 |显示全部楼层
回复 14# anonymous0502
重装了还是不行
难道是版本问题?

   

论坛徽章:
0
9 [报告]
发表于 2012-05-28 08:38 |显示全部楼层
回复 17# tempo8

啥意思?
我系统是XP sp3 32位
python是2.7

   

论坛徽章:
0
10 [报告]
发表于 2012-05-28 09:08 |显示全部楼层
回复 19# anonymous0502

o
那我看看
   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP