1, first install Python-3.4.2.msi, this is the main Python program, double-click the installation, according to their own situation to make a choice, you can also use the default settings, the next is no problem.
2. Set the environment variable = + Edit path, and add your Python installation path at the end. My installation path is: C:\Python34\; of course, you have to choose according to your own situation.
3, after setting the environment variables, do a test, please run cmd, enter Python, no unexpected words, will enter the Python environment.
4, if the 3rd step through, no accident, you can start your Python learning path, of course, can only be some simple operation. Now you can use the default idle for programming learning, and of course you can use other Ides, such as Eclipse, VS, notepad++.
5, installation Distribute
Distribute is an alternative to setuptools. They are all enhancements to the Python standard library module, which makes it easy to build and publish Python packages, especially if you have dependencies. Since distribute is Setuptools alternative, can use distribute do not use Setuptools. In simple terms, package management tools are used to install packages.
First, please go to https://pypi.python.org/pypi/distribute to download the distribute source package.
Next, unzip to get, then CD command to move to that path, then run
setup.py Install command installation package, the installation was successful without error.
6. Test Distribute
To test whether the distribute was installed successfully, I downloaded a module for testing, and Python connected the MySQL module.
The test method is very simple, as with the installation of the Distribute method, install the Pymysql module, you can not, CD switch directory, and then run the setup.py install command!
Then, open idle, try to import the Pymysql module, no error, indicating success!
Well, the Pymysql module has been successfully imported, indicating that the distribute installation was successful.
7. Install Pip
Pip is an alternative to easy_install. They are Python package management tools that make it easy for people to install, update, and uninstall Python packages. Since Pip is an alternative to Easy_install, you can use PIP instead of Easy_install.
First download Pyreadline Source package, here we download pyreadline-2.0.zip:https://pypi.python.org/pypi/pyreadline/2.0, select your system, download directly after the installation can be, The package is very good.
After the installation is successful, open the CMD test, enter PIP, no error will indicate that the installation was successful.
Here, you can download a variety of modules, not specifically to the official website to download the module, and then step by step installation, Pip Install module name, can be downloaded online, automatic installation, similar to Linux under the Yum Package Manager.
Then, modify your environment variables, add C:\Python34\Scripts, and of course , depending on your installation path to decide.
Finally, installing Ipython,ipython is a strong version of the shell, which is much more powerful than the initial installation of the shell, and can be supplemented later.
Download Ipyton Source package, here we download ipython-1.2.1.zip:https://pypi.python.org/pypi/ipython/1.2.1, and then switch to the path where the ZIP package is located, execute pip Install Ipython-1.2.1.zip, I here is installed after the, because the installation will output a lot of information, CMD can not pull to the top, so only then.
So far, there is no error, the installation is complete, the final test, input ipython3, no error is OK.
Summary: Today look at the stupid method of Python see exercise 46, there is a requirement to configure the environment, Baidu took a long time to finally fix, because the use of Python3, information is not many, online a lot of information are Python2, and the version of a variety, see preoccupied. Now, when you think about ASP, the development environment for VS has been configured for you, which is really cool.
Python Development Environment Installation