[PYTHON] How to use VS Code in venv environment on windows

Overview

I think you often use venv in python development, Even when I looked it up, there was a lot of information about Mac, so I would like to summarize the construction procedure for the windows version. I will also summarize how to use VS Code. The installation procedure of python etc. is omitted.

I referred to the following article. https://qiita.com/fiftystorm36/items/b2fd47cf32c7694adc2e https://qiita.com/some-nyan/items/7f20fa5fa0b6e451a42b https://qiita.com/Avocado/items/3e71870815d6c54c1eea

Preparation

  1. Creating a working directory
  1. Create an installation destination
  1. Set the PowerShell execution policy to RemoteSigned. Open PowerShell with administrator privileges and run Set-ExecutionPolicy RemoteSigned.
  2. Install the VS Code extension PowerShell Language Support for Visual Studio Code.

Environment creation

  1. Execute the command to create the environment
  1. Prepare the working folder of VS Code Specify the working directory created in 1.
  2. Press CTRL + Shift + P to select the venv created from the Python interprinter.
  3. Install various libraries If you want to execute from the command line, switch to the venv environment by referring to the command line confirmation method described later.

Verification

How to use

important point

Recommended Posts

How to use VS Code in venv environment on windows
How to use jupyter lab in Windows 10 local environment
How to use Google Assistant on Windows 10
Create a Python environment for professionals in VS Code on Windows
How to use venv
Use Python in Anaconda environment with VS Code
Steps to create a Python virtual environment with VS Code on Windows
How to use VS Code (code server) with Google Colab in just 3 lines
A memorandum on how to use keras.preprocessing.image in Keras
I want to use Python in the environment of pyenv + pipenv on Windows 10
How to use linux commands in Visual Studio Code terminal
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
How to use classes in Theano
How to use SQLite in Python
Notes on how to use pywinauto
How to install pycrypto on Windows
How to deploy django-compressor on Windows
Notes on how to use featuretools
A note on how to load a virtual environment in PyCharm
How to use homebrew on Debian
What to do if Python IntelliSense is not displayed in VS Code on Windows
How to use Mysql in python
How to use ChemSpider in Python
How to use PubChem in Python
Notes on how to use marshmallow in the schema library
How to run TensorFlow 1.0 code in 2.0
Notes on how to use doctest
How to install music 21 on windows
How to use python put in pyenv on macOS with PyCall
How to develop containers on remote servers with VS Code Remote-Containers
How to build Python and Jupyter execution environment with VS Code
[Introduction to Python] How to use class in Python?
How to access environment variables in Python
Using venv in Windows + Docker environment [Python]
[Kivy] How to install Kivy on Windows [Python]
How to use mecab, neologd-ipadic on colab
How to use Google Test in C
How to use Cmder with PyCharm (Windows)
Memorandum on how to use gremlin python
How to use Anaconda interpreter in PyCharm
How to install richzhang / colorization on Windows 10
How to use __slots__ in Python class
How to use tensorflow under docker environment
How to use regular expressions in Python
How to use Map in Android ViewPager
How to use is and == in Python
I was addicted to creating a Python venv environment with VS Code
Unable to import packages installed in virtual environment with Anaconda on Windows 10
How to read environment variables from .env file in PyCharm (on Mac)
How to create a Python virtual environment (venv)
How to debug a Python program by remotely connecting to a Docker container in WSL2 environment with VS Code
[Latest] How to build Java environment on Ubuntu
How to use Python Image Library in python3 series
How to use Python Kivy ④ ~ Execution on Android ~
Use boto3-stubs to enable code completion on boto3
Python (Windows 10) Virtual Environment / Package with VS Code
Summary of how to use MNIST in Python
How to quickly install h5py on Windows 10 [Unofficial]
How to use tkinter with python in pyenv
How to use pip3 under proxy environment Note
How to live a decent life on 2017 Windows