LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2021, 11:52 PM   #1
dp5144
LQ Newbie
 
Registered: Jul 2021
Posts: 1

Rep: Reputation: Disabled
Unhappy cant install python3 pip


──(dp㉿DESKTOP-FE0GJ95)-[~/Osi.ig]
└─$ python3 -m pip install requirements.txt
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement requirements.txt (from versions: none)
ERROR: No matching distribution found for requirements.txt
 
Old 07-27-2021, 02:26 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

https://github.com/th3unkn0n/osi.ig → requirements.txt:
Code:
certifi==2020.6.20
chardet==3.0.4
idna==2.10
requests==2.24.0
urllib3==1.25.11
Works OK when installing the individual packages:
Code:
# pip3 install certifi==2020.6.20
# pip3 install chardet==3.0.4
# pip3 install idna==2.10
# pip3 install requests==2.24.0
# pip3 install urllib3==1.25.11
Any questions ? Then please specify OS name, version: $ cat /etc/*release*

-
 
Old 07-27-2021, 04:06 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
This should also work
Code:
pip3 install -r requirements.txt
Quote:
Originally Posted by knudfl View Post
Then please specify OS name
The prompt looks like Kali:
Quote:
Originally Posted by dp5144 View Post
──(dpDESKTOP-FE0GJ95)-[~/Osi.ig]

Last edited by shruggy; 07-29-2021 at 01:06 AM.
 
1 members found this post helpful.
Old 07-27-2021, 04:50 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by knudfl View Post
please specify OS name, version: $ cat /etc/*release*
And also the contents of requirements.txt
 
Old 07-27-2021, 04:52 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by dp5144 View Post
ERROR: Could not find a version that satisfies the requirement requirements.txt (from versions: none)
ERROR: No matching distribution found for requirements.txt
This error suggests that pip doesn't understand that it should read the requirements form the file; it thinks "requirements.txt" is the name of the package to be installed?
So, reading pip command line syntax documentation might help?
 
  


Reply

Tags
osi.ig



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'sudo pip install' is not recognized. 'pip install' is recognized. MrBright2019 Linux - Newbie 1 07-28-2020 10:09 PM
Trouble install python3-pip stvader Linux - Newbie 1 06-15-2020 03:29 AM
sudo apt-get install python3-pip “Could not resolve 'proxy.iogs'” synarxelote Linux - Newbie 1 04-24-2018 12:08 PM
Hello, Bon Jour, Pip Pip SocaSpice LinuxQuestions.org Member Intro 3 11-14-2010 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration