linux - 在 Fedora 上安装 PyPi“sshtunnel”包时出错
问题描述
当我在 Fedora31 上执行“pip3 install sshtunnel”时,出现以下错误:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cf_emmbs/sshtunnel/setup.py'"'"'; file='"'"'/tmp/pip-install-cf_emmbs/sshtunnel/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-98qrjgt1
cwd: /tmp/pip-install-cf_emmbs/sshtunnel/
Complete output (23 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-cf_emmbs/sshtunnel/setup.py", line 14, in
from setuptools.command.test import test as TestCommand
File "/usr/local/lib/python3.7/site-packages/setuptools/command/test.py", line 18, in
from .build_py import _unique_everseen
File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_py.py", line 16, in
from setuptools.lib2to3_ex import Mixin2to3
File "/usr/local/lib/python3.7/site-packages/setuptools/lib2to3_ex.py", line 12, in
from lib2to3.refactor import RefactoringTool, get_fixers_from_package
File "/usr/lib64/python3.7/lib2to3/refactor.py", line 26, in
from .fixer_util import find_root
File "/usr/lib64/python3.7/lib2to3/fixer_util.py", line 7, in
from .pygram import python_symbols as syms
File "/usr/lib64/python3.7/lib2to3/pygram.py", line 32, in
python_grammar = driver.load_packaged_grammar("lib2to3", _GRAMMAR_FILE)
File "/usr/lib64/python3.7/lib2to3/pgen2/driver.py", line 156, in load_packaged_grammar
return load_grammar(grammar_source)
File "/usr/lib64/python3.7/lib2to3/pgen2/driver.py", line 131, in load_grammar
g.load(gp)
File "/usr/lib64/python3.7/lib2to3/pgen2/grammar.py", line 108, in load
d = pickle.load(f)
EOFError: Ran out of input
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我在最新版本中更新了 pip3 和 setuptools。谢谢你的帮助!
解决方案
推荐阅读
- .net-core - Azure Devops BUild 脚本需要还原生成和测试
- django - Django:获取 ManyToManyField 的 ManyToMany 对象
- javascript - Chrome 警告框中的内容未被复制
- python - 使用python获取具有特定值的CSV文件的行值
- docker - 如何构建一个自定义 docker 镜像,以实现 Apache Databricks 与 Denodo 的连接?
- reactjs - 出现错误:“数字”类型的参数不可分配给“字符串”类型的参数
- javascript - React:隐藏与删除组件
- amazon-web-services - 无法为 AWS API Gateway 配置 Firebase 授权
- jupyter-notebook - 无法安装“'en_core_web_sm'”
- r - 如何使用汇总动词 dplyr 计算包含分类数据的行?