Windows下Python环境搭建Win7 64位setuptools.docx

上传人:b****4 文档编号:5466578 上传时间:2022-12-16 格式:DOCX 页数:15 大小:538.59KB
下载 相关 举报
Windows下Python环境搭建Win7 64位setuptools.docx_第1页
第1页 / 共15页
Windows下Python环境搭建Win7 64位setuptools.docx_第2页
第2页 / 共15页
Windows下Python环境搭建Win7 64位setuptools.docx_第3页
第3页 / 共15页
Windows下Python环境搭建Win7 64位setuptools.docx_第4页
第4页 / 共15页
Windows下Python环境搭建Win7 64位setuptools.docx_第5页
第5页 / 共15页
点击查看更多>>
下载资源
资源描述

Windows下Python环境搭建Win7 64位setuptools.docx

《Windows下Python环境搭建Win7 64位setuptools.docx》由会员分享,可在线阅读,更多相关《Windows下Python环境搭建Win7 64位setuptools.docx(15页珍藏版)》请在冰豆网上搜索。

Windows下Python环境搭建Win7 64位setuptools.docx

Windows下Python环境搭建Win764位setuptools

系统环境

电脑型号      联想ThinkPadT410笔记本电脑

操作系统      Windows7旗舰版64位SP1(DirectX11)

处理器    英特尔Corei5M560@2.67GHz双核笔记本处理器

主板      联想2522NT7(英特尔QM57芯片组)

内存      6GB(尔必达DDR31067MHz/尔必达DDR31333MHz)

1.下载

Python:

地址:

http:

//www.python.org/getit/

版本:

python-2.7.3.amd64.msi

setuptools:

http:

//pypi.python.org/pypi/setuptools#windows

ez_setup.py文件:

numpy:

地址:

http:

//www.lfd.uci.edu/~gohlke/pythonlibs/

版本:

numpy-unoptimized-1.6.2.win-amd64-py2.7.exe

2.安装Python

选择安装路径:

除了选择安装路径外,其他的基本都可以默认了,一直到安装完成。

此时的目录结构如下:

3为Python配置环境变量

测试,Python安装成功。

4.安装setuptools

官网声称.exe版本的不支持64位Windows系统,推荐使用ez_setup.py自动安装。

据说,有筒子32位的exe文件在64位系统上也能用,我就不试了,按照官方的指导来吧,免得以后出些莫名其妙的问题。

打开

ez_setup.rar(3.78KB,下载次数:

1,售价:

1金子)

在命令行窗口下执行即可,前提是可以联网。

1.D:

\>ez_setup.py

2.Downloadinghttp:

//pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg

3.Processingsetuptools-0.6c11-py2.7.egg

4.Copyingsetuptools-0.6c11-py2.7.eggtod:

\python27\lib\site-packages

5.Addingsetuptools0.6c11toeasy-install.pthfile

6.Installingeasy_install-script.pyscripttoD:

\Python27\Scripts

7.Installingeasy_install.exescripttoD:

\Python27\Scripts

8.Installingeasy_install.exe.manifestscripttoD:

\Python27\Scripts

9.Installingeasy_install-2.7-script.pyscripttoD:

\Python27\Scripts

10.Installingeasy_install-2.7.exescripttoD:

\Python27\Scripts

11.Installingeasy_install-2.7.exe.manifestscripttoD:

\Python27\Scripts

12.

13.Installedd:

\python27\lib\site-packages\setuptools-0.6c11-py2.7.egg

14.Processingdependenciesforsetuptools==0.6c11

15.Finishedprocessingdependenciesforsetuptools==0.6c11

复制代码

setuptools安装完成后的目录如下:

5.为setuptools配置环境变量

6.使用easy_install

安装django:

1.C:

\Users\Biao>easy_install

2.error:

Nourls,filenames,orrequirementsspecified(see--help)

3.

4.C:

\Users\Biao>easy_installdjango

5.Searchingfordjango

6.Readinghttp:

//pypi.python.org/simple/django/

7.Reading

8.Reading

9.Bestmatch:

Django1.4.2

10.Downloading

11.ProcessingDjango-1.4.2.tar.gz

12.RunningDjango-1.4.2\setup.py-qbdist_egg--dist-dirc:

\users\biao\appdata\local\temp\easy_install-tahhsu\Django-1.4.2\egg-dist-tmp-0hpiac

13.zip_safeflagnotset;analyzingarchivecontents...

14.django.contrib.admindocs.views:

modulereferences__file__

15.django.contrib.auth.tests.context_processors:

modulereferences__file__

16.django.contrib.auth.tests.forms:

modulereferences__file__

17.django.contrib.auth.tests.views:

modulereferences__file__

18.django.contrib.flatpages.tests.csrf:

modulereferences__file__

19.django.contrib.flatpages.tests.middleware:

modulereferences__file__

20.django.contrib.flatpages.tests.templatetags:

modulereferences__file__

21.django.contrib.flatpages.tests.views:

modulereferences__file__

22.django.contrib.formtools.tests.__init__:

modulereferences__file__

23.django.contrib.formtools.tests.wizard.namedwizardtests.tests:

modulereferences__file__

24.django.contrib.formtools.tests.wizard.wizardtests.tests:

modulereferences__file__

25.django.contrib.gis.geometry.test_data:

modulereferences__file__

26.django.contrib.gis.tests.geo3d.tests:

modulereferences__file__

27.django.contrib.gis.tests.geogapp.tests:

modulereferences__file__

28.django.contrib.gis.tests.layermap.tests:

modulereferences__file__

29.django.contrib.sitemaps.tests.base:

modulereferences__file__

30.django.contrib.staticfiles.storage:

modulereferences__file__

31.django.core.management.sql:

modulereferences__file__

32.django.core.management.templates:

modulereferences__path__

33.django.core.management.__init__:

modulereferences__file__

34.django.core.management.__init__:

modulereferences__path__

35.mands.loaddata:

modulereferences__file__

36.mands.loaddata:

modulereferences__path__

37.mands.makemessages:

modulereferences__file__

38.django.core.servers.basehttp:

modulereferences__path__

39.django.db.utils:

modulereferences__file__

40.django.db.models.loading:

modulereferences__file__

41.django.template.loaders.app_directories:

modulereferences__file__

42.django.test._doctest:

modulereferences__file__

43.django.test._doctest:

moduleMAYbeusinginspect.getsourcefile

44.django.utils.autoreload:

modulereferences__file__

45.django.utils.module_loading:

modulereferences__path__

46.django.utils.version:

modulereferences__path__

47.django.utils.translation.trans_real:

modulereferences__file__

48.django.utils.translation.__init__:

modulereferences__file__

49.django.utils.unittest.collector:

modulereferences__file__

50.django.utils.unittest.loader:

modulereferences__file__

51.django.views.i18n:

modulereferences__file__

52.Addingdjango1.4.2toeasy-install.pthfile

53.Installingdjango-admin.pyscripttoD:

\Python27\Scripts

54.

55.Installedd:

\python27\lib\site-packages\django-1.4.2-py2.7.egg

56.Processingdependenciesfordjango

57.Finishedprocessingdependenciesfordjango

58.

59.C:

\Users\Biao>python

60.Python2.7.3(default,Apr102012,23:

24:

47)[MSCv.150064bit(AMD64)]onwin32

61.Type"help","copyright","credits"or"license"formoreinformation.

62.>>>importdjango

63.>>>exit()

复制代码

django已安装成功。

安装numpy:

1.C:

\Users\Biao>easy_installnumpy

2.Searchingfornumpy

3.Readinghttp:

//pypi.python.org/simple/numpy/

4.Readinghttp:

//numpy.scipy.org

5.Reading

6.Readinghttp:

//numeric.scipy.org

7.Bestmatch:

numpy1.6.2

8.Downloadinghttp:

//pypi.python.org/packages/source/n/numpy/numpy-1.6.2.zip#md5=7e13c931985f90efcfa0408f845d6fee

9.error:

MD5validationfailedfornumpy-1.6.2.zip;possibledownloadproblem?

10.

11.C:

\Users\Biao>

复制代码

easy-install方式安装失败,这是因为我公司限网了,下载不下了。

改用exe文件安装,安装文件为:

numpy-unoptimized-1.6.2.win-amd64-py2.7.exe。

下载完成后直接运行就可以了:

默认会找到Python的安装路径:

numpy安装成功。

至此,在Windows下Python环境搭建完成。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 求职职场 > 面试

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1