我想安装 Python 3.10.5(或至少 Python >= 3.7)。我关注了these instructions :
# Step 1. Install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
# Step 2. Install missing headers for all the Python modules to be built
sudo zypper install readline-devel sqlite3-devel libbz2-devel
# Step 3. Install the desired Python version
pyenv install 3.10.5
直到我pyenv install 3.10.5
:
bscuser@localhost:~> pyenv install 3.10.5
/home/bscuser/.pyenv/plugins/python-build/share/python-build/3.7.13: line 1: prefer_openssl11: command not found
BUILD FAILED (openSUSE 15.3 using python-build 20180424)
感觉应该和this file有关.
我该如何解决?
最佳答案
是的,你可以。首先使用 pyenv update
然后运行 pyenv install -list
你应该能够看到版本 3.10.4
, 3.10.5
甚至 3.10.6
现在
关于python - 使用 pyenv 安装 Python 3.10.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72627876/