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 is generally symlinked to python2.x.
If you did install python 3.x then you will be able to find it by using
python3
. Trywhich python3
or simplypython3 -V
on command line.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!
Since you have access to sudo on your machine follow the steps outlined here for Ubuntu.
Thank you so much for your helpful information. I will refer to the site to install it. Thank you!