XP下python安装、变量
2016-11-26 本文已影响2047人
认知偏差
安装Python3.5.1,最低操作系统要求是Windows 7 SP1。
Python3.4.x 版本 是支持Windows XP最后的版本。
http://www.cnblogs.com/yuanzm/p/4089856.html
http://jingyan.baidu.com/article/b0b63dbff271e24a4830708d.html

手动添加环境变量:鼠标右键我的电脑 -> 属性 -> 点击高级系统设置 -> 点击环境变量 -> 点击PATH -> 在最后面加上我们的Python安装路径 -> 点击确定。用一张图来表示就是:

一、 安装python
1. 下载python 2.7版本并安装;
2. 在安装到自定义python的时候选择 add python to ptah项:

3. 点next直到完成安装。
二 、 配置notepad++
1. 安装 nppexec 插件:
点击 插件---plugin manager --- show plugin manager ,选择 nppexec 插件安装;
2. 配置运行python 脚步
点击 插件---nppexec---execute ;
在 command 命令处输入:
npp_save
cd "$(CURRENT_DIRECTORY)"
F:\Python27\python.exe "$(FILE_NAME)"
命令名称保存为python。

3. advanced options 菜单中添加python item名称:

4. 为可执行脚步添加快捷键
点击 运行---管理快捷键 ---plugin commands 中,添加 run python 的快捷键。

程序编辑完成后,点击 alt + 空格,程序执行。