0
0

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 1 year has passed since last update.

【備忘録】venvで環境作成

Posted at

たまにやると忘れるので備忘録です。

環境

  • Windows 10

venvで環境作成の流れ

インストール済みのPythonバージョンを確認

$ py --list-paths

 -V:3.11 *        C:\Users\grin\AppData\Local\Programs\Python\Python311\python.exe
 -V:3.9           C:\Users\grin\AppData\Local\Programs\Python\Python39\python.exe
 -V:ContinuumAnalytics/Anaconda36-64 C:\Users\grin\Anaconda3\python.exe

バージョンを指定して環境作成

$ py -3.11 -m venv py311

環境を有効化

$ source ./py311/Scripts/activate

環境を無効化

$ source ./py311/Scripts/deactivate
0
0
0

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?