I get an error trying install pytorch 1.7.0 - python

i tried to install pytorch with this command:
python -m pip install torch==1.7.0 -f https://download.pytorch.org/whl/torch_stable.html
and I got this error message:
ERROR: Could not find a version that satisfies the requirement torch==1.7.0 (from versions: 1.11.0, 1.11.0+cpu, 1.11.0+cu113, 1.11.0+cu115, 1.12.0, 1.12.0+cpu, 1.12.0+cu113, 1.12.0+cu116, 1.12.1, 1.12.1+cpu, 1.12.1+cu113, 1.12.1+cu116)
ERROR: No matching distribution found for torch==1.7.0
how do I fix that?

Related

How to solve: ERROR: Could not find a version that satisfies the requirement opencv-python==4.1.1.26

I am trying to install requirements.txt below from github in anaconda virtual environment.
requirements.txt: opencv-python==4.1.1.26
lxml
tqdm
tensorflow==2.3.0
absl-py
easydict
matplotlib
pillo
After using the command : `python -m pip install -r requirements.txt`(`pip install -r requirements.txt`)
The error came out :
ERROR: Could not find a version that satisfies the requirement opencv-python==4.1.1.26 (from versions: 3.4.0.14, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.14.53, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.2.54, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66)
ERROR: No matching distribution found for opencv-python==4.1.1.26
How can I solve this?
python 3.7.2
pip 22.2.2
Ubuntu 16.04
conda 4.5.12

Failure to pip install tensorflow on M1 mac

My environment is using Python 3.7 in conda, when attempting a pip install -r requirements.txt I get the following.
Collecting tensorflow~=2.4.0
Downloading tensorflow-2.4.4-cp37-cp37m-macosx_10_14_x86_64.whl (174.3 MB)
|████████████████████████████████| 174.3 MB 20.3 MB/s
ERROR: Could not find a version that satisfies the requirement tensorflow-gpu~=2.4.0 (from versions: none)
ERROR: No matching distribution found for tensorflow-gpu~=2.4.0
Are there any suggestions here to fix this or to get an insight into what is happening here. I believe the line causing the issue in the requirements.txt is
tensorboard~=2.4
tensorboard-plugin-wit~=1.8
As suggested if I try the command
python3 -m pip install tensorflow-macos
I get the following
ERROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none)
ERROR: No matching distribution found for tensorflow-macos

Version error of torchvision dependency when installing medcat via pip

When I attempt to install medcat via
pip install medcat
I get the following error:
ERROR: Could not find a version that satisfies the requirement torchvision~=0.8.0 (from medcat) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.5.0, 0.9.0, 0.9.1)
ERROR: No matching distribution found for torchvision~=0.8.0 (from medcat)
To me, this would imply that there is no torchvision version 0.8.0.
How do I get around this issue when installing the medcat package?
This issue was resolved by installing medcat via:
pip install --upgrade medcat -f https://download.pytorch.org/whl/torch_stable.html

MailCorpus using pip

I have python 3.7.4 and want to install MailCorpus using pip.
I use this but I receive error:
>pip install MailCorpus
Collecting MailCorpus
ERROR: Could not find a version that satisfies the requirement MailCorpus (from versions: none)
ERROR: No matching distribution found for MailCorpus
Any problem with version?

How to install old version of library in Pip3

I would like to use opencv-python and opencv-contrib-python versions in 3.3 or below on Python 3.7. The issue is that I can't seem to get them on pip3. I need it to be pip3 and Python 3.7 because it's to run on Google Cloud Functions.
If I run $ pip3 install opencv-contrib-python== to get the versions I get:
versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.24, 4.1.0.25
and from pip3 install opencv-python==
versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.24, 4.1.0.25
How can I get older versions like 3.3.1.11 which are available in pip2?
Of course deploying trying to get the old version on GCloud gives me
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`pip_download_wheels` had stderr output:\n Could not find a version that satisfies the requirement opencv-python==3.2.0.7 (from -r requirements.txt (line 2)) (from versions: 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25)\nNo matching distribution found for opencv-python==3.2.0.7 (from -r requirements.txt (line 2))\n\nerror: `pip_download_wheels` returned code: 1", "errorType": "InternalError", "errorId": "91F6A3AC"}}

Categories