ImportError: No module named urllib3

On Python 2.6 on Solaris

Did a pip install requests, and simple example code produces:
the version is requests-2.12.3

Traceback (most recent call last):
  File "/www/htdocs/cgi-bin/scrapetest.py", line 7, in <module>
    from requests.auth import HTTPBasicAuth
  File "/opt/csw/lib/python2.6/site-packages/requests/__init__.py", line 60, in <module>
    from .packages.urllib3.exceptions import DependencyWarning
  File "/opt/csw/lib/python2.6/site-packages/requests/packages/__init__.py", line 29, in <module>
    import urllib3
ImportError: No module named urllib3

Tried Un-install, re-install neither fixes it.
Tried installing urllib3 (urllib3-1.19.1) which produces a different traceback message:
Traceback (most recent call last):                                                                                                                                                                                                    
  File "/www/htdocs/cgi-bin/scrapetest.py", line 7, in <module>                                                                                                                                                                       
    from requests.auth import HTTPBasicAuth                                                                                                                                                                                           
  File "/opt/csw/lib/python2.6/site-packages/requests/__init__.py", line 60, in <module>                                                                                                                                              
    from .packages.urllib3.exceptions import DependencyWarning                                                                                                                                                                        
  File "/opt/csw/lib/python2.6/site-packages/requests/packages/__init__.py", line 29, in <module>                                                                                                                                     
    import urllib3                                                                                                                                                                                                                    
  File "/opt/csw/lib/python2.6/site-packages/urllib3/__init__.py", line 8, in <module>                                                                                                                                                
    from .connectionpool import (
  File "/opt/csw/lib/python2.6/site-packages/urllib3/connectionpool.py", line 11, in <module>
    from .exceptions import (
  File "/opt/csw/lib/python2.6/site-packages/urllib3/exceptions.py", line 2, in <module>
    from .packages.six.moves.http_client import (
  File "/opt/csw/lib/python2.6/site-packages/urllib3/packages/six.py", line 27, in <module>
    import operator
ImportError: ld.so.1: python2.6: fatal: relocation error: file /opt/csw/lib/python2.6/lib-dynload/operator.so: symbol _PyUnicodeUCS4_AsDefaultEncodedString: referenced symbol not found


Your Python install seems extremely broken. Your Python is somehow unable to find files that pip should have installed in the same directory as Requests and as well seems to be unable to import six, which should be very simple, due to a symbol problem inside Python itself.

You will need to fix your Python before we can help you. 

It's the one provided by Open CSW, which is fairly generic (albiet old).
Im getting further with the Python 3.3 on the same system which gives many new and likely outside requests.

# reason:

- env: `mac osx 10.12.6 ` + `Python2.7.13` + `requests (2.12.4)`
- you guys should check `openssl` version.
- the mac osx default openssl version is `0.9.8zh 14 Jan 2016`.
- when you use `brew install openssl`, the current version is `stable 1.0.2l`.
- but if you use `brew install openssl@1.1`, this version will  Cause `No Module Found Urllib3` issue.


# How to fix:

```bash

brew uninstall openssl@1.1

# openssl: stable 1.0.2l
brew install openssl

```

- then, you will find `Urllib3` issue is fixed.





## ref:
https://github.com/pypa/pip/issues/3593#issuecomment-338539287