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 1 year has passed since last update.

jetson nanoにjupyterlabをインストールした時のメモ

Last updated at Posted at 2023-01-14

メモをローカルに保存していましたが、メモがローカル家出したので
こちらへメモを残しておこうと思います。

jetson nanoのイメージ情報

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

pyenvのダウンロード、pythonインストール

pyenv事前準備

sudo apt install -y \
build-essential \
libffi-dev \
libssl-dev \
zlib1g-dev \
liblzma-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libopencv-dev \
tk-dev \
git

pyenvのダウンロード

git clone https://github.com/pyenv/pyenv.git ~/.pyenv

動作確認したバージョンにpyenvを変更

cd ~/.pyenv
git checkout v2.0.3

環境変数の更新

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
source ~/.bashrc

pythonインストール

apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils
pyenv install --list
pyenv install 3.9.6
pyenv global 3.9.6

jupyterlabのインストール、外部PC接続ありで起動

pip install jupyterlab
jupyter lab --ip=0.0.0.0 --no-browser

以下のログがでるのでブラウザからアクセス
http://PC名:ポート番号/lab?token=トークン番号

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?