-
Notifications
You must be signed in to change notification settings - Fork 3.1k
pip --no-cache-dir still warns about a cache folder #2762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's because on some operating systems the log directory is a sub-directory of the cache directory (but not on others). I'm not sure what the right answer is- on one hand on systems where the log dir is a subdir of the cache dir it can often make sense to turn off logging when |
In attempting to find a workaround for this warning, I noticed that it appears even if the log directory is explicitly set to something else using the # search for a package, with cache disabled and log sent to /dev/null
vagrant@hotlanta:/percolate/hotlanta$ sudo pip --no-cache-dir --log /dev/null search ianw
The directory '/home/vagrant/.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.
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
js.unicode_eastasianwidth - Fanstatic packaging of Counting the unicode characters based Unicode East Asian Width database for JavaScript. It includes some tools for dealing with characters.
# version
vagrant@hotlanta:/percolate/hotlanta$ pip --version
pip 6.1.1 from /usr/local/lib/python2.7/dist-packages (python 2.7) While it may not be desirable to infer logging behavior based on the usage of the |
Thanks! |
If I use the
--no-cache-dir
option, I expect it to not even try to figure out any cache, but you can see that it still does, and suggest to usesudo -H
Verbose:
Version:
The text was updated successfully, but these errors were encountered: