小编eux*_*xxx的帖子

使用 pyenv 安装 Python 3.11.1 的问题

我尝试使用 Pyenv 安装 Python 3.11.1 并得到以下结果:

\n
\xe2\x9e\x9c  ~ pyenv install 3.11.1 \nDownloading Python-3.11.1.tar.xz...\n-> https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz\nInstalling Python-3.11.1...\nTraceback (most recent call last):\n  File "<string>", line 1, in <module>\n  File "/home/eustignos/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 100, in <module>\n    import _ssl             # if we can't import it, let the error propagate\n    ^^^^^^^^^^^\nModuleNotFoundError: No module named '_ssl'\nERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?\n\nPlease consult to the Wiki page to fix the problem.\nhttps://github.com/pyenv/pyenv/wiki/Common-build-problems\n\n\nBUILD FAILED (Ubuntu 22.10 using python-build 20180424)\n\nInspect or clean up the working …
Run Code Online (Sandbox Code Playgroud)

python ubuntu homebrew openssl pyenv

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

标签 统计

homebrew ×1

openssl ×1

pyenv ×1

python ×1

ubuntu ×1