ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

python开发环境设置(windows)

2020-05-07 20:01:17  阅读:343  来源: 互联网

标签:__ tests 设置 python module django windows references file


  1)python2.7.3安装

  在www.python.org上下载python-2.7.6.amd64.msi软件,安装完成后设置path路径。控制面板->高级系统设置->高级->环境变量->新建用户变量,输入变量名path,变量值,确定,确定。

  查看设置是否成功:cmd->python,有如下图输出,说明环境变量设置成功。

  2)setuptools安装(python2.7.3)

  下载setuptools-3.6.zip文件,从https://pypi.python.org/packages/source/s/setuptools/setuptools-3.6.zip#md5=985a92e582a288ebedb0aa9f5e9f6d0d上。

  然后从setuptools-3.6.zip中将文件ez_setup.py拷贝到python目录下,执行命令Python ez_setup.py

  进入到Python的Scripts目录下,可以查看easy_install-2.7.exe

  再次在用户变量的path里添加setuotools的路径,与python的路径用分号隔开,如下图。

  执行easy_install有如下图输出,说明安装成功。

  3)安装django

  C:\Users\192.168.9.85>easy_install django

  Searching for django

  Readinghttps://pypi.python.org/simple/django/

  Best match:Django 1.6.5

  Downloading https://pypi.python.org/packages/source/D/Django/Django-1.6.5.tar.gz

  #md5=e4c5b2d35ecb3807317713afa70a0c77

  Processing Django-1.6.5.tar.gz

  Writingc:\users\192168~1.85\appdata\local\temp\easy_install-euecnr\Django-1.6.5

  \setup.cfg

  Running Django-1.6.5\setup.py-qbdist_egg--dist-dir c:\users\192168~1.85\appda

  ta\local\temp\easy_install-euecnr\Django-1.6.5\egg-dist-tmp-sqao5l

  warning:no previously-included filesmatching‘__pycache__‘found under directo

  ry‘*‘

  warning:no previously-included filesmatching‘*.py[co]‘found under directory

  ‘*‘

  zip_safe flag not set;analyzingarchive contents...

  django.conf.project_template.project_name.settings:module references __file__

  django.contrib.admin.bin.compress:module references __file__

  django.contrib.admindocs.views:modulereferences __file__

  django.contrib.auth.tests.test_context_processors:module references __file__

  django.contrib.auth.tests.test_forms:module references __file__

  django.contrib.auth.tests.test_views:module references __file__

  django.contrib.flatpages.tests.test_csrf:module references __file__

  django.contrib.flatpages.tests.test_middleware:module references __file__

  django.contrib.flatpages.tests.test_templatetags:module references __file__

  django.contrib.flatpages.tests.test_views:module references __file__

  django.contrib.formtools.tests.tests:module references __file__

  django.contrib.formtools.tests.wizard.namedwizardtests.tests:module references

  __file__

  django.contrib.formtools.tests.wizard.wizardtests.tests:module references __fil

  e__

  django.contrib.gis.geometry.test_data:module references __file__

  django.contrib.gis.tests.geo3d.tests:module references __file__

  django.contrib.gis.tests.geogapp.tests:module references __file__

  django.contrib.gis.tests.layermap.tests:module references __file__

  django.contrib.sitemaps.tests.test_http:module references __file__

  django.contrib.staticfiles.storage:module references __file__

  django.core.management.sql:modulereferences __file__

  django.core.management.templates:module references __path__

  django.core.management.__init__:module references __path__

  django.core.management.commands.makemessages:module references __file__

  django.db.utils:module references__file__

  django.db.models.loading:modulereferences __file__

  django.db.models.loading:module references__path__

  django.template.loaders.app_directories:module references __file__

  django.test._doctest:modulereferences __file__

  django.test._doctest:module MAY beusing inspect.getsourcefile

  django.utils.autoreload:modulereferences __file__

  django.utils.module_loading:modulereferences __path__

  django.utils.six:module references__file__

  django.utils.six:module references__path__

  django.utils.version:modulereferences __file__

  django.utils.translation.trans_real:module references __file__

  django.utils.unittest.collector:module references __file__

  django.utils.unittest.loader:modulereferences __file__

  django.views.i18n:module references__file__

  Adding django 1.6.5 toeasy-install.pth file

  Installing django-admin.py script toC:\Python27\Scripts

  Installedc:\python27\lib\site-packages\django-1.6.5-py2.7.egg

  Processing dependencies for django

  Finished processing dependencies fordjango

  C:\Users\192.168.9.85>

标签:__,tests,设置,python,module,django,windows,references,file
来源: https://www.cnblogs.com/zhijiaquanb/p/12845265.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有