$ virtualenv venv New python executable in /Users/taoyi/git_projects/Python_Training/flasky/venv/bin/python2.7 Also creating executable in /Users/taoyi/git_projects/Python_Training/flasky/venv/bin/python Installing setuptools, pip, wheel...done.
# ubuntu @ VM-4-14-ubuntu in /usr/bin [16:24:51] $ pyenv install 3.11.3 WARNING: Please make sure you remove any previous custom paths from your /home/ubuntu/.pydistutils.cfg file. Downloading Python-3.11.3.tar.xz... -> https://www.python.org/ftp/python/3.11.3/Python-3.11.3.tar.xz Installing Python-3.11.3... Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/ubuntu/.pyenv/versions/3.11.3/lib/python3.11/curses/__init__.py", line 13, in <module> from _curses import * ModuleNotFoundError: No module named '_curses' WARNING: The Python curses extension was not compiled. Missing the ncurses lib? Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/ubuntu/.pyenv/versions/3.11.3/lib/python3.11/ctypes/__init__.py", line 8, in <module> from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes' WARNING: The Python ctypes extension was not compiled. Missing the libffi lib? Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'readline' WARNING: The Python readline extension was not compiled. Missing the GNU readline lib? Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/ubuntu/.pyenv/versions/3.11.3/lib/python3.11/ssl.py", line 100, in <module> import _ssl # if we can't import it, let the error propagate ^^^^^^^^^^^ ModuleNotFoundError: No module named '_ssl' ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Please consult to the Wiki page to fix the problem. https://github.com/pyenv/pyenv/wiki/Common-build-problems
BUILD FAILED (Ubuntu 22.04 using python-build 20180424) ...
ModuleNotFoundError: No module named '_curses'报错
1 2
ModuleNotFoundError: No module named '_curses' WARNING: The Python curses extension was not compiled. Missing the ncurses lib?
解决
1
sudo apt-get install libncurses-dev
ModuleNotFoundError: No module named '_ctypes'报错
1 2
ModuleNotFoundError: No module named '_ctypes' WARNING: The Python ctypes extension was not compiled. Missing the libffi lib?
解决
1
sudo apt-get install libffi-dev
ModuleNotFoundError: No module named 'readline'报错
1 2
ModuleNotFoundError: No module named 'readline' WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
解决
1
sudo apt-get install libreadline-dev
ModuleNotFoundError: No module named '_ssl'报错
1 2
ModuleNotFoundError: No module named '_ssl' ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?