LoginSignup
0
0

python仮想環境の作成メモ

Last updated at Posted at 2023-09-02

pythonは開発単位で仮想環境を作成できる。
これによって、仮想環境同士の影響を気にせず開発が進められる。

windowsの場合
1.コマンドプロンプトの起動

2.[python -m venv <仮想環境名>]という書式で仮想環境の作成ができる。
 ex:

python -m venv venv_exsample

3.python仮想環境に入るため、作成したディレクトリびあるScriptsのactivate.batを実行する。

cd <仮想環境名>/Scripts
activate.bat

終わったら、

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