The Founder’s Guide:

How to Install and Manage Multiple Python Versions on Windows 10

The condensed tutorial with copy and paste code and screenshots

“The expanded version of this article uses concise explanations to help you learn what’s happening 💡”

Check the System Type:

  1. Press “⊞ Windows”
  2. Enter “About” into the search bar
  3. Click “About Your PC”

Download Python:

  1. Visit the official website: [3.5] [3.6] [3.7] [3.8][3.9]
  2. Scroll to the “Looking for a specific release?” section
  3. Scroll to the “Files” section
  4. Download the “Executable Installer” that matches the system type
  5. Repeat

Open the Executable File:

  1. Double-click the Python file
  2. Check the “Add Python ** to PATH” box
  3. Click “Install Now”
  4. Repeat

Open PowerShell:

  1. Press “⊞ Windows”
  2. Enter “PowerShell” into the search bar
  3. Click “Run as Administrator”

Open the Python Directory:

  1. Copy the command from below these instructions
  2. Paste the command into PowerShell
  3. Press “Enter”
cd $HOME\appdata\local\programs\python

Copy the Executable File:

  1. Find the version from below these instructions
  2. Copy the provided command
  3. Paste the command into PowerShell
  4. Press “Enter”
  5. Repeat
Python 3.5:
copy python35\python.exe python35\python35.exe
Python 3.6:
copy python36\python.exe python36\python36.exe
Python 3.7:
copy python37\python.exe python37\python37.exe
Python 3.8:
copy python38\python.exe python38\python38.exe
Python 3.9:
copy python39\python.exe python39\python39.exe

Open the Environment Variables:

  1. Press “⊞ Windows”
  2. Enter “Environment Variables” into the search bar
  3. Click “Edit the System Environment Variables”
  4. Click “Environment Variables…”

Open the PATH:

  1. Select “Path” in the “User Variables” section
  2. Click “Edit”

Set the Default Version:

  1. Find the version from below these instructions
  2. Select the provided paths in the PATH
  3. Click “Move Up”
  4. Click “Move Up” until the provided paths are the top two items
  5. Click “OK”
  6. Click “OK”
  7. Click “OK”
Python 3.5:
c:\users\admin\appdata\local\programs\python\python35\scripts\
c:\users\admin\appdata\local\programs\python\python35\
Python 3.6:
c:\users\admin\appdata\local\programs\python\python36\scripts\
c:\users\admin\appdata\local\programs\python\python36\
Python 3.7:
c:\users\admin\appdata\local\programs\python\python37\scripts\
c:\users\admin\appdata\local\programs\python\python37\
Python 3.8:
c:\users\admin\appdata\local\programs\python\python38\scripts\
c:\users\admin\appdata\local\programs\python\python38\
Python 3.9:
c:\users\admin\appdata\local\programs\python\python39\scripts\
c:\users\admin\appdata\local\programs\python\python39\

Check the Default Version:

  1. Copy the command from below these instructions
  2. Paste the command into PowerShell
  3. Press “Enter”
python --version

Use a Specific Python Interpreter:

  1. Find the version from below these instructions
  2. Copy the provided command
  3. Paste the command into PowerShell
  4. Press “Enter”
Python 3.5:
python35
Python 3.6:
python36
Python 3.7:
python37
Python 3.8:
python38
Python 3.9:
python39

Exit the Python Interpreter:

  1. Copy the command from below these instructions
  2. Paste the provided command into PowerShell
  3. Press “Enter”
exit()

Open the Desktop Directory:

  1. Copy the command from below these instructions
  2. Paste the provided command into PowerShell
  3. Press “Enter”
cd $HOME\desktop

Create the Virtual Environment:

  1. Find the version from below these instructions
  2. Copy the provided command
  3. Paste the command into PowerShell
  4. Press “Enter”
Python 3.5:
python35 -m venv venv35
Python 3.6:
python36 -m venv venv36
Python 3.7:
python37 -m venv venv37
Python 3.8:
python38 -m venv venv38
Python 3.9:
python39 -m venv venv39

Activate the Virtual Environment:

  1. Find the version from below these instructions
  2. Copy the provided command
  3. Paste the command into PowerShell
  4. Press “Enter”
Python 3.5:
venv35\scripts\activate
Python 3.6:
venv36\scripts\activate
Python 3.7:
venv37\scripts\activate
Python 3.8:
venv38\scripts\activate
Python 3.9:
venv39\scripts\activate

Check the Executable File:

  1. Copy the command from below these instructions
  2. Paste the command into Terminal
  3. Press “Return”
$(get-command python).path

Deactivate the Virtual Environment:

  1. Copy the command from below these instructions
  2. Paste the command into PowerShell
  3. Press “Enter”
deactivate

“Hopefully, this article helped you get the 👯‍♀️🏆👯‍♀️, remember to subscribe to get more content 🏅”

Next Steps:

This article is part of a mini-series that helps readers set up everything they need to start learning about artificial intelligence, machine learning, deep learning, and or data science. It includes articles that contain instructions with copy and paste code and screenshots to help readers get the outcome as soon as possible. It also includes articles that contain instructions with explanations and screenshots to help readers learn about what’s happening.

Linux:
01. Install and Manage Multiple Python Versions
02. Install the NVIDIA CUDA Driver, Toolkit, cuDNN, and TensorRT
03. Install the Jupyter Notebook Server
04. Install Virtual Environments in Jupyter Notebook
05. Install the Python Environment for AI and Machine Learning
WSL2:
01. Install Windows Subsystem for Linux 2
02. Install and Manage Multiple Python Versions
03. Install the NVIDIA CUDA Driver, Toolkit, cuDNN, and TensorRT
04. Install the Jupyter Notebook Server
05. Install Virtual Environments in Jupyter Notebook
06. Install the Python Environment for AI and Machine Learning
07. Install Ubuntu Desktop With a Graphical User Interface (Bonus)
Windows 10:
01. Install and Manage Multiple Python Versions
02. Install the NVIDIA CUDA Driver, Toolkit, cuDNN, and TensorRT
03. Install the Jupyter Notebook Server
04. Install Virtual Environments in Jupyter Notebook
05. Install the Python Environment for AI and Machine Learning
Mac:
01. Install and Manage Multiple Python Versions
02. Install the Jupyter Notebook Server
03. Install Virtual Environments in Jupyter Notebook
04. Install the Python Environment for AI and Machine Learning

From: Non-Technical | To: Technical | Writes: To Make It Easier For Everyone | Topics: #Setup #Basics #AI #MachineLearning #DeepLearning #Repositories

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store