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!


Hi there! This article could not bbe written any better!
Looking through this article reminds me of my previous roommate!
He always kept talking about this. I will forward this article to him.
Fairly certain he'll have a great read. I appreciate you for sharing!

Feeel free to sujrf to my weblog :: experts in damp proofing and tanking in swindon village

I’m not that much of a internet reader to be honest
but your sites really nice, keep it up! I'll go ahead and bookmark
your website to come back down the road. Cheers

Feel free to surf to my website ... press release (Myrtle)

It's an awesome piece ᧐f writinng in favor ᧐f
аll the internet users; tһey wiol obtɑin advantage from it I am ѕure.

Feel free to visit myy web ρage :: Kori Zaneski (Adolph)

Wonderful blog you have here but I was wondering if you knew of any message boards that cover thhe same topics discussed here?
I'd really like to be a part of online community where I can get
advice from other experienced people that share the same interest.
If you have any suggestions, please let me know. Thanks a lot!

Review my page Domestic Installations Chipping Campden

Hey there! This post couldn't be written any better!
Reading this post reminds me of my old room mate!
He always kept talking about this. I will forward this post to him.
Fairly certain he will have a good read. Thanks for sharing!

my site ... Hooda Math 10

Hiya! Quick question that's completely off topic. Do
you know how to make your site mobile friendly? My weblog looks weird when viewing from
my iphone4. I'm trying to find a template or plugin that
might be able to correct this problem. If you have any suggestions, please share.

Many thanks!

my web-site ... Hooda Math Games

These free bingo bonus bucks are free inside sense that you don't must place bets or purchase
any bingo cards like the regular games played online.
If you are the one who does not need to load their computer with gaming software,
online casino no download is one of the most suitable choice for you.
The glamour and glitz which were related to gambling can be credited
for the casino managers at Las Vegas.

My web-site; 모바일카지노

But to have a good match you will need to understand all of
the tricks that help that you play safe. Generally when you
usually do not enough depends upon cover up the bet or
adequate balance to play in the game then this software
automatically displays a word stating that you have hardly any credits left in your account and whether isn't it time to buy more credits or not.
The online games can be found in nearly every corner around the globe and accessible in twenty-four hours a day, 7 days weekly, and 365 days
a year.

my blog post 카지노

Good day! This is my first visit to your blog! We are a collection of volunteers and starting a new initiative in a community in the same niche.
Your blog provided us useful information to work on. You have done a marvellous job!

My web page poker online, Adrian,

Hmm it appears like your site ate my first comment (it was super long)
so I guess I'll just sum it up what I submitted and say, I'm
thoroughly enjoying your blog. I as well am an aspiring blog writer but I'm still new to
the whole thing. Do you have any recommendations for beginner blog
writers? I'd definitely appreciate it.

Feel free to surf to my blog: Abcya

I do accept as true with all of the ideas you have offered
on your post. They are really convincing and can certainly work.
Still, the posts are too short for novices. Could you please prolong them a little from
next time? Thank you for the post.

Also visit my web site: casino online (Tanja)

Whats up are using Wordpress for your blog platform? I'm new
to the blog world but I'm trying to get started and set up my own. Do you need
any html coding expertise to make your own blog? Any help would be really appreciated!

istanbul escort
şirinevler escort
taksim escort
mecidiyeköy escort
şişli escort
istanbul escort
kartal escort
pendik escort
tuzla escort
kurtköy escort

When some one searches for his essential thing, so he/she needs
to be available that in detail, therefore that thing is maintained over here.

Feel free to surf to my blog post Abcya 5

Wow that was odd. I just wrote an extremely long comment but after I clicked submit my comment didn't appear.

Grrrr... well I'm not writing all that over again. Anyhow, just wanted to say superb blog!

Visit my site: Abcya 50

I do not know if it's just me or if everyone else experiencing issues with your site.

It seems like some of the written text on your posts are running off the
screen. Can somebody else please comment and let me know
if this is happening to them as well? This may be a problem with my internet browser because I've had this happen before.

My webpage - Abcya 300

Hi there fantastic website! Does running a blog such as this take a great deal of
work? I've very little understanding of coding however I was hoping to start my own blog soon. Anyways, if you have any
ideas or techniques for new blog owners please share.
I know this is off subject but I just wanted to ask.

Look into my web page :: Cristine

Its like you read my thoughts! You seem to understand
a lot approximately this, such as you wrote the book in it or something.
I believe that you can do with some p.c. to pressure the message home a
bit, however instead of that, this is excellent
blog. An excellent read. I'll definitely be back.

My blog; Abcya 2

Your opponent is able to see your self on the world wide web whenever your moves are created.
Joe Obstacle Course: Joes need to be in top health so
enable them to train having a fun but challenging obstacle course inside the party area.
It is more competitive and professional game performed well
through the video game players.

my web blog :: 호게임

Add new comment