I'm using pip to install Python libraries on VMs that are accessible to several users. Some of the libraries are stored on a private artifactory. To make pip able to access this private artifactory, I give appropriate username and password.
If there is an error while trying to access the artifactory, a file pip.log is automatically created. The following line is part of it:
Cannot fetch index base URL https://user:password!@artifactory.../
How could I prevent pip from writing user id and password in this log file?
I can't find documentation for it, but pip supports .netrc files in ~
and .
:
machine artifactory.hostname
login username
password password
These credentials should not show up in logs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With