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. 前台技术--div的隐藏与显示

    怎样使用页面元素隐藏或显示. HTML为我们提供了两个变量visibility和display visibility:隐藏要元素可是元素所暂用的空间不予释放.也就是说元素隐藏了,可是页面上会流出一片空 ...

  2. badblocks 检查硬盘是否有坏道

    硬盘是比較easy坏掉的设备,使用一段时间后可能会出现坏道等物理故障. 当硬盘出现坏道后,若不及时更换或者进行技术上的处理,磁盘的坏道就会越来越多,并会造成频繁死机和数据丢失. 最好的处理方法是更换新 ...

  3. php 函数 pathinfo() 在分析文件名时,会含有上级目录

    php 函数 pathinfo() 在分析文件名时,会含有上级目录对一些含有中文的多级目录,这个函数取得的文件名可能会包含上级目录,

  4. Android学习笔记进阶15之Shader渲染

    Android提供的Shader类主要是渲染图像以及一些几何图形. Shader有几个直接子类: BitmapShader    : 主要用来渲染图像 LinearGradient  :用来进行线性渲 ...

  5. Linux 进程通信之管道

    管道是单向的.先进先出的,它把一个进程的输出和还有一个进程的输入连接在一起.一个进程(写进程)在管道的尾部写入数据,还有一个进程(读进程)从管道的头部读出数据.数据被一个进程读出后,将被从管道中删除, ...

  6. MDaemon and Apache2

    MDaemon and Apache2 邮件服务器列表 http://down.chinaz.com/class/93_1.htm MDaemon11.03中文破解补丁 http://download ...

  7. drawerLayout-监听事件四个方法介绍

    1.首先我们看一下它的监听事件的生命周期 代码如下 mDrawerLayout.setDrawerListener(new DrawerListener() { @Override public vo ...

  8. 1.2 Use Cases中 Commit Log官网剖析(博主推荐)

    不多说,直接上干货! 一切来源于官网 http://kafka.apache.org/documentation/ Commit Log 提交日志 Kafka can serve as a kind ...

  9. ACCESS数据库改名asp或asa

    到把mdb改为asp或asa ACCESS数据库:把数据库后缀名改成ASP是防止ACCESS数据库被下载

  10. java线程——详解Callable、Future和FutureTask

    回顾: 接上篇博客 java线程--三种创建线程的方式,这篇博客主要介绍第三种方式Callable和Future.比较继承Thread类和实现Runnable接口,接口更加灵活,使用更广泛.但这两种方 ...