Improve your programming skills

How to install python on SSH

Install Python on web server via SSH

Get latest version of Python. Here you can see versions: https://www.python.org/ftp/python/

wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz

Decompress files:

tar xvzf Python-3.9.0.tgz

Open decompressed directory:

cd Python-3.9.0

Install:

./configure --prefix=$HOME/.local

Make:

make

Make install – will install pip and setup tools:

make install

Go to bash profile config:

cd $home
vi .bash_profile

Edit file:

# Python3 
export PATH="$HOME/.local/bin:$PATH"

Go out from Editor: # w- save / write q-quit. Change between commands and editor by ESC button

:wq

Run:

source ~/.bash_profile

Run from shell:

$ python3

Install packages using pip3 command:

pip3 install wheel
pip3 install bs4

Source: https://www.godaddy.com/garage/how-to-install-and-configure-python-on-a-hosted-server/

How to use VI: https://www.dummies.com/web-design-development/web-hosting/how-to-edit-files-with-vi/

INSTALL upgrade python on home.pl





cd /tmp/
wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
tar xzf Python-3.9.6.tgz
cd Python-3.9.6

./configure –prefix=$HOME/.local

./configure –enable-optimizations

make

make install

…….nex steps needed

Leave a comment

Your email address will not be published.