Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.18 KB

File metadata and controls

44 lines (32 loc) · 1.18 KB

Python

参考資料

Pythonのための仮想環境

# 仮想環境の作成
python -m venv {仮想環境名}

# 起動
# UNIX
. {仮想環境名}/bin/activate
# Windows
.\{仮想環境名}\Scripts\activate

# 停止
deactivate

依存関係

# 保存
pip freeze > requirements.txt

# インストール
pip install -r requirements.txt

インストール

Windowsの場合

  1. Microsoft store でPythonを検索
  2. インストールしたいPythonのバージョンをインストール
  3. Windowsの検索窓を開く
  • ショートカットキー: Windowsキー + S
  1. 「アプリ実行エイリアスの管理」を検索
  2. 2でインストールしたバージョンのPythonとそれに付随するpipを有効にする