安装python3.9
对于 Ubuntu/Debian,可以使用以下命令:
sudo apt update
sudo apt install python3.9
对于 CentOS,可能需要先启用 EPEL 存储库,然后使用以下命令:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install python39
如果出现 这样的报错
ERROR: Command errored out with exit status 1: xx/venv39/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-co0tuwk_/pysha3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-co0tuwk_/pysha3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-zdqs71cb/install-record.txt --single-version-externally-managed --compile --install-headers xx/venv39/include/site/python3.9/pysha3 Check the logs for full command output.
因为在尝试安装 <


2207

被折叠的 条评论
为什么被折叠?



