In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
How to install matplotlib drawing library in windows. In view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Concrete process
**
First, download the exe file of matplotlib.
I use the first link here to choose the version you need to download. Since it is brainless, choose the following exe files, not those whl files.
Double-click and run it directly after downloading. If you have installed the corresponding version of python, it will search your directory for the corresponding version of python, as follows
At this point, all you have to do is lose your head and take the next step until you "install it".
Is it really packed? Try opening python, type import matplotlib on the command line, and the following error will occur
There must be a missing module. What can I do? then download the six module.
Https://pypi.python.org/pypi/six
Select the mindless compressed file to download, as follows
Unzip the six-1.10.0 folder, rename it to six, copy it to the C:Python34Libsite-packages path, and then go to python and click import matplotlib.
It appears that the module object does not have the attribute version
Solution:
Go to the C:Python34Libsite-packagessix path and copy the six.py file to the C:Python34Libsite-packages path.
Then hit import matplotlib in python, missing the module dateutil
Download the whl version of dateutil (note whl)
Https://pypi.python.org/pypi/python-dateutil/2.4.2
Here, if you download a compressed package without a brain, there will be no problem with import matplotlib at a later stage, but import matplotlib.pyplot as plt will go wrong. So download whl here, put it in any directory after download, for example, I put it under the C:Usersaricee path, then enter cmd, use cd to enter the directory where you put whl files, and then enter pip install python_dateutil-2.4.2-py2.py3-none-any.whl to install automatically.
When you hit import matplotlib in python, the dependency module pyparsing is missing.
This is the answer to the question about how to install the matplotlib drawing library in windows. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.