"Python" Matplotlib installed under Windows

Source: Internet
Author: User

last night installed a long time this thing, finally in the early morning to successfully fix, and then ran a renren crawl friends relationship script ~ Happy. The following is my reference to the most force of the document, all installed once, you can ~but! Be sure to check your Python version before installing! I think Python is 64-bit, in fact, it was Ann's 64, but when everything is installed, suddenly reported a pile of errors only to find that their python is 32 bit .... So they all re-loaded again. that is, all modules must be identical to the Python version. View Python version: Go to cmd, enter Python,

Python 2.7.9 (default, Dec, 12:28:03) [MSC v.1500-bit (AMD64)] on win
32

If this is shown, the description is 32 bits, (on Win32)Original address: http://blog.sina.com.cn/s/blog_6fb8aa0d0101qtt9.htmlRepeatedly installed and uninstalled several times finally put Matplotlib installed successfully, the main reference three links:Link 1 http://blog.sciencenet.cn/blog-579770-738240.htmlLink 2 http://www.open-open.com/lib/view/open1393488232380.htmlLink 3 http://blog.csdn.net/yang6464158/article/details/18546871#commentsLink 4 http://www.lfd.uci.edu/~gohlke/pythonlibs/Link 123 is a reliable installation process, the various packages required in this process can be found in link 4 (unofficial download, compare all).  matplotlib installation of the official link for http://matplotlib.org/users/installing.html, no use. The following detailed documentation is adapted from the installation process for link 123 to backup. Note: The version of each installer must be consistent, here are unified with windows,64 bit,python2.7 version (it is said that the python3.* series for some of the installation package is incompatible, so chose the older python2.7 version)!!!  1, pythonhttps://www.python.org/download/ 2. Installation of matplotlib,http://matplotlib.org/downloads.html with Python counterpart version 3, for the standard version of Python, to use matplotlib, you need to install the NumPy module, see link 4 4, may also use the Msvcp.dll library, searches the net to add to the C:\windows\system32 directory by oneself. If you run the import Matplotlib.pyplot as PLT at this point, the following error may be displayed:Raise Importerror ("Matplotlib requiresdateutil")Importerror:matplotlib requires DateutilIt means you need dateutil. 5, installation dateutil,http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-dateutilThe error then occurs:Raise Importerror ("Matplotlib requirespyparsing")Importerror:matplotlib requires pyparsingIt means you need pyparsing. 6, installation pyparsing,http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyparsingerror occurred after installation:No Module name sixneed to install scipy 7, install SCIPY, see link 4. then copy the six.py Six.pyc six.pyo three files from the C:\Python27\Lib\site-packages\scipy\lib to the C:\Python27\Lib\site-packages directory. import Matplotlib.pyplot as PLT in the idle (Python GUI) can be solved!

"Python" Matplotlib installed under Windows

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.