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的开发工作,但一直想尝试一下.于是边查找资料边试验,花了一天时间在自己的机器上用 ...
随机推荐
- HDU1023 Train Problem II【Catalan数】
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1023 题目大意: 一列N节的火车以严格的顺序到一个站里.问出来的时候有多少种顺序. 解题思路: 典型 ...
- php资源类型变量
php资源类型变量 一.总结 1. php资源类型变量:用来打开文件.数据库连接.图形画布区域等的一种特殊变量,比如FILE *fp; 二.PHP: Resource 资源类型 Resource 资 ...
- Python: scikit-image gamma and log 对比度调整
这个函数,主要用来做对比度调整,利用 gamma 曲线 或者 log 函数曲线, gamma 函数的表达式: y=xγ, 其中, x 是输入的像素值,取值范围为 [0−1], y 是输出的像素值,通过 ...
- 3.第一个Node.js程序:Hello World!
转自:http://www.runoob.com/nodejs/nodejs-tutorial.html 以下是我们的第一个Node.js程序: console.log("Hello Wor ...
- 1.3 Quick Start中 Step 7: Use Kafka Connect to import/export data官网剖析(博主推荐)
不多说,直接上干货! 一切来源于官网 http://kafka.apache.org/documentation/ Step 7: Use Kafka Connect to import/export ...
- 洛谷 P1054 等价表达式
洛谷 P1054 等价表达式 题目描述 明明进了中学之后,学到了代数表达式.有一天,他碰到一个很麻烦的选择题.这个题目的题干中首先给出了一个代数表达式,然后列出了若干选项,每个选项也是一个代数表达式, ...
- COGS——T 2057. [ZLXOI2015]殉国
http://cogs.pro/cogs/problem/problem.php?pid=2057 ★☆ 输入文件:BlackHawk.in 输出文件:BlackHawk.out 评测插件 ...
- [Vue + TS] Create Type-Safe Vue Directives in TypeScript
Directives allow us to apply DOM manipulations as side effects. We’ll show you how you can create yo ...
- 手把手教你用NDK9编译ffmpeg2.4.2
编译环境: 32位 ubuntu12.10 android-ndk-r9c-linux-x86.tar.bz2 ffmpeg-2.4.2.tar.bz2 网上的教程都是以低版本号ffmpeg编译居多. ...
- 96.udp通信
运行截图 客户端 创建客户端套接字,用于创建UDP通信 SOCKET socket_client; 创建UDP通信 socket_client = socket(AF_INET, SOCK_DGRAM ...