[英]Python3.6 failing on Ubuntu 14.04
我已经按照http://docs.python-guide.org/en/latest/starting/install3/linux/在运行Jenkins的Ubuntu计算机上安装了Python3.6。
安装后,如果我运行python3.6,我什么也没得到。
如果我运行update-alternatives --config python3
我会得到:
如果我选择3.6作为默认Python3运行,然后运行pip3 -V
我将得到:
但是,如果在选择Python3.4的情况下运行pip3 -V
,则效果很好。
更新我设法使Python3.6按照此SO答案工作: 在ubuntu上将python3.4升级至python3.6会中断pip
Update 2 pip 3.6现在可以正常工作,但是安装软件包可以得到以下效果:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting requests Could not fetch URL https://pypi.python.org/simple/requests/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping Could not find a version that satisfies the requirement requests (from versions: ) No matching distribution found for requests
经过环形交叉路口后,以下工作成功了:
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python3.4 get-pip.py
如果出现有关lsb_release的错误,请编辑该文件(我的文件位于/usr/bin/lsb_release
)并替换#! /usr/bin/python3 -Es
#! /usr/bin/python3 -Es
带#! /usr/bin/python2.7
#! /usr/bin/python3 -Es
#! /usr/bin/python2.7
#! /usr/bin/python2.7
之后,将CD插入Python3.6.1目录并运行以下命令:
./configure --enable-optimizations
make -j8
make altinstall
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.