编译安装执行到 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信息
创建软连接问题
全路径创建