r/pythonhelp • u/PJ_USA • Feb 19 '22
pip3 install -r requirements.txt not working
Hello,
I have never dealt with Python before so this could be just a simple problem: I'm trying to run this Python code and step 2 is to install libaries with "pip3 install -r requirements.txt", but every time I type this in my console I get no feedback, whats the problem? I think I'm doing something wrong with installing the libraries because when I type "instalooter login" in step 3 I get an error message "zsh: command not found: instalooter".
Terminal: https://drive.google.com/file/d/1YjY4bmPaqOXjuCsHQ8NLHbyceTTjmIXC/view?usp=sharing
Python code: https://github.com/nathan-149/automated_youtube_channel
1
u/cr0sis8bv Feb 20 '22
After cloning the repository did you change directory into it before running the pip3 install command? The guide doesn't explicitly tell you to, so just wondering if you missed that.
1
u/PJ_USA Feb 20 '22
I don’t think so because I don’t know how to do that, i never touched Python in my life
1
u/cr0sis8bv Feb 20 '22
Ah, so the process thru terminal goes (new line - new command):
git clone https://github.com/nathan-149/automated_youtube_channel
cd automated_youtube_channel
pip3 install -r requirements.txt
That will resolve the error when using instalooter login
If your terminal use is a little rusty or could do with brushing up on, there's always this
1
u/PJ_USA Feb 20 '22
cd automated_youtube_channel is not working, this is the error message: "cd: no such file or directory: automated_youtube_channel". Do I need to move the downloaded code somewhere specific?
Thanks for the help
1
u/cr0sis8bv Feb 20 '22
Have a look in your home directory (or wherever you were on the terminal when you cloned the repo you can type ls to see the names of the directories) and look for whatever it named it, rename the folder to anything you want that works for you, just as long as you cd / change directory to that specific folder. If it doesn't have the _'s between each word like I figured it would, you could just wrap the path in quotes and use spaces like
cd 'automated youtube channel'
or you can use backslashes and spaces without quotes like
cd automated\ youtube\ channel
1
u/PJ_USA Feb 20 '22
Have a look in your home directory (or wherever you were on the terminal when you cloned the repo you can type ls to see the names of the directories) and look for whatever it named it, rename the folder to anything you want that works for you, just as long as you cd / change directory to that specific folder. If it doesn't have the _'s between each word like I figured it would, you could just wrap the path in quotes and use spaces like
i don't understand, could you rephrase that 😬
1
u/PJ_USA Feb 20 '22
I think I have done it right but I still get the same error message "cd: no such file or directory: automated_youtube_channel-master"
1
u/Goobyalus Feb 20 '22
When you say no feedback, do you mean it executes, drops you back and the shell prompt, and prints out nothing? It's not hanging?
Does
pip3produce any output?Did you try the
python3 -m pipversion?