[PYTHON] Switch virtual environment with jupyter

1 This article is

When using python, you may want to switch the version of python. It is convenient to switch the version of python using the virtual environment of jupyter, but it is a memo because I got stuck in the environment settings.

environment windows10 anaconda installed

2 Contents

How to create a virtual environment with jupyter is described in the following article.

https://qiita.com/yoppe/items/38005f415a5b8b884c7d

However, if you follow this article, you will get an error if win32api cannot be imported when you switch to the virtual environment. It is OK to install win32api with "pip install pywin32".

Launch Anaconda prompt from the start menu. 78.JPG

After starting Anaconda prompt, enter the following command.

python


(base) C:\Users\fdfpy>activate python355  #Switch to virtual environment python355
(python355) C:\Users\fdfpy>pip install pywin32  #Install win32api

Recommended Posts

Switch virtual environment with jupyter
Automatically switch virtual environment with conda + direnv
Virtual environment with Python 3.6
Try using conda virtual environment with Jupyter Notebook
Virtual environment construction with Docker + Flask (Python) + Jupyter notebook
Activate Anaconda's virtual environment with PowerShell
Build python virtual environment with virtualenv
Easy Jupyter environment construction with Cloud9
Create a virtual environment with Python!
Building a virtual environment with Python 3
Reflect the virtual environment created with Miniconda in Jupyter notebook
I want to use a virtual environment with jupyter notebook!
[Python] Create a virtual environment with Anaconda
Beginner virtual environment
Create a virtual environment with Python_Mac version
Build a python virtual environment with pyenv
How to easily switch the virtual environment created by Conda on Jupyter
Analytical environment construction with Docker (jupyter notebook + PostgreSQL)
Start Django in a virtual environment with Pipenv
Create the strongest calculator environment with Sympy + Jupyter
Python (Windows 10) Virtual Environment / Package with VS Code
Create a virtual environment with conda in Python
[Memo] Build a virtual environment with Pyenv + anaconda
Error when entering virtual environment with workon command
Build a virtual environment with pyenv and venv
Work in a virtual environment with Python virtualenv.
Flow of creating a virtual environment with Anaconda
From Python environment construction to virtual environment construction with anaconda
Error running Jupyter Notebook in Anaconda virtual environment
Use anaconda virtual environment with Zsh (problem fix)
Multiple selections with Jupyter
Candlestick with plotly + Jupyter
python virtual environment Pipenv
virtual environment in python
Python environment with docker-compose
If you want to enter the virtual environment with jupyter, nb_conda_kernels is recommended
PyTorch introduction (virtual environment)
Use nim with Jupyter
Build a python virtual environment with virtualenv and virtualenvwrapper
Create a virtual environment with Anaconda installed via Pyenv
code-server Online environment (2) Create a virtual network with Boto3
Build a python virtual environment with virtualenv and virtualenvwrapper
Notes on creating a virtual environment with Anaconda Navigator
Ssh to virtual environment with remote development of vscode
Build a Django environment for Win10 (with virtual space)
How to build Anaconda virtual environment used in Azure Machine Learning and link with Jupyter
Easy tox environment with Jenkins
Create an environment with virtualenv
Using Graphviz with Jupyter Notebook
Minimal website environment with django
Machine learning with Jupyter Notebook in OCI Always Free environment (2019/12/17)
Install Python environment with Anaconda
Manage python environment with virtualenv
Use pip with Jupyter Notebook
Build an Anaconda virtual environment
venv environment with windows powershell
I want to start a jupyter environment with one command
ML environment construction with Miniconda
Prepare python3 environment with Docker
Play with Jupyter Notebook (IPython Notebook)
Building a Python virtual environment