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 "<pyshell#0>", line 1, in <module>
    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.

 

你可能感兴趣的:(django,python,mysqldb,cx_Oracle,setuptools)