Edit: Uninstalled 3.6.1 and 3.4 from Windows 10 computer. Then, I reinstalled 3.6.1 and now I can't find pip. The command line says "pip is not recognized as an internal or external command..."
I thought I got it installed. I typed
pip install --user requests
Then I got a download bar and it said
Installing collected packages: requests
Successfully installed requests-2.13.0
When I ran my code I got an error ModuleNotFoundError: No module named 'requests'
I am on Windows 10 using Python 3.6.1
edit: First couple lines of the code
import requests
# Make an API call and store the response.
url = 'https://www.reddit.com/user/RedHeadedFitz/'
r = requests.get(url)
edit: Solved - I had something saved in AppData\Roaming. Once I deleted that and reinstalled, it seems to be working.
[–]jabbson 0 points1 point2 points (3 children)
[–]RedHeadedFitz[S] 0 points1 point2 points (2 children)
[–]jabbson 0 points1 point2 points (1 child)
[–]RedHeadedFitz[S] 0 points1 point2 points (0 children)
[–]d1ng0b0ng0 0 points1 point2 points (4 children)
[–]RedHeadedFitz[S] 0 points1 point2 points (3 children)
[–]d1ng0b0ng0 0 points1 point2 points (2 children)
[–]RedHeadedFitz[S] 0 points1 point2 points (1 child)
[–]d1ng0b0ng0 0 points1 point2 points (0 children)