venvの使い方

・起動

$python3 -m venv env

-mオプションにvenvモジュールを指定して実行、env環境を作る

・アクティブ化

$source env/bin/activate

・ディアクティブ化

$ deactivate

・env環境の任意の名前

$ python3 -m venv –prompt MY_PROJ env

$ source env/bin/activate

(MY_PROJ) $

venv – 仮想環境の作成

https://docs/python.jp/3/library/venv.html

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny

タイトルとURLをコピーしました