1
2

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.

Pythonの仮想環境の作り方 Mac/venv

Posted at

ディレクトリを作る

手順1
  $ mkdir project_name

作ったディレクトリに移動する

手順2
  $ cd project_name

仮想環境作成コマンド

手順3
  $ python3 -m venv フォルダ名

仮想環境を起動

手順4
  $ source フォルダ名/bin/activate

仮想環境を終了

手順5
  (フォルダ名) project_name $ deactivate

番外編

パッケージの入れ方

  $ pip install superjson

パッケージの確認

  (フォルダ名) project_name $ pip freeze
  superjson==0.0.13
1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?