pandas导入问题与pyscripter

时间:2018-02-18 11:56:18

标签: pandas import python-3.6 pyscripter

我有运行python 3.6.3的pyscripter版本3.2.2.0 x86 当我想在py模块中导入pandas(即导入pandas为pd)时, 我最终得到一个例外:语法无效

Traceback (most recent call last):
  File "<string>", line 424, in run_nodebug
  File "<module1>", line 13, in <module>
  File "D:\Users\Jean\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pandas\__init__.py", line 13, in <module>
    __import__(dependency)
  File "D:\Users\Jean\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytz\__init__.py", line 19, in <module>
    from pytz.lazy import LazyDict, LazyList, LazySet
  File "D:\Users\Jean\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytz\lazy.py", line 3, in <module>
    from UserDict import DictMixin
  File "D:/Users/Jean\Desktop/Kodi Python Development/PythonPourDebutants/App/Lib\UserDict.py", line 134
    raise TypeError, "pop expected at most 2 arguments, got "\
                   ^
SyntaxError: invalid syntax

但是当我在命令行导入时,一切正常! 为什么会这样?

感谢您的回答!

0 个答案:

没有答案