在pip版本6.0.4或更高版本中使用sudo pip install ...
时,我会收到一些警告,如:
The directory '/home/drevicko/.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 the -H flag.
此警告似乎是added in 6.0.4,但-H
标记既不出现在^{
那么,什么是-H
标志,为什么在使用sudo pip install ...
时需要它?
-H标志实际上是用于sudo命令的,而不是用于pip。取自docs
看一看this问题可能会对可能发生的事情有更多的了解。
相关问题 更多 >
编程相关推荐