Could not find a version that satisfies the requirement requirements.txt (from versions: )
Opened this issue ยท 20 comments
I did a git clone
and entered into directory and ran this
pip install requirements.txt
At first It threw this
Collecting requirements.txt Could not find a version that satisfies the requirement requirements.txt (from versions: ) No matching distribution found for requirements.txt You are using pip version 9.0.1, however version 9.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
So, I upgraded the pip with command as shown above. Then again tried to install requirements and It threw same error again.
Collecting requirements.txt Could not find a version that satisfies the requirement requirements.txt (from versions: ) No matching distribution found for requirements.txt
Please fix this.
You have to pass the -r
flag when installing from requirements.txt
file. Try running:
pip install -r requirements.txt
Added -r , Still not working!!
Hi @C0deDaedalus ,
Before pip install -r requirements.txt"
, enable virtualenv as:
cd env
source bin/activate
then install requirements as commented
Thanks,
Fernando Mendez
Is there an answer or what? I am stuck on the same problem here
Same problem, after doing pip freeze
of my project and running pip -r install
huge number of packages cannot found, very akward(
ะ ะตัะธะป ะฟัะพะฑะปะตะผั? ะตัะปะธ ะดะฐ ัะบะฐะถะธ ะบะฐะบ ะฟะพะถะฐะปัะนััะฐ.
Hello guyz,
git clone the code and the open it in any code editor of your choice. When you are done with that, create a virtualenv and activate it like so:
- virtualenv env -- "Activate using: cd env ---> source bin/activate"
OR
- virtualenv env --- "source env/bin/activate"
After you have successfully activated your virtual environment, cd into the source code were the "requirements.txt file is.
and then run command "pip install -r requirements.txt"
BAMMMM!!!!!!!!!!!!!!!!!!!!! That should work guyz...
Added -r , Still not working!!
try:
pip3 install -r requirements.txt
You have to pass the
-r
flag when installing fromrequirements.txt
file. Try running:pip install -r requirements.txt
even then im getting error like
Could not find a version that satisfies the requirement distro-info===0.18ubuntu0.18.04.1 (from -r requirements.txt (line 22)) (from versions: 0.10)
No matching distribution found for distro-info===0.18ubuntu0.18.04.1 (from -r requirements.txt (line 22))
after removing that in requirements.txt file and again show another error liike other particular thing version couldn't find......
I had the same issue and found this workaround: with your virtual environment running, pip install each line of requirements.txt manually.
For example if your requirements.txt file has the following lines:
appdirs==1.4.4
asgiref==3.3.4
autopep8==1.5.7
(etc)
You'd run:
pip install appdirs==1.4.4
pip install asgiref==3.3.4
pip install autopep8==1.5.7
(etc)
pip install requirements.txt command is not working, but pip freeze > requirements.txt
is working
deactivate your venv by writing in CMD :
deactivate
Then Install venv in your directory :
python -m venv < your env name > # like this
python -m venv venv
Then go to your req.txt path and install it by the right code:
pip install -r req.txt or
pip install -r requirements.txt
How to create a virtual env in termux ??
How to create a virtual env in termux ??
- Run python -m venv my_venv on your Termux terminal to create a virtual environment named my_venv.
- Run ls on your termux terminal and notice that a new folder has been created named my_venv โ that folder will hold our environment packages i.e Django.
$ python -m venv my_venv
- Then Run source my_env/bin/activate to activate the virtual environment :
$ source my_env/bin/activate
ูููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููููู
ะ ะตัะธะป ะฟัะพะฑะปะตะผั? ะตัะปะธ ะดะฐ ัะบะฐะถะธ ะบะฐะบ ะฟะพะถะฐะปัะนััะฐ.
ั ะผะตะฝั ัะฐะบะฐั ะฟัะพะฑะปะตะผะฐ ะฒ ัััะธะผะปะธัะต