ImportError: No module named 'requests'

后端 未结 3 369
野的像风
野的像风 2021-01-22 03:24

Getting this error when trying to run a Python script. I have downloaded a requests-1.2.0 folder but I have no idea what to do with it. I\'ve tried running the setup.py file con

3条回答
  •  深忆病人
    2021-01-22 03:50

    from the root directory of the requests folder you downloaded, run:

    $ python setup.py install
    

    then it will be installed system-wide, and your scripts may use "import requests"

提交回复
热议问题