0
1

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 3 years have passed since last update.

flaskの仮想環境の作り方

Last updated at Posted at 2021-06-13

前提
MAC os
Anacondaをインストールしていること

仮想環境をflaskenv2という名前で、Python3.8で作成
conda create -n flaskenv2 python=3.8

作成されているか、確認をする。
conda env list

仮想環境を有効化する
conda activate flaskenv2

成功すれば、以下のように変わる

(flaskenv2) yusuke@mbp

現在インストールしている環境の確認
conda list

Name Version Build Channel

ca-certificates 2021.5.25 hecd8cb5_1
certifi 2021.5.30 py38hecd8cb5_0
libcxx 10.0.0 1
libffi 3.3 hb1e8313_2
ncurses 6.2 h0a44026_1
openssl 1.1.1k h9ed2024_0
pip 21.1.2 py38hecd8cb5_0
python 3.8.10 h88f2d9e_7
readline 8.1 h9ed2024_0
setuptools 52.0.0 py38hecd8cb5_0
sqlite 3.35.4 hce871da_0
tk 8.6.10 hb0a8c7a_0
wheel 0.36.2 pyhd3eb1b0_0
xz 5.2.5 h1de35cc_0
zlib 1.2.11 h1de35cc_3

flaskがないので、flaskをインストール

pip install flask

現在インストールしている環境の確認
conda list

Name Version Build Channel

ca-certificates 2021.5.25 hecd8cb5_1
certifi 2021.5.30 py38hecd8cb5_0
click 8.0.1 pypi_0 pypi
flask 2.0.1 pypi_0 pypi
itsdangerous 2.0.1 pypi_0 pypi
jinja2 3.0.1 pypi_0 pypi
libcxx 10.0.0 1
libffi 3.3 hb1e8313_2
markupsafe 2.0.1 pypi_0 pypi
ncurses 6.2 h0a44026_1
openssl 1.1.1k h9ed2024_0
pip 21.1.2 py38hecd8cb5_0
python 3.8.10 h88f2d9e_7
readline 8.1 h9ed2024_0
setuptools 52.0.0 py38hecd8cb5_0
sqlite 3.35.4 hce871da_0
tk 8.6.10 hb0a8c7a_0
werkzeug 2.0.1 pypi_0 pypi
wheel 0.36.2 pyhd3eb1b0_0
xz 5.2.5 h1de35cc_0
zlib 1.2.11 h1de35cc_3

flaskのインストールが確認できた。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?