Install python in a server

Install python in a server


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!




Read more here: Source link