我是 python 新手,所以這可能是一個(gè)簡(jiǎn)單的修復(fù),但我無(wú)法通過(guò)谷歌搜索找到解決方案。嘗試在模塊上運(yùn)行導(dǎo)入時(shí)出現(xiàn)此錯(cuò)誤。Traceback (most recent call last): File "c:/Users/joeshmo/OneDrive - company Industries/Documents/Python/Excel Join/join.py", line 1, in <module> from openpyxl import load_workbookModuleNotFoundError: No module named 'openpyxl'Openpyxl 已經(jīng)安裝,因?yàn)?pip 給了我這個(gè)......pip install openpyxl Requirement already satisfied: openpyxl in c:\users\joeshmo\appdata\local\programs\python\python38-32\lib\site-packages (3.0.5)Requirement already satisfied: jdcal in c:\users\joeshmo\appdata\local\programs\python\python38-32\lib\site-packages (from openpyxl) (1.4.1)Requirement already satisfied: et-xmlfile in c:\users\joeshmo\appdata\local\programs\python\python38-32\lib\site-packages (from openpyxl) (1.0.1)Python安裝在這里...C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32Python路徑在這里...C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\python38.zipC:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\DLLsC:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\libC:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32C:\Users\joeshmo\AppData\Roaming\Python\Python38\site-packagesC:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\lib\site-packages在 Windows 10 上。任何幫助,將不勝感激!
1 回答

紅顏莎娜
TA貢獻(xiàn)1842條經(jīng)驗(yàn) 獲得超13個(gè)贊
在與同事進(jìn)行故障排除后,我們發(fā)現(xiàn)我運(yùn)行了 2 個(gè)版本的 python。我可以運(yùn)行“py”(3.8.0)或“python”(3.8.5)。卸載舊版本后。這不再是問(wèn)題了。
添加回答
舉報(bào)
0/150
提交
取消