

This is also specified when installing pythonĬreate a new.

Use the following procedure to implement the compilation and installation: cd Python-3.7.2
Install pip3 on centos install#
The solution is to recompile and install python3.6.
Install pip3 on centos software#
configure, if the – with ssl parameter is not added, the function of ssl related to the default installed software is not available, just because the pip3 process requires the ssl module, but because it is not specified, the function is not available. Using Python 3.7 or above in centos makes pip install command easy to report errors pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.Ĭould not fetch URL https:*******: There was a problem confirming the ssl certificate:Ĭan't connect to HTTPS URL because the SSL module is not available. The dependencies required by these two errors have been added to the initial dependency installation Installation dependency required yum -y install libffi-devel Installation dependency required yum -y install zlib1g-devĮrror 2 ModuleNotFoundError: No module named '_ctypes' Ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3Įrror 1 zipimport.ZipImportError: can't decompress data zlib not available Makefile:1099: recipe for target 'install' failed make: *** Error 1 Create soft link ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3 What-does-enable-optimizations-do-while-compiling-python 6. #The third is to install pip using ssl, which will be mentioned later #The second one can improve the running speed of Python 10% - 20% It is inconvenient to delete the software and copy the software If not specified, the files required by the software may be copied to different directories during the installation process. #The first is to specify the installation path. configure -prefix=/usr/local/python3 -enable-optimizations -with-ssl Create compilation and installation directory mkdir /usr/local/python3 Decompress tar -xvJf Python-3.7.2.tar.xzĤ.
Install pip3 on centos download#
Download the installation package wget wget ģ. Yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-develĢ. In the root user (do not use ordinary users, trouble), all copy and paste in the past, a one-time installation yum -y groupinstall "Development tools" Install the corresponding compilation tools
