python - pip install jupyter-athena-sql 上的 AWS Python Athena 安装错误
问题描述
安装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
命令错误
退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出。错误:找不到满足 jupyter-athena-sql 要求的版本(来自版本:0.0.4) 错误:找不到 jupyter-athena-sql 的匹配分布
解决方案
pip uninstall pyathena
pip install pyathena==1.2.0
见:https ://github.com/markfink/jupyter-athena-sql/blob/develop/requirements.txt
推荐阅读
- c# - 如何使用 Linq 从数据库中查找和删除不匹配的记录
- node.js - 清除浏览器缓存反应js
- php - 我实现了我的 php 版本和 wordpress 主档案,但得到了这个错误
- html - 使用 :focus-within 创建扩展搜索栏时的问题
- php - 如何计算具有一定百分比标签的wordpress帖子?
- ag-grid - 如何使用 Aggrid 导出选定的列
- pandas - 用散景渲染的 Pandas 数据框没有显示任何标记
- python - 使用枚举引用 Pandas 数据框列的语法
- google-roads-api - 速度限制不起作用,但捕捉到道路和其他功能可以
- shell - 使用 if 语句和 for 循环进行 Telnet 循环