[英]How to associate IDLE 3.6.2 with Python 3.6.2 in CentOS 7
CentOS 7
comes with Python2.7.5
CentOS 7
随附Python2.7.5
I installed Python 3.6.2
, and was able to launch IDLE 3.6.2 in terminal by typing IDLE 3.6.2
. 我安装了Python 3.6.2
,并能够通过输入IDLE 3.6.2
在终端中启动IDLE 3.6.2
。
However, when I run using F5, I am still getting Python 2.7.5
instead of python 3.6.2.
但是,当我使用F5运行时,我仍然得到的是Python 2.7.5
而不是python 3.6.2.
I tried doing 我试着做
./configure
make altinstall
didnt resolve the issue. 没有解决问题。 How can I resolve this issue? 我该如何解决这个问题?
运行以下命令:
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
I found that using Inline with Upstream Stable is the easiest to get Python 3.6 on Centos machines. 我发现将Inline与Upstream Stable一起使用是在Centos计算机上获取Python 3.6的最简单方法。 Here is the full tutorial I found on the subject: tutorial . 这是我在该主题上找到的完整教程: tutorial 。
Depending on your needs, alternative solution could be to use Anaconda distribution that doesn't require root to be installed. 根据您的需求,替代解决方案可能是使用不需要安装root的Anaconda发行版。 (sorry for lack of link but I am limited to post only two, it is easy to google though). (对不起,因为缺少链接,但是我只能发布两个,但是很容易用谷歌搜索)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.