win7(64bit)python相关环境模块该怎样搭建

win7(64bit)python相关环境模块该怎样搭建,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

创新互联公司专注于新抚企业网站建设,成都响应式网站建设,商城网站建设。新抚网站建设公司,为新抚等地区提供建站服务。全流程按需网站建设,专业设计,全程项目跟踪,创新互联公司专业和态度为您提供的服务

包括Python,eclipse,jdk,pydev,pip,setuptools,beautifulsoup,pyyaml,nltk,MySQLdb的下载安装配置。

*************************************************
python
下载:
python-2.7.6.amd64.msi
http://www.python.org/
Python 2.7.6 released
Python 2.7.6 is now available.
http://www.python.org/download/releases/2.7.6/
Windows X86-64 MSI Installer (2.7.6) [1] (sig)

 

安装

配置:
我的电脑->属性->高级->环境变量->系统变量中的PATH增加:C:\Python27;

验证:
在桌面建立一个文件pt.py,内容为print 'hello python'
在cmd中输入命令python C:\Users\***\Desktop\pt.py
***为电脑用户名。


C:\Users\***>python C:\Users\***\Desktop\pt.py
hello python

C:\Users\***>

 

*************************************************
Eclipse:
eclipse-java-indigo-SR2-win32-x86_64.zip

http://www.eclipse.org/downloads/
Older Versions
http://wiki.eclipse.org/Older_Versions_Of_Eclipse
Eclipse Indigo SR2 Packages (v 3.7.2)
http://www.eclipse.org/downloads/packages/release/indigo/sr2
Eclipse IDE for Java Developers, (128 MB)
Downloaded 1,226,421 TimesDetails Windows 32-bit  64-bit 
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/SR2/eclipse-java-indigo-SR2-win32-x86_64.zip
Download eclipse-java-indigo-SR2-win32-x86_64.zip from:

 

*************************************************
jdk:
jdk-7u45-windows-x64.exe
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Windows x64 125.31 MB     jdk-7u45-windows-x64.exe

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

 

*************************************************
pydev
为了在Eclipse中进行python工程的开发。
http://sourceforge.net/projects/pydev/files/
PyDev for Eclipse
Looking for the latest version? Download PyDev 3.2.0.zip (8.2 MB)
版本一直在更新中,几天前是3.1.0.zip

下载完,解压缩,将features和plugins文件夹中的内容分别复制到eclipse的features和plugins文件夹下。
重复则替换。

具体方法见windows xp,32位,环境下,Eclipse+python平台搭建
http://blog.sina.com.cn/s/blog_8af1069601019uaw.html
“安装python插件”,打开eclipse先来配置preference-》PyDev-》Interpreter-Python-》New python的执行exe文件的目录

 

*************************************************
pip
https://pypi.python.org/pypi/pip
Download
pip-1.4.1.tar.gz
A tool for installing and managing Python packages.
解压缩,在cmd中进入到pip-1.4.1目录,执行 python setup.py install
报错:
ImportError: No module named setuptools
所以,需要先安装setuptools

 

*************************************************
setuptools
https://pypi.python.org/pypi/setuptools/
setuptools 2.0.2
点击右侧Downloads按钮,跳至Downloads
Scroll to the very bottom of the page to find the links.
需要到页面底部去找链接下载。

File Type Py Version Uploaded on Size
setuptools-2.0.2-py2.py3-none-any.whl (md5)  Python Wheel  3.4 2013-12-29 527KB
setuptools-2.0.2.tar.gz (md5)  Source  2013-12-29 765KB
下载setuptools-2.0.2.tar.gz (md5)

解压缩
在cmd中进入到setuptools-2.0.2目录,执行 python setup.py install
成功标志:
Installed c:\python27\lib\site-packages\setuptools-2.0.2-py2.7.egg
Processing dependencies for setuptools==2.0.2
Finished processing dependencies for setuptools==2.0.2

继续安装pip

 

*************************************************
pip
在cmd中进入到pip-1.4.1目录,执行 python setup.py install
成功标记:
Installed c:\python27\lib\site-packages\pip-1.4.1-py2.7.egg
Processing dependencies for pip==1.4.1
Finished processing dependencies for pip==1.4.1

添加到系统环境变量Path:C:\Python27\Scripts;

在cmd测试,输入pip,输出:
C:\Users\***>pip

Usage:
  pip [options]

Commands:
  install                     Install packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  zip                         Zip individual packages.
  unzip                       Unzip individual packages.
  bundle                      Create pybundles.
  help                       

关于win7(64bit)python相关环境模块该怎样搭建问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注创新互联行业资讯频道了解更多相关知识。


网页题目:win7(64bit)python相关环境模块该怎样搭建
标题来源:http://azwzsj.com/article/pdghdd.html