cause :
Problem description
Solution :
summary
cause :Just learned machine learning , Need to use matplotlib This library , As a result, the installation failed
Problem descriptionAt 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 .
summaryThis 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 !