The Founder’s Guide:
How to Install Virtual Environments in Jupyter Notebook in 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 Terminal:
- Open the web browser
- Enter the IP address to the Jupyter Notebook server
- Press “Enter”
- Click “New”
- Click “Terminal”
Open the Desktop Directory:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
cd $home/desktop/
Clone the Repository:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
git clone --recursive https://github.com/zzh8829/yolov3-tf2.git
Open the YoloV3-Tf2 Directory:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
cd yolov3-tf2
Create the Virtual Environment:
- Find the Python version from below these instructions
- Copy the provided command
- Paste the command into Terminal
- Press “Enter”
Python 3.5:
python35 -m venv venv35Python 3.6: <----------
python36 -m venv venv36Python 3.7:
python37 -m venv venv37Python 3.8:
python38 -m venv venv38
Activate the Virtual Environment:
- Find the Python version from below these instructions
- Copy the provided command
- Paste the command into Terminal
- Press “Enter”
Python 3.5:
venv35/scripts/activatePython 3.6: <----------
venv36/scripts/activatePython 3.7:
venv37/scripts/activatePython 3.8:
venv38/scripts/activate
Upgrade Pip:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”`
python -m pip install --upgrade pip
Install the Requirements:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
python -m pip install --requirement requirements-gpu.txt
Download the Weights:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
wget https://pjreddie.com/media/files/yolov3.weights -O data/yolov3.weights
Convert the Weights:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
python convert.py --weights ./data/yolov3.weights --output ./checkpoints/yolov3.tf
Use the Repository:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
python detect.py --image ./data/meme.jpg
Install the IPython Kernel:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
python -m pip install ipykernel
Install the Virtual Environment:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
Python 3.5:
python -m ipykernel install --name "yolov3-tf2" --display-name "yolov3-tf2"Python 3.6: <----------
python -m ipykernel install --name "yolov3-tf2" --display-name "yolov3-tf2"Python 3.7:
python -m ipykernel install --name "yolov3-tf2" --display-name "yolov3-tf2"Python 3.8:
python -m ipykernel install --name "yolov3-tf2" --display-name "yolov3-tf2"
Open the YoloV3-Tf2 Directory:
- Reopen Jupyter Notebook
- Click the “Desktop” folder
- Click the “YoloV3-Tf2” folder
Use the Virtual Environment:
- Click “New”
- Click “yolov3-tf2”
Run the Code Cell:
- Copy the code from below these instructions
- Click an empty cell in Jupyter Notebook
- Paste the code into the empty cell
- Press “Shift” + “Enter”
Run the Code Cell:
- Copy the code from below these instructions
- Click an empty cell in Jupyter Notebook
- Paste the code into the empty cell
- Press “Shift” + “Enter”
Deactivate the Virtual Environment:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
deactivate
List the Installed Virtual Environments:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
jupyter kernelspec list
Uninstall the Virtual Environment:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
- Enter “Y”
- Press “Enter”
jupyter kernelspec uninstall yolov3-tf2
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 LearningWSL2:
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 LearningMac:
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