Search code examples
pythonpipsudo

pip library is not visible with sudo


I am trying to inatall one of libraries for python (plotly). I used command:

pip install -U plotly

to get permission denied error... okay. so i put:

sudo pip install -U plotly

to get:

Could not find a version that satisfies the requirement plotly (from versions: ) No matching distribution found for plotly

something is wrong with this debian setup, but I cannot figure out what. To check, I've used same commands for paramiko... all went ok.


Solution

  • Someone created /root/.pip/pip.conf with extra settings :/