通过pip3安装Python包:分段错误

通过pip3安装Python包:分段错误,python,pip,Python,Pip,我想使用pip3安装python软件包。例如,如果我执行pip3安装matplotlib,它将提供: Collecting matplotlib Segmentation fault 我安装了pip3和python3.6: which pip3 /usr/local/bin/pip3 which python3.6 /usr/local/bin/python3.6 我尝试了sudo pip3安装matplotlib,结果显示: The directory '/home/shiqi/.cac

我想使用
pip3
安装python软件包。例如,如果我执行
pip3安装matplotlib
,它将提供:

Collecting matplotlib
Segmentation fault
我安装了
pip3
python3.6

which pip3
/usr/local/bin/pip3

which python3.6
/usr/local/bin/python3.6
我尝试了
sudo pip3安装matplotlib
,结果显示:

The directory '/home/shiqi/.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.
我将
.cache
目录更改为可供所有人使用:

chmod +rwx .cache

drwxr-xr-x 17 shiqi shiqi  4096 Jan  4 14:45 .cache

我不知道为什么它不是每个人都可以写的,但至少用户可以写
.cache
。但这并没有解决我的分割错误问题。有人知道该怎么做吗?谢谢大家!

这就是你得到的所有错误输出吗?是的,这就是我得到的全部。