[英]How to associate IDLE 3.6.2 with Python 3.6.2 in CentOS 7
CentOS 7
随附Python2.7.5
我安装了Python 3.6.2
,并能够通过输入IDLE 3.6.2
在终端中启动IDLE 3.6.2
。
但是,当我使用F5运行时,我仍然得到的是Python 2.7.5
而不是python 3.6.2.
我试着做
./configure
make altinstall
没有解决问题。 我该如何解决这个问题?
运行以下命令:
yum groupinstall "Development Tools"
yum -y install yum-utils yum-builddep python zlib-devel gcc
cd /usr/src
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2rc1.tgz
tar xzf Python-3.6.2rc1.tgz
cd Python-3.6.2rc1/
./configure
make
make install
which python3 && python3 -V
我发现将Inline与Upstream Stable一起使用是在Centos计算机上获取Python 3.6的最简单方法。 这是我在该主题上找到的完整教程: tutorial 。
根据您的需求,替代解决方案可能是使用不需要安装root的Anaconda发行版。 (对不起,因为缺少链接,但是我只能发布两个,但是很容易用谷歌搜索)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.