Python library request

Im new to adding scripts to my stream. I was following the video guides but got stuck at the request libriaries for python. I cant get the commant promt to make the requests. Im completely ignorant as to what to do next.
33 Replies
HunterAP
HunterAP10mo ago
So if I understand this right, You're trying to install the python requests library, correct? You installed python with versions between 3.6 and 3.11, then opened a command prompt and ran this command to install requests: pip install requests @MannyTheMan
MannyTheMan
MannyTheManOP10mo ago
Correct. I have the 3.6 installed.
HunterAP
HunterAP10mo ago
So what happens when you open a command prompt window and enter the command pip install requests
MannyTheMan
MannyTheManOP10mo ago
I get a syntax error
MEE6
MEE610mo ago
GG @MannyTheMan, you just advanced to level 1 !
HunterAP
HunterAP10mo ago
Can you post either the output text you get or a screenshot of the command prompt window
MannyTheMan
MannyTheManOP10mo ago
No description
MannyTheMan
MannyTheManOP10mo ago
I have zero python experience
HunterAP
HunterAP10mo ago
Oh you're running that from inside Python type exit() and hit enter Now type pip install requests
MannyTheMan
MannyTheManOP10mo ago
When i used exit() it closed python. I reopened it and typed pip install requests and its also syntax error
HunterAP
HunterAP10mo ago
Do not reopen python Run that command outside of python pip is an app that comes with python for installing 3rd party libraries You do not use pip from within python
MannyTheMan
MannyTheManOP10mo ago
So i type it into the windows command prompt?
HunterAP
HunterAP10mo ago
Yes
MannyTheMan
MannyTheManOP10mo ago
No description
MannyTheMan
MannyTheManOP10mo ago
Did i miss a step somewhere?
HunterAP
HunterAP10mo ago
Hmm can you instead type python -m pip install requests
MannyTheMan
MannyTheManOP10mo ago
No description
MannyTheMan
MannyTheManOP10mo ago
This is where i got stuck yesterday Did i install python incorrectly?
HunterAP
HunterAP10mo ago
You typed in -m pip install requests You're supposed to enter python -m pip install requests In one line Did that work?
MannyTheMan
MannyTheManOP10mo ago
Sorry, i didnt get an alert. Im going to type that up now
MannyTheMan
MannyTheManOP10mo ago
No description
MEE6
MEE610mo ago
GG @MannyTheMan, you just advanced to level 2 !
MannyTheMan
MannyTheManOP10mo ago
I installed python as instructed and i can see it on the same file path as the one in the instructions
HunterAP
HunterAP10mo ago
Where is Python installed to You need to add that path to your path environment variable I don't have the video handy so I'm not sure if that's covered in there
MannyTheMan
MannyTheManOP10mo ago
so, would the line be: C:\Users\manny\AppData\Local\Programs\Python\Python36\python -m pip install requests
HunterAP
HunterAP10mo ago
Yes
MannyTheMan
MannyTheManOP10mo ago
No description
MannyTheMan
MannyTheManOP10mo ago
I have no idea what this means was i supposed to put the scripts in a specific folder? because i found the "Scripts" folder inside the Python36 folder
HunterAP
HunterAP10mo ago
One of the messages near the bottom says that it successfully installed requests, and the other packages that requests requires You're good to go
MannyTheMan
MannyTheManOP10mo ago
so i can disregard the warning about stuff not being on path?
HunterAP
HunterAP10mo ago
Nah don't worry about it I would add the path to Python to your environment path Specifically add C:\Users\manny\AppData\Local\Programs\Python\Python36\ to the path
MannyTheMan
MannyTheManOP10mo ago
i honestly dont know anything about python. my computer science class was over 15 years ago and i got a C lol i got 1 script to load in OBS so far and that was the one with the problem. looks like that solved the issue. thank you so much for your help. i greatly appreciate it. i couldnt have dont this without your help
HunterAP
HunterAP10mo ago
Gald I could help!
Want results from more Discord servers?
Add your server