LoginSignup
0
1

More than 1 year has passed since last update.

Pythonの仮想環境の構築

Posted at

前提のOS

Linux系のOSを前提として記載しています。

仮想環境の構築

pythonベースのアプリのスムーズなリリースを行うため、最低限のライブラリ環境を構築するために、標準搭載されている「venv」による仮想環境を構築する。

$ mkdir [project directory]
$ cd [project directory]

仮想環境の作成

$ python3 -m venv [newenvname]

仮想環境のアクティベーション

$ source [newenvname]/bin/activate
([newenvname])$ #アクティベーションすると括弧付きで仮想環境名が表示される。

仮想環境のディアクティベーション

([newenvname])$ deactivate

解説記事(仮想環境とは)
https://www.sejuku.net/blog/68423

Pythonでできる事(概要)説明動画
https://www.youtube.com/watch?v=a9ANhQPvhgY

0
1
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
1