惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
P
Palo Alto Networks Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
雷峰网
雷峰网
T
Tenable Blog
人人都是产品经理
人人都是产品经理
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Scott Helme
Scott Helme
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Recorded Future
Recorded Future
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
Cloudbric
Cloudbric
C
Check Point Blog
Engineering at Meta
Engineering at Meta
TaoSecurity Blog
TaoSecurity Blog
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
N
News and Events Feed by Topic
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
腾讯CDC
量子位
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
Vercel News
Vercel News
F
Full Disclosure
T
Troy Hunt's Blog
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs

博客园 - 张荣华

摩托车买车学车流水账 我的2016年 AutoHotKey实现将站点添加到IE的Intranet本地站点 如何通过***自动更新Chrome - 张荣华 如何在Excel中通过VBA快速查找多列重复的值 写给大家看的设计书 VSS每次打开都需要服务器账号和密码的解决方法 好的工作习惯 某CRM项目招投标工作的感悟 读书笔记---PMBOK第五版官方中文版 善用佳软,打造高效率的办公环境 怎么在Microsoft Project中冻结列 我的家庭保险方案推荐 如何修改Total Commander配件文件的位置 豆瓣统计-2015 读书笔记---《火球:UML大战需求分析》 博客编写客户端分享 IT人员如何保护视力 从Evernote迁移到Wiz 读书笔记---《即学即用财务常识120例》
SublimeText3下的Python开发环境配置
张荣华 · 2015-12-04 · via 博客园 - 张荣华

Posted on 2015-12-04 10:06  张荣华  阅读(5969)  评论()    收藏  举报

最近重装了机器,需要重新安装Python的开发环境,中间遇到了几个问题,特些记录一下,以防下次备忘。

  1. 从Python的网站下载安装Python,这个非常简单,没有什么值得说的,大家可以参考廖雪峰的这个文章
  2. 安装Sublime text 3, 安装完成后,根据使用Sublime Text 3做Python开发 的推荐,安装Anaconda和SublimeRepl插件。
  3. 按道理来说,完成前面两部就可以了,但由于我的Sublime text 3 是安装在Dropbox中的绿色版,所以这次重装后系统是Win7而不是上次的Win10,由于Pyhton的安装路径发生了变化,所以完成上步后就遇到了2个问题如下。
  4. “Run Currunt file" 时报错,如下

Sublime Text

FileNotFoundError(2, '系统找不到指定的文件。', None, 2)

确定

错误原因是找不到Python 环境变量,打开SublimeRepl的Settings-User后,添加如下的行,解决问题,具体可以参考REPL error with Sublime Text 3,
{ "default_extend_env": {"PATH":"C:\\Program Files (x86)\\Python 3.5"}, }
5. 编辑Python源文件时报错如下,


Sublime Text

Anaconda can not spawn a new process with your current configured python interpreter (C:/Program Files/Python 3.5/python.exe), make sure your interpreter is a valid binary and is in your PATH or use an absolute route to it, for example: C:\Python27\python.exe

确定

错误原因同上,解决方法同样为打开Anaconnda的Settings—User增加
{ "python_interpreter": "C:/Program Files (x86)/Python 3.5/python.exe" }