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

windows10にpython3.8+venvでjupyter notebookを作成する

Posted at

前言

anacondaを推奨していますが、でも重いなあで、今回はpipを使ってインストールしています。

Pythonをインストール

割愛します。

venv仮想環境の作成

python -m venv myvenv

venv仮想環境を有効化

PowerShellに実行するとき、「セキュリティ エラー: (: ) []、PSSecurityException」エラーの場合、管理者でPowerShellを起動して、「Set-ExecutionPolicy RemoteSigned」を実行します。

Set-ExecutionPolicy RemoteSigned
.\myvenv\Scripts\activate

venv仮想環境を無効化(必要な場合)

deactivate

venv仮想環境を削除(必要な場合)

rm -rf myvenv #delete folder

Jupyterをインストール

pip install jupyter

好きなFolderにJupyterを起動

cd xxxx
jupyter notebook

localhost:8888にサーバーが立ち上がり、自動的にブラウザが開かれます。

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