I learned a little Python some time ago and practiced it on Ubuntu. Not long ago I restarted my computer and only integrated one windows. This broke the performance of my notebook and I still don't want to install two systems.
I suddenly want to learn more python over the past few days. I don't know why. I am very fond of the syntax and performance of Python. I am in stark contrast with PHP ~
I need to build the environment again. How did I get it last time? Forget it! Write down this time. I mainly want to learn web development, so I have to install the Django framework in addition to Python.
1. Of course, it is downloaded and installed. Currently, resources are generally supported by python2.x, so let's download this version.
Http://www.python.org/download/ official website download, select the correct version, Windows is an installation package, according to the general installation steps to install it.
After the installation is complete, you also need to configure the environment variable path and add the python installation directory to the back of the original PA content. Remember the extra points, in this way, you can run the python command in any directory in the CMD window. If you do not add the python command, you can only run it through the python menu.
2. Install Django. Official website download: Download https://www.djangoproject.com/download/ decompress, CD into Django folder, execute the command:
Python setup. py install
If you are prompted that python is not a valid command, check whether the path of the environment variable is correctly configured. Then install ......
Plug-in URL: http://pydev.org/updates
OK! Now that the environment is ready, start the python-Django journey!
After the installation is complete, if you want to create a Django project through the command line, you must configure the environment variable and append the scripts folder path under the python installation directory to the path.
3. Install the pydev plug-in eclipse
After the installation is complete, configure the python path (before configuration, confirm that python has been successfully installed)
Window-> preferences-> pydev-> interpreter-Python select Anto config, and then click OK.
Python references:
Tutorial: http://docs.python.org/tutorial/
Http://docspy3zh.readthedocs.org/en/latest/tutorial/index.html.
Concise Python Tutorial: http://woodpecker.org.cn/abyteofpython_cn/chinese/
Google Python Course: http://code.google.com/intl/zh-CN/edu/languages/google-python-class/set-up.html
Django official documentation: https://docs.djangoproject.com/en/1.4/
Django book 2.0-http://djangobook.py3k.cn/2.0/