我在python 2.7中使用pycharm和我的项目Interpreter。 pip和pandas(0.23.4)都安装在anaconda中,我将路径连接到pycharm。我不知道为什么它还在说导入错误,好像它没有停止?
这是我的导入系统 sys.path
['C:\ Program Files \ JetBrains \ PyCharm Community Edition 2019.1.3 \ helpers \ pydev', 'C:\', 'C:\ Program Files \ JetBrains \ PyCharm Community Edition 2019.1.3 \ helpers \ third_party \ thriftpy', 'C:\ Program Files \ JetBrains \ PyCharm Community Edition 2019.1.3 \ helpers \ pydev', 'C:\ ProgramData \ Anaconda2 \ python27.zip', 'C:\ ProgramData \ Anaconda2 \ DLLs', 'C:\ ProgramData \ Anaconda2 \ lib', 'C:\ ProgramData \ Anaconda2 \ lib \ plat-win', 'C:\ ProgramData \ Anaconda2 \ lib \ lib-tk', 'C:\ ProgramData \ Anaconda2', 'C:\ ProgramData \ Anaconda2 \ lib \ site-packages', 'C:\ ProgramData \ Anaconda2 \ lib \ site-packages \ win32', 'C:\ ProgramData \ Anaconda2 \ lib \ site-packages \ win32 \ lib', 'C:\ ProgramData \ Anaconda2 \ lib \ site-packages \ Pythonwin', 'C:\ ProgramData \ Anaconda2 \ lib \ site-packages \ IPython \ extensions', 'C:\', 'C:/']
我也尝试过:
(基本)C:> pip安装熊猫 已满足要求:c:\ programdata \ anaconda2 \ lib \ site-packa中的熊猫 格斯(0.23.4) 已经满足要求:c:\ programdata \ anaconda中的python-dateutil> = 2.5.0 2 \ lib \ site-packages(来自pandas)(2.7.5) 已经满足要求:pytz> = 2011k in c:\ programdata \ anaconda2 \ lib \ site- 包裹(来自熊猫)(2018.7) 已经满足要求:numpy> = 1.9.0在c:\ programdata \ anaconda2 \ lib \ site -packages(来自pandas)(1.15.4) 已满足要求:c:\ programdata \ anaconda2 \ lib \ site-pac中六个> = 1.5 kages(来自python-dateutil> = 2.5.0-> pandas)(1.12.0)
因此调试器发出的实际错误消息是:
:(,ImportError('No module named pandas',),None)