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的开发工作,但一直想尝试一下.于是边查找资料边试验,花了一天时间在自己的机器上用 ...
随机推荐
- eclipse - 下载网址
这里面有着非常齐全的eclipse相关资源,而且都是放在网盘里面的,下载也方便 http://www.androiddevtools.cn/
- matlab (.m)文件生成 windows 可执行(.exe)文件
mex -setup:设置 C 语言编译器:(如果本地安装有 visual studio 20xx 集成开发环境,则会自动选择其下的 C/C++ 编译器 ) 将运行时环境(runtime enviro ...
- onvif开发实战1--总结框架搭建
Gsoap及开发框架生成: 一:gsoap下载和编译 1.下载Gsoap:地址:http://sourceforge.net/projects/gsoap2/files/gSOAP/ 2.安装: ...
- BZOJ1396: 识别子串(后缀自动机,线段树)
Description Input 一行,一个由小写字母组成的字符串S,长度不超过10^5 Output L行,每行一个整数,第i行的数据表示关于S的第i个元素的最短识别子串有多长. Sample I ...
- linux下加入用户并赋予root权限
1.加入用户.首先用adduser命令加入一个普通用户,命令例如以下: #adduser tommy //加入一个名为tommy的用户 #passwd tommy //改动password Cha ...
- Zorka和zico实现不同主机之间的交互
之前参考下面的两篇博文进行了zorka以及其collector端zico的配置. http://quyuxjtu.sinaapp.com/?p=532 http://quyuxjtu.sinaapp. ...
- docker进入容器的几种方法
一 启动进入容器指定bash 退出后容器关闭 [root@Centos-node3 ~]# docker run -it centos bash [root@83c6b25aca09 /]# 二 do ...
- Solr的关键特性
1.基于标准的开放接口:Solr搜索服务器支持通过XML.JSON和HTTP查询和获取结果. 2.易管理:Solr可以通过HTML页面管理,Solr配置通过XML完成. 3.可伸缩性:能够有效地复制到 ...
- Android内存泄露分析之StrictMode
转载请注明地址:http://blog.csdn.NET/yincheng886337/article/details/50524709 StrictMode(严格模式)使用 StrictMode严格 ...
- 获取input file 选中的图片,并在一个div的img里面赋值src实现预览
代码如下利用html5实现:几乎兼容所有主流浏览器,当然IE必须是IE 6以上 [jquery代码] $(function() { $("#file_upload").change ...