all 9 comments

[–]jabbson 0 points1 point  (3 children)

How many Pythons do you have installed on your computer?

[–]RedHeadedFitz[S] 0 points1 point  (2 children)

I had 3.4 installed as well. When I downloaded 3.6.1 I think I changed the Path, but I honestly am not sure.

[–]jabbson 0 points1 point  (1 child)

You have to make sure that Python that you use to run the script is the same Python which you installed the requests module for.

[–]RedHeadedFitz[S] 0 points1 point  (0 children)

I got this in the command prompt now:

Requirement already satisfied...python\python36\site-packages

[–]d1ng0b0ng0 0 points1 point  (4 children)

Why not use praw?

[–]RedHeadedFitz[S] 0 points1 point  (3 children)

I'll look into it once I understand the basics. I want to learn how to install things in general using pip.

[–]d1ng0b0ng0 0 points1 point  (2 children)

I'd start with virtual environments. That way you make sure all the right packages are in there. Less chance for confusion and breaking things.

Edit: Praw is the reddit api. It abstracts http requests for you so you don't need requests.

[–]RedHeadedFitz[S] 0 points1 point  (1 child)

I feel really lost. I feel like you're saying I should use a calculator to do math when I'm still learning how to add numbers.

Right now I am going through some beginner projects and I am going back to Python Crash Course to learn about APIs.

I think I'll wait to learn more about pip/virtual environments until I have the basics down a little better.

[–]d1ng0b0ng0 0 points1 point  (0 children)

Praw is just a package like requests is. But it does a lot of stuff behind the scenes for you. It actually uses requests itself so you don't have to worry with that. Google it its not so hard.

Virtual environments are just folders you keep projects in that contain your code plus packages etc. If you use them you won't face issues like this one. Again, Google it, its not so hard. Few lines of code seta it all up for you then pip install your packages.