Ubuntu安裝python3.7版

https://blog.csdn.net/u014775723/article/details/85213793

failed to fetch ppa:https://blog.csdn.net/qq_26093511/article/details/78754574

https://blog.csdn.net/u014775723/article/details/85224447

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2                  _ssl                  _uuid              
readline                                                       
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd                
time                                                           


Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381

running build_scripts
copying and adjusting /home/afda/Python-3.7.1/Tools/scripts/pydoc3 -> build/scripts-3.7
copying and adjusting /home/afda/Python-3.7.1/Tools/scripts/idle3 -> build/scripts-3.7
copying and adjusting /home/afda/Python-3.7.1/Tools/scripts/2to3 -> build/scripts-3.7
copying and adjusting /home/afda/Python-3.7.1/Tools/scripts/pyvenv -> build/scripts-3.7
changing mode of build/scripts-3.7/pydoc3 from 664 to 775
changing mode of build/scripts-3.7/idle3 from 664 to 775
changing mode of build/scripts-3.7/2to3 from 664 to 775
changing mode of build/scripts-3.7/pyvenv from 664 to 775
renaming build/scripts-3.7/pydoc3 to build/scripts-3.7/pydoc3.7
renaming build/scripts-3.7/idle3 to build/scripts-3.7/idle3.7
renaming build/scripts-3.7/2to3 to build/scripts-3.7/2to3-3.7
renaming build/scripts-3.7/pyvenv to build/scripts-3.7/pyvenv-3.7
gcc -pthread   -Xlinker -export-dynamic -o Programs/_testembed Programs/_testembed.o libpython3.7m.a -lpthread -ldl  -lutil   -lm  
sed -e "s,@EXENAME@,/usr/local/bin/python3.7m," < ./Misc/python-config.in >python-config.py
LC_ALL=C sed -e 's,\$(\([A-Za-z0-9_]*\)),\$\{\1\},g' < Misc/python-config.sh >python-config

Python3 ssl模块不可用的问题:https://www.cnblogs.com/minglee/p/9232673.html

猜你喜欢

转载自www.cnblogs.com/2008nmj/p/12084517.html