Ubuntu 安裝 jupyter 出現的問題總結

1、在終端中輸入‘sudo pip3 install jupyter’, 出現黃色的‘warring',如下:

The directory '/home/stone/.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/stone/.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.

解決方法:

在sudo 後面添加-H
sudo -H pip3 install jupyter

 

2、在安裝jupyter過程中,出現了紅色的’exception'

Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2482, in _dep_map
return self.__dep_map
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2344, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

解決方法:

在終端中,安裝jupyter 之前,輸入

sudo pip3 install -vU setuptools

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章