Is it acceptable and safe to run pip install under sudo?

后端 未结 6 964
时光说笑
时光说笑 2020-11-22 14:29

I\'ve started to use my Mac to install Python packages in the same way I do with my Windows PC at work; however on my Mac I\'ve come across frequent permission denied

6条回答
  •  春和景丽
    2020-11-22 14:53

    Because I had the same problem, I want to stress that actually the first comment by Brian Cain is the solution to the "IOError: [Errno 13]"-problem:

    If executed in the temp directory (cd /tmp), the IOError does not occur anymore if I run sudo pip install foo.

提交回复
热议问题