Python安装环境搭建(python+pycharm+pid)

来源:互联网 发布:网络盒子哪个好 编辑:程序博客网 时间:2024/05/22 06:34
Python安装环境搭建(python+pycharm+pid):
 
准备软件:
python3.4.3.msi    
下载:
python3.5
python2.7.10
注:基本的程序编译器
pycharm-professional-4.5.3.exe  
注:IDE集成开发环境:语言编辑器,调试器,编译器等
get-pip.py
注:PyPI (Python Package Index) 就是Python的软件包的仓库,python的包管理器,可以方便的帮助,下载安装python的第三方库

完全下载:python3.4.3.msi+pycharm-professional-4.5.3.exe+get-pip.py
百度云盘:
互联网软件开发分享:
链接:http://pan.baidu.com/s/1jGISFNw 密码:gcj9
windows目录下!!!
 
1:python安装:python3.4.3.msi,正常点击安装完毕!

2:配置Python的系统环境变量PATH=:
      D:\Python34
 注:包括总环境变量设置:
D:\Program Files\Python35-32;
D:\Program Files\Python35-32\Lib\idlelib;
D:\Program Files\Python35-32\Scripts;
注:python安装路径!
 
3:测试安装,cmd运行python指令:
Microsoft Windows [版本 10.0.10240](c) 2015 Microsoft Corporation. All rights reserved.C:\Users\Tony_tian>pythonPython 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> print("Welcome join to Python!")Welcome join to Python!>>>
注:ok安装完成!
 
4:安装pycharm,正常点击安装完毕!
 
5:pip安装:
D:\0Adeveloperx\tools\pip>python get-pip.py
注:如果安装遇到:
问题1:Cannot fetch index base URL https://pypi.python.org/simple/
官方地址访问极慢(翻墙):https://pypi.python.org/simple
解决1
修改镜像源在不同操作系统中,修改文件的位置是不同的,默认路径下并不存在配置文件,需要新建:在linux默认的路径是:$HOME/.pip/pip.conf在windows默认的路径是:%HOME%\pip\pip.ini然后在配置文件中写入: [global] index-url = http://pypi.mirrors.ustc.edu.cn/simple/
即可修改镜像源,等号之后的部分就是镜像源的地址。 建议改用:速度递减:阿里云 速度最快 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/douban http://pypi.douban.com/simplePython官方 https://pypi.python.org/simplev2ex http://pypi.v2ex.com/simple中国科学院 http://pypi.mirrors.opencas.cn/simple/清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
 
解决2:
请用浏览器访问上边的地址,能不能看到源码目录,如果能,再试一次“python get-pip.py”命令,即可!
提示:安装完成:
D:\0Adeveloperx\tools\pip>python get-pip.pyDownloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.2-py2.py3-none-any.whl#md5=5ff9fec0be479e4e36df467556deed4dInstalling collected packages: pip  Found existing installation: pip 6.0.8    Uninstalling pip:      Successfully uninstalled pipSuccessfully installed pipCleaning up...
或D:\0Adeveloperx\tools\pip>python get-pip.pyRequirement already up-to-date: pip in d:\program files\python35-32\lib\site-packagesCleaning up...
都为安装完成!
6:配置pip的系统环境变量PATH=:
     D:\Python34\Scripts
注:python安装路径下的Scripts目录,由pip.exe!
 
7:测试pip:
D:\0Adeveloperx\tools\pip>pipUsage:  pip <command> [options]………………!帮助文档!D:\0Adeveloperx\tools\pip>pip listpip (7.1.2)setuptools (12.0.5)
0 0
原创粉丝点击