sudo pip install numpy 报错

来源:3-12 安装Python类库

zzc_110

2018-12-23

执行sudo -H pip install numpy 报这个错
图片描述

或 sudo pip install numpy

报:
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/init.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
The directory ‘/home/zzc/.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/zzc/.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.
Requirement already satisfied: numpy in /usr/local/lib/python2.7/dist-packages (1.15.4)

写回答

1回答

Oscar

2018-12-24

不是错误。说明numpy已经有了。

Requirement already satisfied: numpy in /usr/local/lib/python2.7/dist-packages (1.15.4)

已经在 /usr/local/lib/python2.7/dist-packages 里了。

0
1
zzc_110
非常感谢!
2018-12-24
共1条回复

基于Python玩转人工智能最火框架 TensorFlow应用实践

机器学习入门,打牢TensorFlow框架应用是关键!

2214 学习 · 688 问题

查看课程