install python 3.8 code example

Example 1: python3.8 install pip

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.8 get-pip.py

Example 2: install python 3.8 ubuntu

- Run the following commands as root or user with sudo access to update the packages list and install the prerequisites:

sudo apt update
sudo apt install software-properties-common

- Add the deadsnakes PPA to your system’s sources list:

sudo add-apt-repository ppa:deadsnakes/ppa
When prompted press Enter to continue:

- Press [ENTER] to continue or Ctrl-c to cancel adding it.
- Once the repository is enabled, install Python 3.8 with:

sudo apt install python3.8

- Verify that the installation was successful by typing:

python3.8 --version

Example 3: install python 3.6

conda create -n myenv python=3.6 #to launch in Anaconda

Example 4: install python3

echo This is for linux. (debian/unbuntu)
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget
curl -O https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
tar -xf Python-3.7.4.tar.xz
cd Python-3.7.4
./configure --enable-optimizations
make
sudo make altinstall
python3.7 --version
cd ../

Example 5: download python

Step 1: Download Python newest version from

 https://www.python.org/downloads/

Step 2:Install Python
Step 3:Download Pycharm Community free version
Step 4:Install and open Pycharm
Step 5:Write print("Hello New World")
  //Hurray you are about to start python

Example 6: idle python download

# Python downloads IDLE on default when it's installed. 
# So you already should have it, but in case you don't, then:
# Reinstall python and make sure you tick the box that says "Install IDLE" or something like that