I have searched everywhere and I can not find the config file on Ubuntu Ubuntu 20.04.2 LTS with only pip3 installed do I have to make one? The below commands return null:

locate pip.conf


locate pip3.conf


find pip3.conf


find: ‘pip3.conf’: No such file or directory
  • Updated : Ubuntu 20.04.2 LTS
    – Max
    Commented Mar 25, 2021 at 9:46

3 Answers 3


The default locations are ...


Beware that there was a bug in pip 20.0 (used in Ubuntu 20.04) and fixed in pip 21.0 where it ignored the global and used


locate pip.conf 

only works after a sudo updatedb was performed since you installed it (happens automatically at a given interval but it is not real time).

If there is no default you can create it with ...

export PIP_CONFIG_FILE=/dir/to/pip.conf

or by just creating


See the documentation for more information.

  • I think you mean "updatedb" because "sudo locatedb" returns " locatedb: command not found", at any rate I did the update and still came back null. and "/etc$ ls -a |grep pip" returns null. this returns null as well"/etc/xdg$ ls -a|grep pip" returns null. I only have Pip3 insalled
    – Max
    Commented Mar 25, 2021 at 9:56
  • 1
    well spotted Max !
    – Rinzwind
    Commented Mar 25, 2021 at 11:23

You can run the following command which will give you the location of the different files:

pip config -v list
pip config -v list

works like a charm, it'll list all the conf locations where it could be

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .