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

后端 未结 6 1353
我在风中等你
我在风中等你 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 15:14

    I met the same question, and error info is:

    ModuleNotFoundError: No module named 'xxx'
    

    and finally solved by

    brew install python3
    
    brew link python3
    
    sudo python3 -m pip install xxx
    // or `sudo python3 -m pip install -r requirements.txt`
    

提交回复
热议问题