Я установил 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
Вы попытались выполнить его как корень?
sudo jupyter notebook --allow-root
или вход в систему как корень и выполненный следующая команда:
jupyter notebook --allow-root
Я столкнулся с подобной проблемой. Это - то, что я сделал для устранения проблемы (на Ubuntu 16.04):
sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter
ipython, казалось, был проблемой, следовательно удаление его устранило проблему.
Я теперь могу работать jupyter notebook
Как указано в предупреждении, при использовании sudo
с pip
используйте флаг -H
sudo -H pip3 install jupyter
Или вы можете просто использовать флаг --user
без sudo
pip3 install jupyter --user
Флаг --user
решает проблемы владения пользователями