Windows下搭建Python2.7环境(包括Win7 64位下安装setuptools)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Web、Java、Python、NoSQL、Hadoop、Openstack、Linux、关系型数据库、云计算、大数据...积跬步以至千里跳至正文首页关于知识共享找吴飚你的吐槽板你的电台←Linux下搭建Python2.7环境Python爬虫抓取代理服务器→Windows下搭建Python2.7环境(包括Win764位下安装setuptools)发表于2013年4月11日由吴飚在Windows下要比Linux简单的多。Linux系统参考:Linux下Python2.7环境搭建=viewthread&tid=36405&fromuid=4771或则直接在本站搜索系统环境操作系统Windows7旗舰版64位SP1(DirectX11)处理器英特尔Corei5M560@2.67GHz双核笔记本处理器主板联想2522NT7(英特尔QM57芯片组)内存6GB(尔必达DDR31067MHz/尔必达DDR31333MHz)目录[+]1.下载Python:地址:版本:python-2.7.3.amd64.msisetuptools:文件::地址:~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位系统上也能用,我就不试了,按照官方的指导来吧,免得以后出些莫名其妙的问题。打开,把页面上的代码copy一份保存为ez_setup.py。在命令行窗口下执行即可,前提是可以联网。1D:\ez_setup.py2Downloading:\python27\lib\site-packages5Addingsetuptools0.6c11toeasy-install.pthfile6Installingeasy_install-script.pyscripttoD:\Python27\Scripts7Installingeasy_install.exescripttoD:\Python27\Scripts8Installingeasy_install.exe.manifestscripttoD:\Python27\Scripts9Installingeasy_install-2.7-script.pyscripttoD:\Python27\Scripts10Installingeasy_install-2.7.exescripttoD:\Python27\Scripts11Installingeasy_install-2.7.exe.manifestscripttoD:\Python27\Scripts1213Installedd:\python27\lib\site-packages\setuptools-0.6c11-py2.7.egg14Processingdependenciesforsetuptools==0.6c1115Finishedprocessingdependenciesforsetuptools==0.6c11setuptools安装完成后的目录如下:5.为setuptools配置环境变量6.使用easy_install安装django:查看源代码打印帮助1C:\Users\Biaoeasy_install2error:Nourls,filenames,orrequirementsspecified(see--help)34C:\Users\Biaoeasy_installdjango5Searchingfordjango6Reading://://:Django1.4.210Downloading:\users\biao\appdata\local\temp\easy_install-tahhsu\Django-1.4.2\egg-dist-tmp-0hpiac13zip_safeflagnotset;analyzingarchivecontents...14django.contrib.admindocs.views:modulereferences__file__15django.contrib.auth.tests.context_processors:modulereferences__file__16django.contrib.auth.tests.forms:modulereferences__file__17django.contrib.auth.tests.views:modulereferences__file__18django.contrib.flatpages.tests.csrf:modulereferences__file__19django.contrib.flatpages.tests.middleware:modulereferences__file__20django.contrib.flatpages.tests.templatetags:modulereferences__file__21django.contrib.flatpages.tests.views:modulereferences__file__22django.contrib.formtools.tests.__init__:modulereferences__file__23django.contrib.formtools.tests.wizard.namedwizardtests.tests:modulereferences__file__24django.contrib.formtools.tests.wizard.wizardtests.tests:modulereferences__file__25django.contrib.gis.geometry.test_data:modulereferences__file__26django.contrib.gis.tests.geo3d.tests:modulereferences__file__27django.contrib.gis.tests.geogapp.tests:modulereferences__file__28django.contrib.gis.tests.layermap.tests:modulereferences__file__29django.contrib.sitemaps.tests.base:modulereferences__file__30django.contrib.staticfiles.storage:modulereferences__file__31django.core.management.sql:modulereferences__file__32django.core.management.templates:modulereferences__path__33django.core.management.__init__:modulereferences__file__34django.core.management.__init__:modulereferences__path__35django.core.management.commands.loaddata:modulereferences__file__36django.core.management.commands.loaddata:modulereferences__path__37django.core.management.commands.makemessages:modulereferences__file__38django.core.servers.basehttp:modulereferences__path__39django.db.utils:modulereferences__file__40django.db.models.loading:modulereferences__file__41django.template.loaders.app_directories:modulereferences__file__42django.test._doctest:modulereferences__file__43django.test._doctest:moduleMAYbeusinginspect.getsourcefile44django.utils.autoreload:modulereferences__file__45django.utils.module_loading:modulereferences__path__46django.utils.version:modulereferences__path__47django.utils.translation.trans_real:modulereferences__file__48django.utils.translation.__init__:modulereferences__file__49django.utils.unittest.collector:modulereferences__file__50django.utils.unittest.loader:modulereferences__file__51django.views.i18n:modulereferences__file__52Addingdjango1.4.2toeasy-install.pthfile53Installingdjango-admin.pyscripttoD:\Python27\Scripts5455Installedd:\python27\lib\site-packages\django-1.4.2-py2.7.egg56Processingdependenciesfordjango57Finishedpr

1 / 20
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功