python web环境傻瓜搭建_python web开发环境的搭建

1、Install python

double click on python 2.7.2

---->next

Select an install path ,

---->next

---->next

After a few minutes of Progress Bar ,

Click on Finish, python will be installed.

2、Install Django

In cmd , get into django installed path and execute command “python setup.py install” ,after installed by itself , input “>>>import django >>>django.VERSION” ,if it output “(1,2,3,'final',0)” , it’s installed successfully.

3、Install Pycharm

Double click on pycharm-1.5.4.exe ,

----> next

----> I Agree

Select installed path

----> Next

----> Install

----> click on Finish, it will be down

4、Install TortoiseSVN

Double click on TortoiseSVN-1.6.15.21042-win32-svn-1.6.16.msi ,

----> next

Choose “I acceot ….”

----> next

---->next

Wait for a few minutes , for it installed by itself.

5、setuptools

Download the bootstrap module (ez_setup.py) and save it somewhere on your Windows box. According to the documentation, they recommend not putting it in your Python distribution.

Open up a console (Start | Run | cmd) and run the script:

D:\TDDOWNED\sz_setup\ez_setup.py

It will automatically install everything you need.

Update your environment variables:

Right click the My Computer icon on your desktop and hit Properties. Click the Advanced tab and hit the Environment Variables button near the bottom.

That will bring up the System Variables screen ,now highlight the Path variable and hit Edit:

Add D:\Program Files\python\Scripts to your Path.

6、MySQL-python-1.2.3.win32-py2.7

Download MySQL-python-1.2.3.win32-py2.7.exe first:

Double click on it

---->next

---->next

----> finish

Input import MySQLdb in Python Shell, if there is no error, it’s been installed successfully.

7、cx_Oracle-5.1.1-10g.win32-py2.7.msi

download cx_Oracle-5.1.1-10g.win32-py2.7.msi first ,

Double click on it,

---->next

---->next

----> finish , it will be done.

But now, if you import cx_Oracle, there usually will be an error:

Traceback (most recent call last):

File "", line 1, in

import cx_Oracle

ImportError: DLL load failed: The specified module could not be found.

For this error, you should installed oracle clint ,and copy oci.dll from it’s installed path to python installed path Lib\site-packages, for example, C:\Python27\Lib\site-packages.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值