简体   繁体   English

将 panddasgui 导入 jupyter notebook 时出错

[英]error when importing panddasgui into jupyter notebook

after I installed pandasgui in a conda virtual environment with Python=3.8, I try to import pandasgui with from pandasgui import show and here is the error that I have:在使用 Python=3.8 在 conda 虚拟环境中安装 pandasgui 后,我尝试使用from pandasgui import show导入 pandasgui,这是我遇到的错误:

Traceback (most recent call last):

  File "c:\users\pmore\anaconda3\envs\myenv\lib\site-packages\IPython\core\interactiveshell.py", line 3331, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-1-488ae1300181>", line 1, in <module>
    from pandasgui import show

  File "c:\users\pmore\anaconda3\envs\myenv\lib\site-packages\pandasgui\__init__.py", line 15, in <module>
    from pandasgui.gui import show

  File "c:\users\pmore\anaconda3\envs\myenv\lib\site-packages\pandasgui\gui.py", line 13, in <module>
    from pandasgui.store import PandasGuiStore

  File "c:\users\pmore\anaconda3\envs\myenv\lib\site-packages\pandasgui\store.py", line 1
    from __future__ import annotations
                                      ^
SyntaxError: future feature annotations is not defined

Any help is appreciated任何帮助表示赞赏

Never mind, I just found that I'm using Python v 3.6 when I should be using 3.7 or higher.没关系,我刚刚发现我应该使用 3.7 或更高版本时使用的是 Python v 3.6。 Just upgraded my python version and it works fine.刚刚升级了我的 python 版本,它工作正常。 Thank you谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM