Commit 59640824 authored by Md Saad Memon's avatar Md Saad Memon
Browse files


parent ec82661e
......@@ -13,10 +13,30 @@ sudo apt install ./google-chrome-stable_current_amd64.deb
python3 -V # check if it exists
#Installing Python v3.6
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.6
#update alternatives
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 3
sudo update-alternatives --config python
python -V #check version
#Virtual Environment
1. Installing Virtual Environment for all python version
sudo apt-get install -y python3-venv
mkdir python_directory_name
cd python_directory_name
source my_env/bin/activate
sudo apt install python3.5-venv
sudo apt install python3.6-venv
sudo apt install python3.7-venv
mkdir pyvenv
cd pyvenv
python -m venv py3.6
source py3.6/bin/activate
deactivate #to disconnect
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment