Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip install Python packages from Requirements.txt file on github [duplicate]

Hey i have a Repository https://github.com/yotestyo/test with a text file Requirements.txt containing package names i want to install with pip in my Anaconda env. What is the command to install the packages from github. On my local machine it is pip install -r Requirements.txt in the dierectory. pip install -r https://github.com/yotestyo/test/Requiements.txt does not work, neither pip install -r https://github.com/yotestyo/test/blob/main/Requirements.txt

like image 755
DarkHackerxXx Avatar asked Apr 10 '26 00:04

DarkHackerxXx


1 Answers

Use pip install -r https://raw.githubusercontent.com/yotestyo/test/main/Requirements.txt

Open that file requirement.txt in GitHub, then you will get the URL of the above form

like image 183
Vyshak Puthusseri Avatar answered Apr 12 '26 14:04

Vyshak Puthusseri