|
编译安装执行到 make install时 出现Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
这时需要安装与之相关的包
sudo apt-get install libssl-dev
sudo apt-get install openssl
当我安装了libssl-dev后继续make install仍然报错Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
还需要安装
sudo apt-get install make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev
sudo apt-get install libssl1.0
此时,再执行make install 就成功安装上了pip以及
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-8.1.1 setuptools-20.10.1
新问题,在/usr/local/python3.5/bin/下执行./pip3 -V查看信息出错
error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
将解压后的源码包Python3.5.2/下的libpython3.5m.so.1.0复制一份到/usr/lib/下 再次执行./pip3 -V发现正常输出python3.5.2的pip信息
创建软连接问题 在/usr/local/python3.5/bin/下执行sudo ln -s ./pip3.5 /usr/local/bin,执行后的/usr/local/bin下的pip3.5是红色的,无法使用 应该先在/usr/local/python3.5/bin/下执行sudo ln -s ./pip3.5 pip3.5l;pip3.5l随便命名 然后复制pip3.5l到/usr/local/bin下,并改名为pip3.5。然后就可以正常使用了
|