程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

The perfect solution to the failure of python3.7 to install Matplotlib

編輯:Python

Catalog

cause :

Problem description

Solution :

summary

cause :

Just learned machine learning , Need to use matplotlib This library , As a result, the installation failed

Problem description

At the beginning pycharm In order to install , failed , Check the log , No, error Tips , Just go to cmd Try pip install matplotlib The result is still a failure

pip install matplotlib

according to error Tips probably know pip Library version is too long , So we need to upgrade pip Version of , stay cmd Get into python Of Scripts Folder enter the following command pair pip Library upgrade

python -m pip install --upgrade pip

Try again after installation pip install matplotlib Still failed

It can be seen here that pycharm Still prompt me to update pip, But we are the highest version at this time .

Inquiry matplotlib3.5.1 It's supporting python3.7.3, The version problem has been eliminated

After checking again, I found that what I downloaded was .whl file , I am a Windows System , There is no problem here

Again in cmd Try pip install matplotlib, Download half failed

Up to now, most of the problems have been basically eliminated , I guess it may be the website itself

Solution :

So I changed the domestic mirror website to download

cd C:\python3.7.3\Scriptspip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib# According to your own python Installation path modification

Successfully downloaded , Finally, check whether the installation is successful

python -m pip list

You can see matplotlib Even if it's successful .

summary

This is about python3.7 install matplotlib The article on the perfect solution of the failure problem is introduced here , More about python3.7 install matplotlib Please search the previous articles of SDN or continue to browse the relevant articles below. I hope you will support SDN more in the future !



  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved