0
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

楽にvscode+venvで仮想環境(Windows)メモ

Last updated at Posted at 2020-03-24

#環境を作成

C:\Users\USERNAME\envのディレクトリで仮想環境を管理
ENVNAME = 環境名
env = 環境管理用フォルダ名
USERNAME = 自身ののユーザーネーム

C:\Users\USERNAME> python -m venv env/ENVNAME

#アクティベート

C:\Users\USERNAME> env\ENVNAME\scripts\activate

#VScodeと接続

(ENVNAME) C:\Users\USERNAME> \code 

?????
VScodeでファイル > 基本設定 > 設定 > python.venvPath を~/envに変更??

#環境を適用

VScodeの一番下のバーのPython x.x.x 64-bitをクリックし環境を選択して変更

#参考
Pythonでvenv仮想環境を使う
【Python3×VSCode】実行環境を分ける必要が出たら行う手順(仮想環境作成)

0
5
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?