我使用的是ubuntu 14.04 64位机器。系统python是2.7.6。 这是当我尝试pip安装任何东西时发生的事情
thekindlyone@deepthought:~$ sudo pip install pyopenssl
The directory '/home/thekindlyone/.cache/pip/log' or its parent directory is not owned by the current user and the debug log 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/thekindlyone/.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/thekindlyone/.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.
Requirement already satisfied (use --upgrade to upgrade): pyopenssl in /usr/lib/python2.7/dist-packages
点数是6.1.1 我如何摆脱这些警告?
答案 0 :(得分:0)
也许您想使用sudo'-H'选项将HOME环境变量设置为目标用户的密码数据库条目指定的主目录。
那样,pip将在您的root用户目录中使用一个缓存目录。
例如
$ sudo -H pip install pyopenssl