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

How to solve the failure of installing Matplotlib in python3.7

編輯:Python

python3.7 install matplotlib How to solve the failure

Today I'd like to share with you python3.7 install matplotlib Relevant knowledge points about how to solve failure , Detailed content , Clear logic , I believe most people still know too much about this knowledge , So share this article for your reference , I hope you will gain something after reading this article , Now let's take a look .

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 .

That's all “python3.7 install matplotlib How to solve the failure ” All the content of this article , Thank you for reading ! I believe you will gain a lot after reading this article , Xiaobian will update different knowledge for you every day , If you want to learn more , Please pay attention to the Yisu cloud industry information channel .


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