小编Bea*_*ass的帖子

如何将python3.7安装到ubuntu 20.04上?

我是一个没有经验的 Linux 用户,但已经摆弄了几个月了。我需要在项目中使用 python 3.5-3.7,但无法从 tarball 安装 python3.7,如下所述:Install Python 3.7 packages in Ubuntu 20.04

我已在此处向终端提供了输出:(抱歉太长了,我不知道相关内容)

查看错误日志

ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-_od32i_x/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-_od32i_x/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-spo6ltjl
       cwd: /tmp/pip-req-build-_od32i_x/
  Complete output (230 lines):
  running bdist_wheel
  running build
  running build_ext
  INFO: Can't locate Tcl/Tk libs and/or headers
 building '_ctypes_test' extension
 creating build/temp.linux-x86_64-3.8/_ctypes
 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong …
Run Code Online (Sandbox Code Playgroud)

python3 software-installation

15
推荐指数
1
解决办法
6万
查看次数

标签 统计

python3 ×1

software-installation ×1