How to fix ImportError: No module named packages.urllib3?

后端 未结 5 1706
既然无缘
既然无缘 2020-12-11 01:09

I\'m running Python 2.7.6 on an Ubuntu machine. When I run twill-sh (Twill is a browser used for testing websites) in my Terminal, I\'m getting the following:

5条回答
  •  难免孤独
    2020-12-11 01:52

    If you already have 'requests' installed from a default build, you may have to

    sudo pip install --upgrade requests

    Credit to @bkzland from comment on previous answer:

    I followed these steps having the same error, I needed to use sudo pip install --upgrade each time to make it work. – bkzland Dec 17 '15 at 12:57

    ---now, how do I make this a dependency in my setup.py?

提交回复
热议问题