У меня есть сервер AWS, на котором я пытаюсь установить ноутбук jupyter.
Я делаю следующие шаги:
Go в свой домашний каталог и создаю виртуальную среду используя
python3.6 -m venv env
Активируйте venv
source env/bin/activate
Установите Jupyter
python -m pip install --upgrade pip
python -m pip install jupyter
Запустите ноутбук Jupyter
jupyter notebook
Кажется, все работает до Я запускаю jupyter notebook
.
Я получаю следующую ошибку:
(env) root@ip-172-51-23-114:/home/USER# jupyter notebook --allow-root
[I 21:14:53.193 NotebookApp] Serving notebooks from local directory: /home/USER
[I 21:14:53.193 NotebookApp] The Jupyter Notebook is running at:
[I 21:14:53.193 NotebookApp] http://localhost:8888/?token=4a83abb3edf214bff5796dae4cf0ed756b1d99972e4134e7
[I 21:14:53.193 NotebookApp] or http://127.0.0.1:8888/?token=4a83abb3edf214bff5796dae4cf0ed756b1d99972e4134e7
[I 21:14:53.193 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 21:14:53.198 NotebookApp]
To access the notebook, open this file in a browser:
file:///root/.local/share/jupyter/runtime/nbserver-25435-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=4a83abb3edf214bff5796dae4cf0ed756b1d99972e4134e7
or http://127.0.0.1:8888/?token=4a83abb3edf214bff5796dae4cf0ed756b1d99972e4134e7
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Aborted (core dumped)
Couldn't find a suitable web browser!
Set the BROWSER environment variable to your desired browser.
Warning: program returned non-zero exit code #1
WARNING: You don't seem to have any mimeinfo.cache files.
Try running the update-desktop-database command. If you
don't have this command you should install the
desktop-file-utils package. This package is available from
http://freedesktop.org/wiki/Software/desktop-file-utils/
Can't call method "get_value" on an undefined value at /usr/bin/mimeopen line 159.
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: x-www-browser: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: firefox: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: iceweasel: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: seamonkey: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: mozilla: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: epiphany: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: konqueror: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: chromium: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: chromium-browser: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: google-chrome: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: www-browser: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: elinks: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'file:///root/.local/share/jupyter/runtime/nbserver-25435-open.html'
Я устанавливаю python и ноутбук Jupter через терминал в RStudio.
Должен ли я попробовать установить chrome или другой веб-браузер на экземпляр?