r/pythonhelp • • 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

2 Upvotes

11 comments sorted by

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 pip3 produce any output?

Did you try the python3 -m pip version?

1

u/PJ_USA Feb 20 '22 edited Feb 20 '22

pip3 produces a output, just "pip3 install -r requirements.txt" produces nothing. I also tried python3 -m pip, still nothing

Terminal: https://drive.google.com/file/d/1YjY4bmPaqOXjuCsHQ8NLHbyceTTjmIXC/view?usp=sharing

1

u/Goobyalus Feb 20 '22

If you get no output most likely all your requirements are satisfied.

You can try pip3 install -v -r requirements.txt with the -v for "verbose" output.

Try python3 -m instalooter login

1

u/PJ_USA Feb 20 '22 edited Feb 20 '22

python3 -m instalooter login

when I use "pip3 install -v -r requirements.txt" I get this message:
Using pip 22.0.3 from /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pip (python 3.9)
(seems right)

And when I try "python3 -m instalooter login" I get this error message:
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3: No module named instalooter

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"