Install python in a server
0
0
Entering edit mode
6 weeks ago
Madhawa • 0

Hello all,

I am trying to install python 3.7 to my server. First, I created a separate conda environment in the server using following command,

conda create --name python

Then, I activated this environment: conda activate python

After that I tried to install python 3.7 into this new environment as follows.

sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa sudo apt update sudo apt install python3.7

However, when I checked the version of python after installing this, t showed me python 2.7.6

It would be very helpful for me if you could let me know how to install python 3.7 in my server since I am new to the python use.

Thanks in advance!

python install • 366 views
ADD COMMENT
1
Entering edit mode

Python is generally symlinked to python2.x.

If you did install python 3.x then you will be able to find it by using python3. Try which python3 or simply python3 -V on command line.

ADD REPLY
0
Entering edit mode

Thank you for your helpful comment!. I just check it in the command line. It showed me it is python 3.4.3

I am wondering whether is there any possibility to install or upgrade into python 3.7.5

Thank you!

ADD REPLY
1
Entering edit mode

Since you have access to sudo on your machine follow the steps outlined here for Ubuntu.

ADD REPLY
0
Entering edit mode

Thank you so much for your helpful information. I will refer to the site to install it. Thank you!

ADD REPLY

Login before adding your answer.

Traffic: 1537 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6