0
0

Python仮想環境 コマンド辞書

Posted at

Pythonの仮想環境の構築にあたり、必要だったコマンドをまとめました。

環境構築

仮想環境の構築(Pythonのバージョンを指定)

$ py -3.11 -m venv <環境名>

-3.11の部分を任意の数字に変えることでバージョンを指定できます。

仮想環境の有効化

$ <環境名>\Scripts\activate.bat

仮想環境の終了

$ deactivate

その他よく使いそうなコマンド

Pythonのバージョン確認

$ py -V

インストール済みのライブラリの確認

$ pip list

現在のディレクトリに新しいフォルダを作成

$ mkdir <フォルダ名>
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