D:\>cd D:\myproject\ExtractAudio D:\myproject\ExtractAudio>.\Scripts\activate…
Private research annotation
Sign in to add a private research label or note.
- User
D:>cd D:\my_project\ExtractAudio
D:\my_project\ExtractAudio>.\Scripts\activate
(ExtractAudio) D:\my_project\ExtractAudio>pip install requirements.txt ERROR: Could not find a version that satisfies the requirement requirements.txt (from versions: none) HINT: You are attempting to install a package literally named "requirements.txt" (which cannot exist). Consider using the '-r' flag to install the packages listed in requirements.txt ERROR: No matching distribution found for requirements.txt
- Assistant
It looks like you're trying to install the packages listed in your
requirements.txtfile usingpip. The error occurs becausepipis interpretingrequirements.txtas the name of a package to install, rather than a file that lists packages.To install packages from a
requirements.txtfile, you need to use the-ror--requirementflag withpip install. This tellspipto install all the packages listed in that file.Here's the corrected command:
bashpip install -r requirements.txtSo, in your case, you should run:
bash(ExtractAudio) D:\my_project\ExtractAudio> pip install -r requirements.txtExplanation:
-r requirements.txt: The-rflag stands for "requirement" and tellspipto install all the packages listed in the specified requirements file.