当我尝试运行sudo pip2安装请求[安全]时,出现以下错误:
MacBook-Pro-di-Francesco:~ francesco$sudo pip2 install requests[security]
The directory '/Users/francesco/Library/Caches/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 '/Users/francesco/Library/Caches/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.
Collecting requests[security]
Downloading requests-2.12.1-py2.py3-none-any.whl (574kB)
100% |████████████████████████████████| 583kB 406kB/s
Requirement already satisfied: idna>=2.0.0; extra == "security" in /Library/Python/