No module named urllib3

后端 未结 5 2151
花落未央
花落未央 2021-02-13 04:58

I wrote a script to call an API and ran it successfully last week. This week, it won\'t run. I get back the following error message:

Traceback (most recent call          


        
5条回答
  •  自闭症患者
    2021-02-13 05:10

    Either urllib3 is not imported or not installed.

    To import, use

    import urllib3
    

    at the top of the file. To install write:

    pip install urllib3
    

    into terminal.

    It could be that you did not activate the environment variable correctly. To activate the environment variable, write

    source env/bin/activate
    

    into terminal. Here env is the environment variable name.

提交回复
热议问题