尝试导入已安装的python模块时出错

尝试导入已安装的python模块时出错,python,python-import,importerror,pythonpath,Python,Python Import,Importerror,Pythonpath,我是python新手,所以这可能是一个简单的解决方案,但我无法通过谷歌搜索找到解决方案。我在尝试对模块运行导入时遇到此错误 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

我是python新手,所以这可能是一个简单的解决方案,但我无法通过谷歌搜索找到解决方案。我在尝试对模块运行导入时遇到此错误

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_workbook
ModuleNotFoundError: No module named 'openpyxl'
Python安装在这里

C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32
蟒蛇在这里

C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\python38.zip
C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\DLLs
C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\lib
C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32
C:\Users\joeshmo\AppData\Roaming\Python\Python38\site-packages
C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\lib\site-packages
在Windows10上


任何帮助都将不胜感激

与同事一起排除故障后,我们发现我运行了两个版本的python。我可以运行“py”(3.8.0)或“python”(3.8.5)。卸载旧版本后。这不再是一个问题。

是否使用虚拟环境?请确保使用python3.8运行python脚本。否则,请尝试使用
pip3
安装。包管理器和python版本必须match@stilManiac-不,只是在我的机器上。@TedKleinBergman-我如何验证?我只安装过一个版本。(python新手):您如何运行它?
C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\python38.zip
C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\DLLs
C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\lib
C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32
C:\Users\joeshmo\AppData\Roaming\Python\Python38\site-packages
C:\Users\joeshmo\AppData\Local\Programs\Python\Python38-32\lib\site-packages