2
2

More than 3 years have passed since last update.

ラズパイにjupyter notebookとspyderを導入

Last updated at Posted at 2021-01-13

はじめに

Raspberry Piのpytohn開発環境を整えたい。
今回は Jupyter NotebookSpyder の導入法について。

Jupyter Notebookの導入

参考サイト:Python開発環境「Jupyter Notebook」をラズパイで動作させる
何も問題が起きなかったため、今回は引用のみ。

  • 起動方法
$ jupyter notebook

image.png

OpenCVのインポートもできた。(元々インストール済み)
image.png

Spyderの導入

参考サイト:Raspberry PiでPythonの統合開発環境(IDE)を構築する方法

いつも通りパッケージの更新をしてから

$ sudo apt install spyder3
$ spyder3

で起動する。

あれ。開かない。

ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts' (/usr/local/lib/python3.7/dist-packages/prompt_toolkit/shortcuts/__init__.py)

と出てきた。
調べたところ、

$ pip3 install 'prompt-toolkit==1.0.15'

を行い、再び起動させたところ開けた。
バージョンの相性の問題だったのかな。もしくはそもそも入ってなかったか。

まとめ

Jupyter notebookspyder のインストールをしてみた。
使うかどうかはわからないけど、とりあえず。
berry conda も試してみたいなぁ。
ただ、大学で使ってるラズパイだからむやみやたらに色々できない。。

2
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
2
2