未找到Pandas模块,但

iyr7buue  于 2022-10-23  发布在  其他
关注(0)|答案(1)|浏览(235)

出于某种原因,我不能让Pandas工作。几年前,我使用Atom作为IDE,当时一切都很好。现在我想通过使用PyCharm来刷新我的Python技能,但是我的第一个脚本结果是:

ModuleNotFoundError: No module named 'pandas'

根据cmdPandas安装:

Requirement already satisfied: pandas in c:\users\myname\appdata\local\programs\python\python310\lib\site-packages (1.5.1)
Requirement already satisfied: numpy>=1.21.0 in c:\users\myname\appdata\local\programs\python\python310\lib\site-packages (from pandas) (1.23.4)
Requirement already satisfied: python-dateutil>=2.8.1 in c:\users\myname\appdata\local\programs\python\python310\lib\site-packages (from pandas) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in c:\users\myname\appdata\local\programs\python\python310\lib\site-packages (from pandas) (2022.5)
Requirement already satisfied: six>=1.5 in c:\users\myname\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.8.1->pandas) (1.16.0)

卸载和重新安装没有什么区别。我已经试过几次了。

zpgglvta

zpgglvta1#

很可能您在命令行和PyCharm中使用了不同的(虚拟)环境。参见JetBrains docs on configuring the Python interpreter for PyCharm
如果Python的配置符合您的预期,请按照these docs检查已安装的包

相关问题