Не может выполнить jupyter ноутбук в Ubuntu

Я установил jupyter использование ноутбука:

sudo pip3 install jupyter

Это, казалось, работало, но я получил ошибку:

The directory '/home/user1/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user1/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag

Когда я выполняю его:

jupyter notebook

Я получаю ошибку:

Error executing Jupyter command 'notebook': [Errno 8] Exec format error
1
задан 17 February 2018 в 22:47

3 ответа

Вы попытались выполнить его как корень?

sudo jupyter notebook --allow-root

или вход в систему как корень и выполненный следующая команда:

jupyter notebook --allow-root
0
ответ дан 7 December 2019 в 13:26

Я столкнулся с подобной проблемой. Это - то, что я сделал для устранения проблемы (на Ubuntu 16.04):

sudo apt-get remove ipython
sudo apt-get purge ipython 
sudo apt-get autoremove
pip install jupyter

ipython, казалось, был проблемой, следовательно удаление его устранило проблему.

Я теперь могу работать jupyter notebook

2
ответ дан 7 December 2019 в 13:26

Как указано в предупреждении, при использовании sudo с pip используйте флаг -H

sudo -H pip3 install jupyter

Или вы можете просто использовать флаг --user без sudo

pip3 install jupyter --user

Флаг --user решает проблемы владения пользователями

0
ответ дан 24 October 2020 в 15:20

Другие вопросы по тегам:

Похожие вопросы: