【问题标题】:AWS Python Athena Install Error on pip install jupyter-athena-sqlpip install jupyter-athena-sql 上的 AWS Python Athena 安装错误
【发布时间】:2021-07-28 02:12:44
【问题描述】:

安装 jupyter-athena-sql 时遇到问题。似乎是因为jupyter-athena-sql 需要来自pyathena.converter 的一个名为TypeConverter 的包。

!pip install pyathena # Worked
from pyathena.converter import Converter # Worked
!pip install jupyter-athena-sql # **Error**

从 .connection 导入 get_connection 文件“/tmp/pip-install-t_sccvpk/jupyter-athena-sql_94bbe189a6af434d96bd640e62b8dfbf/athena/connection.py”, 第 11 行,在

    from pyathena.converter import TypeConverter
ImportError: cannot import name 'TypeConverter'
---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/43/ea/f8dc5177d8048ef1fa84eb6861d758c254c8438d9826dd84a92b26c48d2e/jupyter-athena-sql-0.0.4.tar.gz#sha256=4b45d8fbaa730cdd4ce70e71c445571d80be35769baaabe4394808c7f2b9d36c

(来自https://pypi.org/simple/jupyter-athena-sql/)。

命令错误

退出状态为 1:python setup.py egg_info 检查日志 完整的命令输出。错误:找不到满足要求的版本 jupyter-athena-sql 要求(从版本:0.0.4)错误:否 为 jupyter-athena-sql 找到匹配的分布

【问题讨论】:

    标签: python python-3.x amazon-web-services jupyter-notebook amazon-athena


    【解决方案1】:
     pip uninstall pyathena
     pip install pyathena==1.2.0
    

    见:https://github.com/markfink/jupyter-athena-sql/blob/develop/requirements.txt

    【讨论】:

      猜你喜欢
      • 2012-07-17
      • 2017-12-03
      • 2017-09-07
      • 2020-12-22
      • 1970-01-01
      • 2019-01-16
      • 1970-01-01
      • 2018-01-28
      相关资源
      最近更新 更多