The Founder’s Guide:

How to Install the Python Environment for AI and Machine Learning 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 💡”

Open PowerShell:

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

Open the Home Directory:

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

Install Virtualenv:

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

Create the Virtual Environment:

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

Activate the Virtual Environment:

  1. Find the Python version from below these instructions
  2. Copy the provided command
  3. Paste the command into PowerShell
  4. Press “Enter”
Default:
venv/scripts/activate
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

Install NumPy:

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

Install Pandas:

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

Install SciPy:

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

Install Pillow:

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

Install Matplotlib:

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

Install OpenCV:

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

Prevent Dependency Conflicts:

  1. Install only one of the following libraries
  2. Click the link or scroll down
1. Scikit-Learn
2. Keras
3. TensorFlow
4. PyTorch
5. MxNet

1. Install Scikit-Learn:

  1. Copy the command from below these instructions
  2. Paste the command into PowerShell
  3. Press “Enter”
python -m pip install scikit-learn

2. Install Keras:

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

3. Install TensorFlow:

  1. Copy the command from below these instructions
  2. Paste the command into PowerShell
  3. Press “Enter”
python -m pip install tensorflow tensorflow-gpu

4. Install PyTorch:

  1. Copy the command from below these instructions
  2. Paste the command into PowerShell
  3. Press “Enter”
CUDA 11.0:
python -m pip install torch===1.7.1+cu110 torchvision===0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
CUDA 10.2:
python -m pip install torch===1.7.1 torchvision===0.8.2 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
CPU:
python -m pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

5. Install MxNet:

  1. Copy the command from below these instructions
  2. Paste the command into PowerShell
  3. Press “Enter”
CUDA 10.2:
python -m pip install mxnet-cu102 -f https://dist.mxnet.io/python
CPU:
python -m pip install mxnet

“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