【发布时间】:2022-08-16 00:35:55
【问题描述】:
我想安装 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有关。
我该如何解决这个问题?
-
您是否尝试重新启动外壳程序?对您的 bashrc 文件进行了导出。
标签: python pyenv virtual-environment python-3.10