Mac - Python - import error: “No module named site”

后端 未结 6 1357
我在风中等你
我在风中等你 2020-12-10 14:52

Tonight I am trying to get the package called \"requests\" installed and have begun fumbling around with the terminal and do not have very much intuition when it comes to th

6条回答
  •  没有蜡笔的小新
    2020-12-10 15:09

    You are trying to install the package in '/Library/Python/2.7/site-packages/requests' but it requires root permissions to do so. This should do the trick:

    $ sudo pip install requests
    

提交回复
热议问题