色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁技術文章
文章詳情頁

windows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解

瀏覽:3日期:2022-07-04 08:13:09

學習python過程中想使用python的matlabplot繪圖功能,遇到了一大批問題,然后一路過關斬將,最終安裝成功,實為不易,發帖留念。

1 首先打開cmd

win+r

2 pip安裝

pip3 install --user numpy scipy matplotlib

?user 選項可以設置只安裝在當前的用戶下,而不是寫入到系統目錄。默認情況使用國外線路,國外太慢,我們使用清華的鏡像就可以:

pip3 install numpy scipy matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple

如何網絡不好,我們可以挨個單獨安裝

pip3 install numpy s -i https://pypi.tuna.tsinghua.edu.cn/simplepip3 install scipy -i https://pypi.tuna.tsinghua.edu.cn/simplepip3 install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple

3 安裝matlabplot時遇到錯誤:

Using legacy ’setup.py install’ for matplotlib, since package ’wheel’ is not installed.

Installing collected packages: matplotlib

    Running setup.py install for matplotlib ... error

    ERROR: Command errored out with exit status 1:

windows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解

查看自己的python版本:

Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32 Type 'help', 'copyright', 'credits' or 'license()' for more information.

windows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解

我的python是3.9 AMD64

在https://www.lfd.uci.edu/~gohlke/pythonlibs/網站找到worldcouldwindows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解

選著自己相應的.whl下載。我的選:

wordcloud-1.8.0-cp39-cp39-win_amd64.whl

然后回到cmd

4 安裝

pip install wordcloud-1.8.0-cp39-cp39-win_amd64.whl

windows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解

5 再次出現錯誤

Using legacy ’setup.py install’ for matplotlib, since package ’wheel’ is not installed.

直接安裝wheel

pip install wheel

6 再次安裝matlabplot

pip3 install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple

不成功

7 在https://www.lfd.uci.edu/~gohlke/pythonlibs/找到matlabplot

windows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解

下載后安裝,

pip3 install matplotlib-3.3.2-cp39-cp39-win_amd64.whl

windows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解

顯示安裝成功,趕緊找個程序來試一下:

import numpy as np from matplotlib import pyplot as plt x = np.arange(1,11) y = 2 * x + 5 plt.title('Matplotlib demo') plt.xlabel('x axis caption') plt.ylabel('y axis caption') plt.plot(x,y) plt.show()

windows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解

安裝成功,一波五折

到此這篇關于windows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解的文章就介紹到這了,更多相關python 3.9 Numpy scipy和matlabplot的安裝內容請搜索好吧啦網以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持好吧啦網!

標簽: Python 編程
相關文章:
主站蜘蛛池模板: 久久99精品久久久久久h | 亚洲午夜一区二区三区 | 欧美粗又大gay69视频 | 久久一区二区三区不卡 | 久久久久久久久久免观看 | 日本aaaa特级毛片 | 国产欧美久久久另类精品 | 男人的天堂在线观看视频不卡 | 欧美成人日韩 | 成人性欧美丨区二区三区 | 久久精品免看国产成 | 国产精品亚洲精品日韩已满 | 免费看岛国视频在线观看 | 久久久久久久综合 | 黄色美女网站免费 | 国产精品三级a三级三级午夜 | 久久影院国产 | 在线播放高清国语自产拍免费 | 久久看精品 | 免费看毛片网 | 欧美成人综合在线 | 男女视频在线观看免费高清观看 | 久久怡红院| 欧美午夜精品一区二区三区 | 中文久草 | 国产一区二区三区四区五区 | 免费国产成人手机在线观看 | 欧美视频一区二区 | 国产精品96久久久久久久 | 草草视频手机在线观看视频 | 在线视频一区二区三区四区 | 国产三级小视频 | 亚洲日本va | 亚洲成人7777| 欧美激情精品久久久久久久九九九 | 一区二区三区高清视频在线观看 | 午夜在线社区视频 | 亚洲第一色网 | 欧美一级欧美三级 | 成人黄色免费看 | 色综合九九 |