51Testing软件测试论坛

标题: panda包导入出错 python [打印本页]

作者: 测试积点老人    时间: 2019-2-27 09:33
标题: panda包导入出错 python
报错信息:
  1. Traceback (most recent call last):
  2.   File "<input>", line 1, in <module>
  3.   File "D:\PyCharm 2018.2.4\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
  4.     pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  5.   File "D:\PyCharm 2018.2.4\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
  6.     exec(compile(contents+"\n", file, 'exec'), glob, loc)
  7.   File "D:/PycharmProject/KNN.py", line 3, in <module>
  8.     import panda as pd
  9.   File "D:\PyCharm 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import
  10.     module = self._system_import(name, *args, **kwargs)
  11.   File "D:\PycharmProject\venv\lib\site-packages\panda\__init__.py", line 1, in <module>
  12.     from request import PandaRequest
  13. ImportError: cannot import name 'PandaRequest' from 'request' (D:\PycharmProject\venv\lib\site-packages\request\__init__.py)
复制代码

该怎么解决 急 在线等



作者: qqq911    时间: 2019-2-28 10:37
检查下init文件
作者: jingzizx    时间: 2019-2-28 12:43
文件是否存在
作者: abcsell    时间: 2019-2-28 13:42
检查文件路径还有代码指向的路径




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2