0
0

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.

Windows+docker+anacondaで分析環境構築(リンク集)

Posted at

windowsでの分析環境構築にあたって、Dockerの中にanacondaをインストールして更にその中でanacondaの仮想環境を設定して分析環境とします。

1. docker のインストール

以下のリンクからDocker Desktop for windowsをダウンロードします。

なお、実行時のトラブルシューティングは以下;

2. docker にanacondaイメージをインストール

power shellで以下を実行します。(以下すべてpower shell内)

.bash
docker pull continuumio/anaconda3

3. docker にコンテナを生成

インストールしたanacondaイメージからコンテナを生成します。

docker run --name CONTAINER_NAME -it -p 8888:8888 -v "$(pwd):/home" continuumio/anaconda3 /bin/bash

なお、ctrl+d などで一度ストップしたコンテナのインタラクティブでの再開は以下。

docker start CONTAINER_NAME -i

4. 仮想環境の設定

コンテナ内でバージョンの異なるpython等を利用したいときのために、仮想環境を設定します。

conda create -n ENV_NAME python==X.X
conda activate ENV_NAME

5. Jupyter notebookの立ち上げ

jupyter notebookを立ち上げます。

jupyter notebook --port 8888 --ip=0.0.0.0 --allow-root
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?