Windows Python, NumPy, matplotlib installation, and configuration __python

Source: Internet
Author: User
Tags install matplotlib

Turn from: http://blog.csdn.net/owen7500/article/details/51125235
http://f.dataguru.cn/thread-36396-1-1.html One, Python installation and configuration

(1) Download
Python:
Address: http://www.python.org/getit/
Version: Python-2.7.3.amd64.msi
(2) Installation
It's simple, just follow the requirements and go next.
(3) Configure the Python environment variable and add the Python installation directory to the environment variable path.

After the configuration is complete, open cmd, the input Python,python installation success will display the following information.
second, the installation of NumPy

NumPy is a function library that is often used in python to manipulate arrays, vectors, matrices, and so on. Download Address: HTTP://SOURCEFORGE.NET/PROJECTS/NUMPY/FILES/NUMPY/1.8.1/
Download the version that corresponds to your Python and operating system model. Numpy-mkl-1.8.0.win-amd64-py2.7.exe directly click on the installation can be. After installation, enter import NumPy as shown below, which means the installation is successful.
third, matplotlib installation

Matplotlib is a powerful drawing tool in Python. Download Address:
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/, The file I downloaded is matplotlib-1.3.1.win-amd64-py2.7.exe. Double-click the install directly. After the installation of Matplotlib, the direct use of the error is missing less dateutil and pyparsing. So install matplotlib only need to install Dateutil and pyparsing.
Some of the related files in Python can be downloaded to http://www.lfd.uci.edu/~gohlke/pythonlibs/.

However, Dateutil and pyparsing have no EXE files to choose from, and only one suffix is provided. whl files. iv.. whl File Installation

The WHL file needs to be done with the PIP, and the PIP installation needs to be installed first setuptools.

(1) Setuptools installation
Official website claims that the. exe version does not support 64-bit Windows, and 64-bit systems recommend the use of ez_setup.py automatic installation. Open http://peak.telecommunity.com/dist/ez_setup.py and save the Code copy on the page as a ez_setup.py
Executes under the Command Line window (requires networking).

d:\>ez_setup.py
Downloading Http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
processing Setuptools-0.6c11-py2.7.egg
Copying Setuptools-0.6c11-py2.7.egg to D:\python27\lib\site-packages
adding Setuptools 0.6c11 to Easy-install.pth File
installing easy_install-script.py script to D:\Python27\Scripts
installing Easy_install.exe script to D:\ python27\scripts
Installing Easy_install.exe.manifest script to D:\Python27\Scripts
installing Easy_ install-2.7-script.py script to D:\Python27\Scripts
installing Easy_install-2.7.exe script to D:\Python27\Scripts
installing Easy_install-2.7.exe.manifest script to D:\Python27\Scripts

Installed D:\python27\lib\site-packages\setuptools-0.6c11-py2.7.egg
processing dependencies for setuptools== 0.6C11
finished processing dependencies for SETUPTOOLS==0.6C11

After the Setuptools installation is complete, the directory is as follows:

Configure environment Variables for Setuptools

(2) PIP installation
Go to the command line, and then switch the directory to the script folder under the Python installation directory and run the Easy_install pip.

(3) WHL file installation
Once the PIP is installed, you can install the WHL file through the PIP command as follows:
Pip Install XXXXXX.WHL
The command needs to be in the table of contents of the PIP (or add the path of the PIP to the system variable), and Pip is installed in the D:\Python27\Scripts directory.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.