大家好,我是 Python 新手,我正在嘗試在 Windows 10 上的 PyCharm 中運(yùn)行以下代碼。我安裝了 Python 3.8。import pandas as pdfrom matplotlib import pyplot as pltx = [1,2,3]y = [1,4,9]plt.plot(x,y)plt.show()我已經(jīng)在互聯(lián)網(wǎng)上搜索了解決方案,到目前為止我已經(jīng)嘗試了以下方法:卸載并重新安裝 matplotlib安裝 matplotlib 2.1.2 版通過 anaconda 安裝 matplotlib使用代碼安裝 matplotlibpip3 install matplotlib在 VS 代碼中運(yùn)行上述代碼我能夠在 VS 代碼中運(yùn)行代碼,但是當(dāng)我嘗試導(dǎo)入數(shù)據(jù)時(shí)遇到錯(cuò)誤,我寧愿能夠在 Python 中運(yùn)行代碼,也不愿開始學(xué)習(xí)如何使用 VS 代碼以及Python。我不確定我是否遺漏了一些明顯的東西,但我們將不勝感激。
Windows 10 上的 Python Matplotlib 安裝問題
呼喚遠(yuǎn)方
2022-10-25 10:13:33