python3 pip Install Error: No matching distribution found for
Install openssl
wget /source/openssl-1.1. tar -zxvf openssl-1.1. cd openssl-1.1.1a ./config --prefix=/usr/local/openssl-1.1.1 --openssldir=/usr/local/openssl-1.1.1 make && make install # Method 1, declare temporary variables, recommended for fear of affecting the online service. # Including subsequent references to library files should be declared in advance export LD_LIBRARY_PATH=/usr/local/openssl-1.1.1/lib:$LD_LIBRARY_PATH # Method 2, permanent declaration of variables echo "/usr/local/openssl-1.1.1/lib" >> /etc//openssl-1.1.1-x86_64.conf ldconfig
Installing python3
--downloadingpython wget /ftp/python/3.7.11/Python-3.7. --decompression (esp. computer)、Compilation and Installation tar xvf Python-3.7. cd Python-3.7.11 ./configure --prefix=/usr/local/python-3.7.11 --enable-optimizations --with-openssl=/usr/local/openssl-1.1.1 make && make install --Make a soft connection to the current user'sbincatalogs ln -s /usr/local/python-3.7.11 /usr/local/python3 ln -s /usr/local/python-3.7.11/bin/python3.7 /usr/bin/python3 ln -s /usr/local/python-3.7.11/bin/pip3 /usr/bin/pip3
May report an error:: can't decompress data
Solution:
1、Open a terminal,Enter the following command to installzlibRelated dependency packages: yum -y install zlib* 2、go into pythoninstaller,modificationsModulepathwaysetupfile: (1) Modules/ (or Modules/Setup) file vim Modules/ (2) Find a line of code,Remove comments: #zlib -I$(prefix)/include -L$(exec_prefix)/lib -lz Remove comments zlib -I$(prefix)/include -L$(exec_prefix)/lib -lz (3) go intopython的installer路径下执行: make && make install
summarize
to this article on python3 installation and pip3 ERROR: No matching distribution found for the solution to this article, more related python3 installation and pip3 ERROR content please search for my previous posts or continue to browse the following related articles I hope you will support me in the future!