1、Windows下搭建Python27环境包括Win7 64位下安装setuptoolsWeb、Java、Python、NoSQL、Hadoop、Openstack、Linux、关系型数据库、云计算、大数据.积跬步以至千里跳至正文 首页 关于 知识共享 找吴飚 你的吐槽板 你的电台Linux下搭建Python2.7环境Python爬虫抓取代理服务器Windows下搭建Python2.7环境(包括Win7 64位下安装setuptools)发表于2013 年 4 月 11 日由吴飚在Windows下要比Linux简单的多。Linux系统参考:Linux下Python2.7环境搭建或则直接在本站搜索
2、系统环境操作系统 Windows 7旗舰版64位SP1 (DirectX 11 )处理器 英特尔Core i5 M560 2.67GHz双核笔记本处理器主板 联想2522NT7 (英特尔QM57芯片组)内存 6 GB (尔必达DDR31067MHz /尔必达DDR3 1333MHz )目录+1.下载Python:地址:http:/www.python.org/getit/版本:python-2.7.3.amd64.msisetuptools:http:/pypi.python.org/pypi/setuptools#windowsez_setup.py文件:numpy:地址:http:/www
3、.lfd.uci.edu/gohlke/pythonlibs/版本:numpy-unoptimized-1.6.2.win-amd64-py2.7.exe2.安装Python选择安装路径:除了选择安装路径外,其他的基本都可以默认了,一直到安装完成。此时的目录结构如下:3.为Python配置环境变量测试,Python安装成功。4.安装setuptools官网声称.exe版本的不支持64位Windows系统,推荐使用ez_setup.py自动安装。据说,有筒子32位的exe文件在64位系统上也能用,我就不试了,按照官方的指导来吧,免得以后出些莫名其妙的问题。打开在命令行窗口下执行即可,前提是可以联
4、网。1D:ez_setup.py2Downloading http:/pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg3Processing setuptools-0.6c11-py2.7.egg4Copying setuptools-0.6c11-py2.7.egg to d:python27libsite-packages5Adding setuptools 0.6c11 to easy-install.pth file6Installing easy_install-script.py script
5、 to D:Python27Scripts7Installing easy_install.exe script to D:Python27Scripts8Installing easy_install.exe.manifest script to D:Python27Scripts9Installing easy_install-2.7-script.py script to D:Python27Scripts10Installing easy_install-2.7.exe script to D:Python27Scripts11Installing easy_install-2.7.e
6、xe.manifest script to D:Python27Scripts1213Installed d:python27libsite-packagessetuptools-0.6c11-py2.7.egg14Processing dependencies for setuptools=0.6c1115Finished processing dependencies for setuptools=0.6c11setuptools安装完成后的目录如下:5.为setuptools配置环境变量6.使用easy_install安装django:查看源代码打印帮助1C:UsersBiaoeasy_
7、install2error: No urls, filenames, or requirements specified (see -help)34C:UsersBiaoeasy_install django5Searching for django6Reading http:/pypi.python.org/simple/django/7Reading 8Reading 9Best match: Django 1.4.210Downloading 11Processing Django-1.4.2.tar.gz12Running Django-1.4.2setup.py -q bdist_e
8、gg -dist-dir c:usersbiaoappdatalocaltempeasy_install-tahhsuDjango-1.4.2egg-dist-tmp-0hpiac13zip_safe flag not set; analyzing archive contents.14django.contrib.admindocs.views: module references _file_15django.contrib.auth.tests.context_processors: module references _file_16django.contrib.auth.tests.
9、forms: module references _file_17django.contrib.auth.tests.views: module references _file_18django.contrib.flatpages.tests.csrf: module references _file_19django.contrib.flatpages.tests.middleware: module references _file_20django.contrib.flatpages.tests.templatetags: module references _file_21djang
10、o.contrib.flatpages.tests.views: module references _file_22django.contrib.formtools.tests._init_: module references _file_23django.contrib.formtools.tests.wizard.namedwizardtests.tests: module references _file_24django.contrib.formtools.tests.wizard.wizardtests.tests: module references _file_25djang
11、o.contrib.gis.geometry.test_data: module references _file_26django.contrib.gis.tests.geo3d.tests: module references _file_27django.contrib.gis.tests.geogapp.tests: module references _file_28django.contrib.gis.tests.layermap.tests: module references _file_29django.contrib.sitemaps.tests.base: module
12、references _file_30django.contrib.staticfiles.storage: module references _file_31django.core.management.sql: module references _file_32django.core.management.templates: module references _path_33django.core.management._init_: module references _file_34django.core.management._init_: module references
13、 _path_35mands.loaddata: module references _file_36mands.loaddata: module references _path_37mands.makemessages: module references _file_38django.core.servers.basehttp: module references _path_39django.db.utils: module references _file_40django.db.models.loading: module references _file_41django.tem
14、plate.loaders.app_directories: module references _file_42django.test._doctest: module references _file_43django.test._doctest: module MAY be using inspect.getsourcefile44django.utils.autoreload: module references _file_45django.utils.module_loading: module references _path_46django.utils.version: mo
15、dule references _path_47django.utils.translation.trans_real: module references _file_48django.utils.translation._init_: module references _file_49django.utils.unittest.collector: module references _file_50django.utils.unittest.loader: module references _file_51django.views.i18n: module references _f
16、ile_52Adding django 1.4.2 to easy-install.pth file53Installing django-admin.py script to D:Python27Scripts5455Installed d:python27libsite-packagesdjango-1.4.2-py2.7.egg56Processing dependencies for django57Finished processing dependencies for django5859C:UsersBiaopython60Python 2.7.3 (default, Apr 1
17、0 2012, 23:24:47) MSC v.1500 64 bit (AMD64) on win3261Type help, copyright, credits or license for more information.62 import django63 exit()django已安装成功。安装numpy:1C:UsersBiaoeasy_install numpy2Searching for numpy3Reading http:/pypi.python.org/simple/numpy/4Reading http:/numpy.scipy.org5Reading 6Readi
18、ng http:/numeric.scipy.org7Best match: numpy 1.6.28Downloading http:/pypi.python.org/packages/source/n/numpy/numpy-1.6.2.zip#md5=7e13c931985f90efcfa0408f845d6fee9error: MD5 validation failed for numpy-1.6.2.zip; possible download problem?1011C:UsersBiaoeasy-install方式安装失败,这是因为我公司限网了,下载不下了。改用exe文件安装,安
19、装文件为: numpy-unoptimized-1.6.2.win-amd64-py2.7.exe。下载完成后直接运行就可以了:默认会找到Python的安装路径:numpy安装成功。至此,在Windows下Python环境搭建完成。本站遵循 :署名-非商业性使用-相同方式共享 3.0 中国大陆 (CC BY-NC-SA 3.0 CN)版权声明 : 本站所有文章如未标注为转载则皆为原创,如需转载,请务必以超链接形式标注文章原始出处及作者姓名!此条目发表在Python分类目录,贴了Python环境搭建标签。将固定链接加入收藏夹。Linux下搭建Python2.7环境Python爬虫抓取代理服务器发
20、表评论窗体顶端电子邮件地址不会被公开。 必填项已用*标注姓名*电子邮件*站点评论您可以使用这些HTML标签和属性: 窗体底端 窗体顶端窗体底端 分类目录 CAP理论 Hadoop Hbase Hive Sqoop Java JavaScript Linux MySQL NoSQL Memcached Repcached MongoDB Redis Oracle Python Thrift 随笔 近期文章 Tomcat DBCP 连接池泄露 Tomcat监控工具psi-probe Jquery datatable 分页 忙着 面向大规模集群部署Hadoop的思路 近期评论 吴飚 发表在面向大规模集群部署Hadoop的思路 吴飚 发表在你的吐槽板 吴飚 发表在你的吐槽板 NBA Jerseys Outlet发表在图示Oracle数据库更新数据并提交的完整过程 不了峰 发表在图示Oracle数据库更新数据并提交的完整过程 功能 登录 文章RSS 评论RSS WordPress.org 友情链接 Luocs Leonarding 开新浪微博只为关注凤姐Copyright 2013. All Rights Reserved.粤ICP备13021071号
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1