[MacPorts] #59746: py36-pip: ModuleNotFoundError: No module named 'pip._internal'

MacPorts noreply at macports.org
Fri Nov 22 18:58:43 UTC 2019


#59746: py36-pip: ModuleNotFoundError: No module named 'pip._internal'
--------------------------+----------------------
  Reporter:  ParityError  |      Owner:  stromnov
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  py-pip       |
--------------------------+----------------------

Comment (by ParityError):

 Okay, I believe that I've tracked down the issue. The `pip` directory in
 `/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /site-packages/pip` permissions was set to `200`, **''which is only user
 write''**. I `chmod` it to `755` and it seems to work as expected now.


 {{{
 $ ls -lat | grep pip
 d-w-------    9 root  wheel        288 Nov 22 00:01 pip

 $ sudo chmod -R 755 pip

 $ pip --version
 pip 19.3.1 from
 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /site-packages/pip (python 3.6)
 }}}

 Any idea why it would be set at `200` in the first place? Thank you.

-- 
Ticket URL: <https://trac.macports.org/ticket/59746#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list