I want to use yolov5. According to https://pytorch.org/hub/ultralytics_yolov5/, you should have Python>=3.8 and PyTorch>=1.7 installed, as well as YOLOv5 dependencies.
Python and pytorch are up to date:
pip show torch
Version: 1.7.1
python --version
Python 3.9.1
But when I try to install the yolov5 dependencies, I get an error message:
pip install -qr https://raw.githubusercontent.com/ultralytics/yolov5/master/requirements.txt
ERROR: Could not find a version that satisfies the requirement torchvision>=0.8.1
ERROR: No matching distribution found for torchvision>=0.8.1
An updated version of torchvision is needed (???). So I run the update, but when I check the version it hasn't worked.
pip show torchvision
Version: 0.2.2.post3
-m pip install --upgrade torchvision
pip show torchvision
Version: 0.2.2.post3
Is torchvision needed for installing the yolov5 dependencies? How do I move forward? I'm on Windows 10.
Thanks!
I was getting similar error. Installing fresh compatible libraries (torch==1.7.1 & torchvision==0.8.2) worked for me.
virtualenv -p python3.8 torch17
source torch17/bin/activate
pip install cython matplotlib tqdm scipy ipython ninja yacs opencv-python ffmpeg opencv-contrib-python Pillow scikit-image scikit-learn lmfit imutils pyyaml jupyterlab==3
pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Be careful about your cuda version and install accordingly. Mine is 10.1. Simply using pip install torch==1.7.1 will install latest cuda version (11) compatible lib which might not be your case.
Virtual environment activation command will be different for Windows. I am on Linux
Related
This is my cmd with the error.
C:\Users>pip install tensorflow
ERROR: Could not find a version that satisfies the requirement
tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
what should I do?
You have a 32-bit build of Python. Three is no 32-bit build of tensorflow, so it is not available. Install the 64 bit build of Python and use that. Then tensorflow will install.
Try this
python -m pip install --upgrade pip
python -m pip install tensorflow
Firstly, install the x64 version of Python from https://www.python.org/downloads/ followed by upgrading your pip version.
You can issue the command: python -m pip install --upgrade pip to upgrade your pip version (If not already in the latest version). At the time of writing this comment, the latest version of pip is 21.2.4.
Next install TensorFlow by issuing the command: python -m pip install tensorflow.
If the error still persists, then uninstall TensorFlow using command: python -m pip uninstall tensorflow.
Clear the temp files on the PC. Press CTRL+R and type "temp", delete all the files. Then Press CTRL+R and type "%temp%", deleting all the files.
Finally restart your PC/Laptop.
Install Tensorflow using the command: python -m pip install tensorflow.
Now, Tensorflow should be installed successfully.
I am trying to install tensorflow, but when I run
pip install tensorflow
I get the following error:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
In many other posts the solution is to upgrade the pip version. But mine already is version 21.1.1 and I still can not install tensorflow in my env..
What am I missing?
You can try this
pip install ISR --no-deps
However, have you used conda? It's really easy to install Tensorflow using it. Just
conda install Tensorflow
(if you don't have it install from here)
Best Regards, ykostov
You may be using python3 instead of python 2, if so try:
pip3 install tensorflow
I am trying to install NLP library "Flair" using pip and getting the error message:
ERROR: Could not find a version that satisfies the requirement torch>=1.0.0 (from flair) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.0.0 (from flair)"
What should I do
I am using python3.6 and tried to install flair using cmd and pip in virtualenv. But there is still error messages.
(env) C:\Users\HP>pip install flair
I want the installation without any issue.enter image description here
Pytorch or torch is currently cannot be installed using pypi in windows.
You will need conda to accomplish that:
conda install pytorch torchvision cudatoolkit=9.0 -c pytorch
OR
for older torch version you can use whl file, Cuda version can be 8.0,9.0,10.0
pip install torch==1.0.1 -f https://download.pytorch.org/whl/cu90/stable # CUDA 9.0 build
I solved it by installing the following packages :
!pip install tiny-tokenizer flair
I was getting the same error.
Below steps worked for me on Windows10,Python3.6
1.Installing Pytorch by following the official installation instructions from https://pytorch.org The have well documented details.
Based on your selection of package [pip/conda etc] and OS [Mac/Linus/Windows] it will provide command .
This link provides useful details on how to install pytorch -
how to install pytorch
2.After successful installation of pytorch,just install Flair using command
pip install flair
Upgrade your pip and try again.
pip install --upgrade pip
pip install torch
I'm trying to install TensorFlow via pip3 on my Mac. Whenever I run the command pip3 install tensorflow or pip3 install --upgrade tensorflow I receive the same error...
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
Python version: 3.7.0
Pip version: 18.1
Is there another way I could go about installing?
Aren't you using 'notebook'?
'Anaconda' and 'notebook' are best to work with python and ML packages. You shouldn't have trouble with conda.
Try just "pip install tensorflow"
When I do pip install tensorflow, it says that there is no matching distribution. I already updated pip.
(tfenv)pi#raspberrypi:~/Downloads/opencv-3.3.0-source/build $ pip install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
(tfenv)pi#raspberrypi:~/Downloads/opencv-3.3.0-source/build $ pip --version
pip 10.0.1 from /home/pi/.conda/envs/tfenv/lib/python3.4/site-packages/pip (python 3.4)
I get the same problem when I try install opencv through pip. I tried this command on another raspberry pi and everything works fine.
You need to have the latest version of pip in order to install tensorflow or openCV. You can upgrade pip using the below command:
python -m pip install --upgrade pip
After upgrading Pip, it should work fine.