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.

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
(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!

Comments

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; 모바일카지노

What i do not understood is in fact how you are no longer actually a lot more neatly-liked than you may be
now. You're very intelligent. You recognize thus considerably relating to this matter, made me personally consider it from a lot of varied angles.
Its like men and women aren't interested unless it is something to accomplish with Lady gaga!
Your individual stuffs outstanding. All the time deal with it up!

Feel free to surf to my web-site ... 코인카지노

My coder is trying to persuade me to move to .net
from PHP. I have always disliked the idea because of
the costs. But he's tryiong none the less.

I've been using WordPress on various websites for about a
year and am concerned about switching to another platform.
I have heard very good things about blogengine.net.
Is there a way I can transfer all my wordpress content into
it? Any kind of help would be really appreciated!

My web page - business card printing

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 카지노

That is really interesting, You are a very skilled blogger.
I have joined your feed and look ahead to searching for more of your
fantastic post. Also, I've shared your website in my social networks

Here is my web-site ... Hooda Math 2

Hmm is anyone else experiencing problems with the
pictures on this blog loading? I'm trying to find out if its
a problem on my end or if it's the blog. Any responses would be
greatly appreciated.

My site hotel along

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

I do not know whether it's just me or if everybody
else encountering issues with your blog. It looks like
some of the text on your content are running off the
screen. Can somebody else please comment and let me know if this is happening to them
as well? This could be a problem with my internet browser because
I've had this happen before. Many thanks

My blog post - online business

At the same time Alice's Wonderland slots boasts a huge massive jackpot
as also does Diamond Valley slots. This software means that you've got the
greatest experience by doing simple things without getting yourself into any complex stuff.
The boxes represent separate number groups, wierd or maybe
digits and columns.

My blog post: 온라인카지노

Add new comment