Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upImportError: No module named request - Not working with python 3.5 & urllib.request #113
Comments
This comment has been minimized.
This comment has been minimized.
|
Beautiful soup is not distributed with Python 3. Please include the commands you used to install |
Manslow
changed the title
ImportError: No module named bs4 - Not working with python 3.5 & beautifulsoup4
ImportError: No module named request - Not working with python 3.5 & urllib.request
Aug 25, 2016
This comment has been minimized.
This comment has been minimized.
|
I meant to post the same error but for urllib.request. Sorry for the confusion. The bs4 error did go away after installing the module. The urllib.request error is still there and it is included with Python 3.5. |
This comment has been minimized.
This comment has been minimized.
|
Please post the full set of commands you've run, including the ones used for installation. |
This comment has been minimized.
This comment has been minimized.
|
I downloaded pdoc from here https://pypi.python.org/pypi/pdoc |
This comment has been minimized.
This comment has been minimized.
|
Please see the README for installation instructions. You should be using |
This comment has been minimized.
This comment has been minimized.
|
I followed the INSTALL file document which says: It should be as straight-forward as sudo python setup.py install I just ran pip install pdoc and got this: You are using pip version 7.1.0, however version 8.1.2 is available. The error still occurs. |
This comment has been minimized.
This comment has been minimized.
|
Looks like there is some confusion in your environment setup. Your error message suggests you installed it for Python 2.7. |
This comment has been minimized.
This comment has been minimized.
|
Ah, good catch. I just used Now if I type However, I still get the error. |
This comment has been minimized.
This comment has been minimized.
|
I don't know, sorry. If you're getting the same error then you probably aren't running it with Python 3. Even if you weren't, |
This comment has been minimized.
This comment has been minimized.
|
I managed to get it working with virtualenv. pdoc is a very helpful tool indeed. |
Manslow commentedAug 25, 2016
•
edited
I've been trying to pdoc a package that imports urllib.request. I'm using python 3.5 which is distributed with urllib.request. I get the following...
I'm new to python but I guess this is related to using python 3.5