小编Aet*_*ton的帖子

使用 pyenv 安装 python 3.8 时出现问题

我尝试使用命令 pyenv install 3.8.11 安装 python

如果您需要更多信息,请告诉我。谢谢您的关注。输出:

构建失败(Ubuntu 20.04 使用 python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20210821132713.23441
Results logged to /tmp/python-build.20210821132713.23441.log

Last 10 log lines:
  File "/tmp/python-build.20210821132713.23441/Python-3.8.11/Lib/ensurepip/__init__.py", line 206, in _main
    return _bootstrap(
  File "/tmp/python-build.20210821132713.23441/Python-3.8.11/Lib/ensurepip/__init__.py", line 125, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/tmp/python-build.20210821132713.23441/Python-3.8.11/Lib/ensurepip/__init__.py", line 34, in _run_pip
    return subprocess.run([sys.executable, "-c", code], check=True).returncode
  File "/tmp/python-build.20210821132713.23441/Python-3.8.11/Lib/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/python-build.20210821132713.23441/Python-3.8.11/python', '-c', '\nimport runpy\nimport sys\nsys.path = …
Run Code Online (Sandbox Code Playgroud)

python ubuntu pyenv

5
推荐指数
1
解决办法
4614
查看次数

标签 统计

pyenv ×1

python ×1

ubuntu ×1