测试积点老人 发表于 2019-2-27 09:33:24

panda包导入出错 python

报错信息:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "D:\PyCharm 2018.2.4\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)# execute the script
File "D:\PyCharm 2018.2.4\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/PycharmProject/KNN.py", line 3, in <module>
    import panda as pd
File "D:\PyCharm 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import
    module = self._system_import(name, *args, **kwargs)
File "D:\PycharmProject\venv\lib\site-packages\panda\__init__.py", line 1, in <module>
    from request import PandaRequest
ImportError: cannot import name 'PandaRequest' from 'request' (D:\PycharmProject\venv\lib\site-packages\request\__init__.py)该怎么解决 急 在线等

qqq911 发表于 2019-2-28 10:37:07

检查下init文件

jingzizx 发表于 2019-2-28 12:43:22

文件是否存在

abcsell 发表于 2019-2-28 13:42:27

检查文件路径还有代码指向的路径
页: [1]
查看完整版本: panda包导入出错 python