Installing Python 3.7 on CentOS 7 (Python 3.7 not yet available on official repos)

Submitted by aknnn on Sun, 09/30/2018 - 21:26

At the time of writing this, Python 3.7 wasn't available on official repos so the installation process is a bit more nuanced. Still easy enough for beginners.
I would recommend you to login as root to do this since it makes it lot easier. Atleast for me it did.

Install all needed packages:
yum install libffi-devel zlib-devel openssl openssl-devel

yum groupinstall development

Make new directory somewhere for installation files and cd into that directory. You can remove this directory after installation is complete.

(yum install wget, if you don't have the package, if you don't want to install it, you can also manually download the archive from that url)

cd Python-3.7.0/

./configure --enable-optimizations
The --enable-optimizations argument makes some additional optimizations during configuration, this will slow the process a little bit but it usually makes the python run a bit faster.

make altinstall
"altinstall" instead of just "install" is important because this will install Python 3.7 without removing the Python 2.x which is already installed and most likely needed in your system.

Installation is now complete, but your python and pip commands for the new python are "python3.7" and "pip3.7"
It's a little unconvenient to always type the whole version name. Let's make simpler aliases for easier usage:

Edit your main user's (not root) .bashrc to contain these two lines
alias python3="python3.7"
alias pip3="pip3.7"

WARNING: Don't make the alias just "python" because this will most likely break your system. There are still lot's of utilities that are dependent on the python 2.x.

Reload your .bashrc file:
source ~/.bashrc

You should be ready to go!


Attractive secti᧐n օf cօntent. I јust stumbled սpon yߋur weblog ɑnd in accession capitzl tօ assert tһat I get in facct enjoyed account yoᥙr blog posts.
Αnyway I ᴡill bе subscribing t᧐ yоur augment and even I achievement yoou access cconsistently

Ꮋere is my weblog :: Best Winter Jacket Womens 2018 Planners Custom

Ꭼverything wrote made a tonn of sense.

Ᏼut, what about this? what if you addeɗ a little
information? I ain't suhggesting your content is not good., but
suppose you added somethibg to possibly gеt folk'ѕ attention? I mean Add new comment |
aknnn is а little vanilla. You could glаnce at Yahoⲟ's front page and note how they сreate article headlines to
get people interested. Yߋu might add a related viⅾeo or a pic or two too ɡrsb people excited
abоkut what you've got tto say. In my opinion, it would bring yoᥙr
blog a little livelier.

Also visijt my ԝeb-site non woven geotextile

I'm gone to tell my little brother, that he should also pay a quick visit
this weblog on regular basis to obtain updated from latest news.

Feel free to visit my web page - sbobet

Your opponent is able to see you on the world wide web when your moves are
created. You have control of the length of time used on a
game and how you tune in to it. The various gifts
and prizes on the webpage will spur you to experience
countless win more.

My site :: 라이브카지노

Hey! Would you mind if I share your blog with my zynga group?

There's a lot of folks that I think would really appreciate your content.
Please let me know. Thank you

Also visit my web-site - Dong

Pretty nice post. I just stumbled upon your weblog and wanted to say that
I have really enjoyed browsing your blog posts. In any case I
will be subscribing in your rss feed and I am hoping you write again very soon!

Feel free to visit my site ...

First of all I would like tο ѕay excellent blog!
Ӏ haԀ a quick question that Ι'd lіke tо aѕk if you
dօn't mind. І was іnterested to know how you center yourself and clear your mind befοre writing.
Ӏ hɑve had difficulty clearing mʏ mind in getting mʏ thoughts oսt.
I truly do enjoy writing Ƅut it just seems liкe the first 10 tⲟ 15 minutes
aгe ցenerally wasted simply just trying
to figure out hօw to begin. Any recommendations
or tips? Many thɑnks!

Feel free to surf tօ my blog ...

What's Taking place i am new to this, I stumbled upon this I've
found It positively helpful and it has aided me out
loads. I hope to give a contribution & help other customers
like its helped me. Good job.

my web blog judi bola

Normally I do not read post on blogs, but I would like
to say that this write-up very pressured me to check this out and do it!
Your writing taste has been amazed me. Thanks, very great post.

Add new comment