I have installed requests package on my mac (10.8) as any other with pip.
I can see it under /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages.
However when I import requests in a python script I get a terminal error:
ImportError: No module named requests as if it's not installed.
Easy install say it is installed as well:
$ easy_install requests
Searching for requests
Best match: requests 1.2.3
Adding requests 1.2.3 to easy-install.pth file
Using /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages
Processing dependencies for requests
Finished processing dependencies for requests
The only error I could locate was when upgrading with pip:
$ pip install requests --upgrade
Downloading/unpacking requests
Real name of requirement requests is requests
Downloading requests-1.2.3.tar.gz (348Kb): 348Kb downloaded
Running setup.py egg_info for package requests
Installing collected packages: requests
Found existing installation: requests 1.2.3
Uninstalling requests:
Successfully uninstalled requests
Running setup.py install for requests
File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/requests/packages/urllib3/contrib/ntlmpool.py", line 38
"""
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 130-132: truncated \uXXXX escape
Successfully installed requests
Cleaning up...
Some ideas why it cannot be imported? Thanks
$ python3 /Users/me/Desktop/script.py?