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
HunterAP9mo 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
MannyTheMan9mo ago
Correct. I have the 3.6 installed.
HunterAP
HunterAP9mo ago
So what happens when you open a command prompt window and enter the command pip install requests
MannyTheMan
MannyTheMan9mo ago
I get a syntax error
MEE6
MEE69mo ago
GG @MannyTheMan, you just advanced to level 1 !
HunterAP
HunterAP9mo ago
Can you post either the output text you get or a screenshot of the command prompt window
MannyTheMan
MannyTheMan9mo ago
No description
MannyTheMan
MannyTheMan9mo ago
I have zero python experience
HunterAP
HunterAP9mo ago
Oh you're running that from inside Python type exit() and hit enter Now type pip install requests
MannyTheMan
MannyTheMan9mo ago
When i used exit() it closed python. I reopened it and typed pip install requests and its also syntax error
HunterAP
HunterAP9mo 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
MannyTheMan9mo ago
So i type it into the windows command prompt?
HunterAP
HunterAP9mo ago
Yes
MannyTheMan
MannyTheMan9mo ago
No description
MannyTheMan
MannyTheMan9mo ago
Did i miss a step somewhere?
HunterAP
HunterAP9mo ago
Hmm can you instead type python -m pip install requests
MannyTheMan
MannyTheMan9mo ago
No description
MannyTheMan
MannyTheMan9mo ago
This is where i got stuck yesterday Did i install python incorrectly?
HunterAP
HunterAP9mo 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
MannyTheMan9mo ago
Sorry, i didnt get an alert. Im going to type that up now
MannyTheMan
MannyTheMan9mo ago
No description
MEE6
MEE69mo ago
GG @MannyTheMan, you just advanced to level 2 !
MannyTheMan
MannyTheMan9mo ago
I installed python as instructed and i can see it on the same file path as the one in the instructions
HunterAP
HunterAP9mo 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
MannyTheMan9mo ago
so, would the line be: C:\Users\manny\AppData\Local\Programs\Python\Python36\python -m pip install requests
HunterAP
HunterAP9mo ago
Yes
MannyTheMan
MannyTheMan9mo ago
No description
MannyTheMan
MannyTheMan9mo 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
HunterAP9mo 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
MannyTheMan9mo ago
so i can disregard the warning about stuff not being on path?
HunterAP
HunterAP9mo 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
MannyTheMan9mo 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
HunterAP9mo ago
Gald I could help!
Want results from more Discord servers?
Add your server