execsql 1.72 无法安装 Python

execsql 1.72 unable to install Python

系统/版本信息:

我正在尝试使用以下命令安装最新版本的 execsql (1.72):

pip install execsql

当我运行代码时,下面的单元格就是结果。

> Collecting execsql                                                    
> Using cached execsql-1.72.2.tar.gz (115 kB)                           
> ERROR: Command errored out with exit status 1:                        
> command: /usr/bin/python -c 'import sys, setuptools, tokenize;
> sys.argv[0] = '"'"'/tmp/pip-install-UoDS2j/execsql/setup.py'"'"';
> __file__='"'"'/tmp/pip-install-UoDS2j/execsql/setup.py'"'"';f=getattr(tokenize,
> '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
> '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
> egg_info --egg-base /tmp/pip-pip-egg-info-LDfNrk                      
> cwd: /tmp/pip-install-UoDS2j/execsql/                                 
> Complete output (5 lines):                                            
> Traceback (most recent call last):                                    
> File "<string>", line 1, in <module>                                  
> File "/tmp/pip-install-UoDS2j/execsql/setup.py", line 3, in <module>  
> with open('README.md', encoding='utf-8') as f:                        
> TypeError: 'encoding' is an invalid keyword argument for this function
> ----------------------------------------                                                                            ERROR: Command errored out with exit status 1: python setup.py
> egg_info Check the logs for full command output.

这是 Ubuntu 和 Python 的新实例。我将非常感谢解决此问题的帮助,因为我无法在网上找到任何指向正确方向的文档。以下列表涵盖了我已采取的尝试解决问题的步骤:

错误

with open('README.md', encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function

发生是因为代码与 Python 不兼容 2. 我可以在没有此错误的情况下安装的最新版本 execsql 是 1.47.0.