简体   繁体   中英

How to associate IDLE 3.6.2 with Python 3.6.2 in CentOS 7

CentOS 7 comes with 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 .

However, when I run using F5, I am still getting Python 2.7.5 instead of 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. Here is the full tutorial I found on the subject: tutorial .

Depending on your needs, alternative solution could be to use Anaconda distribution that doesn't require root to be installed. (sorry for lack of link but I am limited to post only two, it is easy to google though).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM