亚洲免费在线视频-亚洲啊v-久久免费精品视频-国产精品va-看片地址-成人在线视频网

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

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

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

學(xué)習(xí)python過(guò)程中想使用python的matlabplot繪圖功能,遇到了一大批問(wèn)題,然后一路過(guò)關(guān)斬將,最終安裝成功,實(shí)為不易,發(fā)帖留念。

1 首先打開(kāi)cmd

win+r

2 pip安裝

pip3 install --user numpy scipy matplotlib

?user 選項(xiàng)可以設(shè)置只安裝在當(dāng)前的用戶下,而不是寫(xiě)入到系統(tǒng)目錄。默認(rèn)情況使用國(guó)外線路,國(guó)外太慢,我們使用清華的鏡像就可以:

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

如何網(wǎng)絡(luò)不好,我們可以挨個(gè)單獨(dú)安裝

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時(shí)遇到錯(cuò)誤:

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/網(wǎng)站找到worldcouldwindows下python 3.9 Numpy scipy和matlabplot的安裝教程詳解

選著自己相應(yīng)的.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 再次出現(xiàn)錯(cuò)誤

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的安裝教程詳解

顯示安裝成功,趕緊找個(gè)程序來(lái)試一下:

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的安裝教程詳解

安裝成功,一波五折

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

標(biāo)簽: Python 編程
相關(guān)文章:
主站蜘蛛池模板: 日韩一级黄色 | 亚洲男女网站 | 亚洲三级理论 | 久久精品一区二区三区不卡牛牛 | 色综久久 | 一区二区三区四区视频在线观看 | 高清国产露脸捆绑01经典 | 在线成年人网站 | 久久精品国产欧美日韩99热 | 三级黄色片在线免费观看 | 成人国产精品 | 99国产精品视频久久久久 | 久久精品视频9 | 国产精品九九视频 | 精品区| 国产精品亚洲精品一区二区三区 | 美女黄色毛片免费看 | 很黄的网站在线观看 | 美国毛片基地a级e片 | 欧美巨大精品videos | 亚洲午夜精品一级在线 | 国产成人18黄网站免费 | 欧美视频第一页 | 国内精品美女写真视频 | 亚洲男人的天堂久久精品 | 国产99视频在线观看 | 久久精品高清视频 | 一本色道久久88 | 高清视频 一区二区三区四区 | 在线播放一区二区精品产 | 成年人视频网站免费 | 99久久国产综合精品五月天 | 美女视频免费永久观看的 | 激情宗合网 | 步兵精品手机在线观看 | 国产精品久久久久久久久久直 | 国产精品理论 | a级毛片毛片免费很很综合 a级毛片免费 | 国产精品永久免费自在线观看 | 久久久久久久久影院 | 香蕉视频在线观看黄 |