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)的更多相关文章
- Eclipse和PyDev搭建完美Python开发环境(Windows篇)(转)
摘要:本文讲解了用Eclipse和PyDev搭建Python的开发环境. 十一长假在家闲着没事儿,准备花点时间学习一下Python. 今儿花了一个下午搭建Python的开发环境,不禁感叹————开 ...
- Python合集之Python开发环境在Windows系统里面搭建
在上一个合集里面我们了解到了Python的基础信息及学习了Python对我们有什么用处,那么今天我们来了解一下,Python的开发环境该如何搭建.(注:Python的开发环境可以在Windows.MA ...
- python开发环境搭建(windows+python2.7.5+django1.5.4)【原创】
先插入一条广告,博主新开了一家淘宝店,经营自己纯手工做的发饰,新店开业,只为信誉!需要的亲们可以光顾一下!谢谢大家的支持!店名: 小鱼尼莫手工饰品店经营: 发饰.头花.发夹.耳环等(手工制作)网店: ...
- Eclipse和PyDev搭建完美Python开发环境(Windows篇)
目录安装Pythonpython for eclipse插件安装配置PyDev插件测试 安装Python从网站上下载最新的版本,从http://python.org/download/下载.安装过程与 ...
- Eclipse+PyDev搭建Python开发环境(Windows篇)
1.Python安装,并设置环境变量 2.python for eclipse插件安装 下载pydev 下载地址:http://www.pydev.org/download.html
- 用Sublime搭建Python开发环境(windows)
1.安装Python 3 去官网下载Python 3,网址:https://www.python.org/downloads/release/python-363/ 双击安装,勾选添加到环境变量. 有 ...
- 【转】Eclipse和PyDev搭建完美Python开发环境(Ubuntu篇)
原文网址:http://www.cnblogs.com/Realh/archive/2010/10/10/1847251.html 前两天在Windows下成功地搭好了一个Python开发环境,这次转 ...
- 【python安装】Windows上安装和创建python开发环境
1. 在 windows10 上安装python开发环境 Linux和Mac OS都自带python环境,但是Windows没有,所以需要自行安装. 第1步:访问 python官网,下载Windows ...
- windows 下用eclipse搭建java、python开发环境
本人只针对小白!本文只针对小白!本文只针对小白! 最近闲来无事,加上之前虽没有做过eclipse上java.python的开发工作,但一直想尝试一下.于是边查找资料边试验,花了一天时间在自己的机器上用 ...
随机推荐
- js中对数组的操作-------Day49
今天碰到了一个问题:easyui的使用中,datagrid表格的高度怎样改变(设定成一个固定的高度),看了半天文档,也从网上查了些.还楞是没弄出来,有点小郁闷.这easyui在某些情况情况下确实好用了 ...
- 74LS153 选择器 【数字电路】
74LS153 我用了八个不同频率的方波信号,用153当作信号选择器,控制环节的开关是4通道的选择器,00 01 10 11分别选择通道 0 1 2 3 以下是八选一的demo
- Myeclipse集成Maven(图文说明)
myeclipse 上安装 Maven3 环境准备: JDK 1.6 Maven 3.2.5 myeclipse 2013 安装 Maven 之前要求先确定你的 JDK 已经安装配置完毕.Maven是 ...
- 安卓View的缓冲机制
View组件显示的内容能够通过cache机制保存为bitmap, 主要有下面方法: void setDrawingCacheEnabled(boolean flag), Bitmap getDr ...
- 4个开源的Gmail替代品
资料来源 https://opensource.com/alternatives/gmail 本文是对原文翻译,在调试 privmx 时么有成功,这些代码大多用于 php5 ,对PHP7 不兼容. 相 ...
- 解决Firefox不信任StartSSL证书问题
从2016年的11月份开始,firefox \ chrome \ apple 等陆续不再信任 StartSSL 的证书,导致一些使用 StartSSL 的证书的网站访问遇到了麻烦, firefo ...
- 基于WebSphere与Domino的电子商务网站构架分析
650) this.width=650;" border="0" alt="174812596.jpg" src="http://img1. ...
- ubuntu搭建交叉编译环境makeinfo: command not found
解决办法:sudo apt-get install texinfo
- 【2017 Multi-University Training Contest - Team 9】Numbers
[链接]http://acm.hdu.edu.cn/showproblem.php?pid=6168 [题意] 有一个长度为n的序列a1--an,根据a序列生成了一个b序列,b[i] = a[i]+a ...
- Linux中删除文件,磁盘空间未释放问题追踪
在客户使用我们产品后,发现一个问题:在删除了文件后.磁盘空间却没有释放.是有进程在打开这个文件,还是其它情况?我们一起来看看一下两个场景 一. 场景一:进程打开此文件 当一个文件正在被一个进程使用时. ...