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

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.
Kudos

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.
Cheers!

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 :: 호게임

Write more, thats all I have to say. Literally, it seems as though
you relied on the video to make your point. You clearly know what youre talking about, why throw
away your intelligence on just posting videos to your
weblog when you could be giving us something informative
to read?

Review my blog ... comprar seguidores no insta

Hey there would you mind stating which blog platform
you're working with? I'm planning to start my own blog soon but I'm having a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal.

The reason I ask is because your design seems different then most blogs and I'm looking for something unique.
P.S Sorry for getting off-topic but I had to ask!
istanbul escort
şirinevler escort
taksim escort
mecidiyeköy escort
şişli escort
istanbul escort
kartal escort
pendik escort
tuzla escort
kurtköy escort

Do you have a spam issue on this site; I also am a blogger,
and I was curious about your situation; we have developed some nice practices and we are looking
to exchange strategies with other folks, why not shoot me an email if interested.

My webpage ... Hooda Math

Wonderful article! This is the kind of info that are meant to be shared around
the internet. Shame on the seek engines for now not positioning this publish upper!
Come on over and discuss with my website . Thanks =)

Here is my blog post: Vilma

I'm not sure where you're getting your info, but good
topic. I needs to spend some time learning more or understanding more.
Thanks for great info I was looking for this information for my mission.

Also visit my blog post: camera ip nào tốt

hello there and thank you for your information – I've certainly picked up anything new from right here.
I did however expertise some technical points using this website, as I
experienced to reload the site many times previous to I could get it to load properly.
I had been wondering if your web hosting is OK?
Not that I'm complaining, but sluggish loading instances times will sometimes affect your placement in google and can damage your high
quality score if advertising and marketing with
Adwords. Well I am adding this RSS to my email and could look out for much more of your respective interesting content.
Make sure you update this again soon.

Visit my blog post; Abcya 5

We're a group of volunteers and starting a new scheme in our community.
Your web site provided us with valuable information to work on. You've
done a formidable job and our entire community will be grateful to you.

Take a look at my web blog ... single cuff shirts

Terrific article! That is the kind of info that should be shared around
the net. Shame on the search engines for no longer positioning this publish higher!
Come on over and seek advice from my web site . Thank you =)
istanbul escort
şirinevler escort
taksim escort
mecidiyeköy escort
şişli escort
istanbul escort
kartal escort
pendik escort
tuzla escort
kurtköy escort

May I just say what a comfort to uncover somebody who truly understands what they are discussing on the net.
You actually understand how to bring a problem
to light and make it important. A lot more people really need to look at this and understand
this side of your story. I can't believe you're not more popular given that you certainly
possess the gift.

My web page; Abcya 3

Good day I am so excited I found your website, I really found you by accident, while
I was searching on Digg for something else, Nonetheless
I am here now and would just like to say thanks for a tremendous post and a all round
entertaining blog (I also love the theme/design), I don’t have
time to go through it all at the minute but I have bookmarked it and
also added your RSS feeds, so when I have time
I will be back to read much more, Please do keep up the fantastic jo.

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

It's a shame you don't have a donate button! I'd definitely
donate to try this brilliant blog!

I guess for now i'll settle for book-marking
and adding your RSS feed to my Google account. I look forward to brand
new updates and will talk about this site with my Facebook group.
Talk soon!

Have you ever considered about adding a little bit more than just your articles?
I mean, what you say is fundamental and all. But think
of if you added some great pictures or video clips to give your posts
more, "pop"! Your content is excellent but with pics and
video clips, this blog could definitely be one of the very best in its niche.
Good blog!

Check out my blog - Hot Sale (Rosella)

Hi there, just became alert to your blog through Google,
and found that it is really informative. I am gonna watch
out for brussels. I'll appreciate if you continue this in future.

Numerous people will be benefited from your writing.
Cheers!

Feel free to visit my webpage - increase instagram likes fast

I'm not sure where you are getting your information, but good topic.
I needs to spend some time learning more or understanding more.
Thanks for great info I was looking for this information for
my mission.

my webpage :: Lambingan

It's appropriate time to make a few plans for the future and it's time to be happy.
I have read this put up and if I may I wish to counsel you some fascinating things or tips.
Perhaps you could write subsequent articles relating to
this article. Iwish to learn more things approximately it!

Also visit mmy page Mattie

Add new comment