python开发环境设置(windows)



1)  python2.7.3安装

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

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

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvenQ4NTI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">

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

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvenQ4NTI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">

进入到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>


python开发环境设置(windows)的更多相关文章

  1. Eclipse和PyDev搭建完美Python开发环境(Windows篇)(转)

      摘要:本文讲解了用Eclipse和PyDev搭建Python的开发环境. 十一长假在家闲着没事儿,准备花点时间学习一下Python. 今儿花了一个下午搭建Python的开发环境,不禁感叹————开 ...

  2. Python合集之Python开发环境在Windows系统里面搭建

    在上一个合集里面我们了解到了Python的基础信息及学习了Python对我们有什么用处,那么今天我们来了解一下,Python的开发环境该如何搭建.(注:Python的开发环境可以在Windows.MA ...

  3. python开发环境搭建(windows+python2.7.5+django1.5.4)【原创】

    先插入一条广告,博主新开了一家淘宝店,经营自己纯手工做的发饰,新店开业,只为信誉!需要的亲们可以光顾一下!谢谢大家的支持!店名: 小鱼尼莫手工饰品店经营: 发饰.头花.发夹.耳环等(手工制作)网店: ...

  4. Eclipse和PyDev搭建完美Python开发环境(Windows篇)

    目录安装Pythonpython for eclipse插件安装配置PyDev插件测试 安装Python从网站上下载最新的版本,从http://python.org/download/下载.安装过程与 ...

  5. Eclipse+PyDev搭建Python开发环境(Windows篇)

    1.Python安装,并设置环境变量 2.python for eclipse插件安装 下载pydev 下载地址:http://www.pydev.org/download.html

  6. 用Sublime搭建Python开发环境(windows)

    1.安装Python 3 去官网下载Python 3,网址:https://www.python.org/downloads/release/python-363/ 双击安装,勾选添加到环境变量. 有 ...

  7. 【转】Eclipse和PyDev搭建完美Python开发环境(Ubuntu篇)

    原文网址:http://www.cnblogs.com/Realh/archive/2010/10/10/1847251.html 前两天在Windows下成功地搭好了一个Python开发环境,这次转 ...

  8. 【python安装】Windows上安装和创建python开发环境

    1. 在 windows10 上安装python开发环境 Linux和Mac OS都自带python环境,但是Windows没有,所以需要自行安装. 第1步:访问 python官网,下载Windows ...

  9. windows 下用eclipse搭建java、python开发环境

    本人只针对小白!本文只针对小白!本文只针对小白! 最近闲来无事,加上之前虽没有做过eclipse上java.python的开发工作,但一直想尝试一下.于是边查找资料边试验,花了一天时间在自己的机器上用 ...

随机推荐

  1. 史上最简单,js并获取手机型号

    原先获取不了苹果系列的型号,但转换思路,先推断是否是苹果,再用分辨率获取型号 //获取手机型号函数begin function getPhoneType(){  //正则,忽略大写和小写 var pa ...

  2. php课程 12-41 多态是什么

    php课程 12-41 多态是什么 一.总结 一句话总结:一种请求,多种响应(根据参数类型和数量) 1.function useUsb(Usb $usb){}这句话是什么意思? 判断$usb参数是否实 ...

  3. NPOI根据列索引获取列名

    public static string ConvertColumnIndexToColumnName(int index) { index = index + ; ; ]; ; ) { int mo ...

  4. 洛谷 P1308 统计单词数

    P1308 统计单词数 题目描述 一般的文本编辑器都有查找单词的功能,该功能可以快速定位特定单词在文章中的位置,有的还能统计出特定单词在文章中出现的次数. 现在,请你编程实现这一功能,具体要求是:给定 ...

  5. Moodle 中文 API 之 文件管理API

    File API  文件管理 文件夹 1. 概述 2. 文件域 2.1 命名文件域 3. 提供文件给用户 4. 从用户那获取文件 5. 样例 5.1 浏览文件 5.2 移动文件 5.3 文件列表 5. ...

  6. GestureDetector-onfling不执行

    今天在做计算器的时候,遇到了一个问题,就是当我使用GestureDetector的时候,onFling方法不执行,而其他的可以执行.代码如下 @Override public boolean onDo ...

  7. js常用数据转换&判断

    数组转字符串 var a, b; a = new Array(0,1,2,3,4); b = a.join("-"); //"0-1-2-3-4" 字符串转数组 ...

  8. 洛谷——P1035 级数求和

    https://www.luogu.org/problem/show?pid=1035 题目描述 已知:Sn= 1+1/2+1/3+…+1/n.显然对于任意一个整数K,当n足够大的时候,Sn大于K. ...

  9. iOS_07_流程控制

    一.流程控制 * 顺序结构:默认的流程结构.按照书顺序执行每一条语句. * 选择结构:对给定得条件进行判断,再根据判断结果来决定执行哪一段代码. * 循环结构:在给定条件成立的情况下,反复执行某一段代 ...

  10. python3 分解质因数

    python3 分解质因数 #!/usr/bin/env python # -*- coding:utf-8 -*- # Author:Hiuhung Wan num = int(input(&quo ...