Example of building python development environment on windows (wsl2, vscode, pipenv)

background

--Build a python development environment on windows ――I want to separate the environment for each project --I don't want to use Anaconda --There is a feeling too much --There are few examples written on the premise of conda when doing research (I feel like)

Summary ――I tried various things, but decided that WSL2, Ubuntu20.04, pipenv, Visual Studio Code are easy to use. --The process I tried is not described --Only the procedure will be described, and if you get used to it, you can build it in about 5 minutes.

Premise

--Windows 10 Home (around 2020/10) --VisualStudioCode (hereinafter VSCODE) must be installed

procedure

--Set up the WSL2 environment (this takes the longest time) -* Even if you did not enter the Insider Program, you could use WSL2 on Win10 Home before you knew it. ――This is the most helpful procedure - https://docs.microsoft.com/ja-jp/windows/wsl/install-win10 --Search for and install Ubuntu 20.04 from the Microsoft Store --If you can start Ubuntu 20.04 safely, update it. - $ sudo apt update - $ sudo apt upgrade -* Note that if CPU virtualization is not set to ENABLE in the BIOS, an error will occur at startup. --python3 is installed by default --Install pip3 - sudo apt install python3-pip --Install pipenv with pip3 --Install with sudo -[Reference site](https://www.it-swarm.dev/ja/python/pipenv%EF%BC%9A%E3%82%B3%E3%83%9E%E3%83%B3%E3% 83% 89% E3% 81% 8C% E8% A6% 8B% E3% 81% A4% E3% 81% 8B% E3% 82% 8A% E3% 81% BE% E3% 81% 9B% E3% 82% 93/834117829/) --Create an arbitrary project folder --Example: - $ mkdir ~/work/python-test - $ cd ~/work/python-test

bonus

Recommended Posts

Example of building python development environment on windows (wsl2, vscode, pipenv)
Install Python development environment on Windows 10
Create a Python virtual development environment on Windows
Create a Python development environment on Windows (Visual Studio Code remote WSL).
Problems with windows python being called on pipenv on WSL
I want to use Python in the environment of pyenv + pipenv on Windows 10
Python + Kivy development on Windows
Create a comfortable Python 3 (Anaconda) development environment on windows
Build a GVim-based Python development environment on Windows 10 (1) Installation
Build Python environment on Windows
Django environment development on Windows 10
Procedure for building a CDK environment on Windows (Python)
Build python environment on windows
Python development environment with Windows + Python + PipEnv + Visual Studio Code
[python] When pipenv install of WSL, python on Windows side is called for some reason
Let's get started with Python ~ Building an environment on Windows 10 ~
Building a Jupyter Lab development environment on WSL2 using Anaconda3
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
Until building a Python development environment using pyenv on Ubuntu 20.04
Building a Python environment on Mac
Python environment construction memo on Windows 10
Prepare Python development environment on Ubuntu
Anaconda python environment construction on Windows 10
Building a Python environment on Ubuntu
Install python2.7 on windows 32bit environment
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
Environment construction of python3.8 on mac
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Create a Python execution environment for Windows with VScode + Remote WSL
Run different versions of Python (wsgi) apps on one development environment
Everything from building a Python environment to running it on Windows
Addition of local development environment on MacOS
Building a Python development environment on Windows -From installing Anaconda to linking Atom and Jupyter Notebook-
Building a Python 3.6 environment with Windows + PowerShell
Python3 + venv + VSCode + macOS development environment construction
Creating a python virtual environment on Windows
VScode environment construction (Windows10, Python, C ++, C, Git)
Building a Python development environment for AI development
Windows + gVim + Poetry python development environment construction
Building an environment for "Tello_Video" on Windows
[Definitive Edition] Building an environment for learning "machine learning" using Python on Windows
Prepare Python development environment for each project in Windows environment (VSCode + virtualEnvWrapper + Pylint)
Python on Windows
python windows environment
Simply build a Python 3 execution environment on Windows
Python environment construction (Anaconda + VSCode) @ Windows10 [January 2020 version]
Create an environment of 64bit Windows + python 2.7 + MeCab 0.996
Build a Python development environment on your Mac
[Python] Web development preparation (building a virtual environment)
python development environment -use of pyenv and virtualenv-
Set up a Python development environment on Marvericks
Building a Python environment on a Sakura VPS server
Build a Python development environment on Raspberry Pi
Build a local development environment with WSL + Docker Desktop for Windows + docker-lambda + Python
Install python on WSL
Install Python venv --VSCode --GitHub integration environment on Mac
Recommendation of building a portable Python environment with conda
Unification of Python environment
python windows environment construction
Linux (WSL) on Windows