How to install Detectron2 - python

I am installing layout-parser and following this link. Did not face any issues with the following packages.  
pip install layoutparser
pip install "layoutparser[effdet]"
pip install layoutparser torchvision 
pip install "layoutparser[paddledetection]"
pip install "layoutparser[ocr]" 
But I am not able to install detectron2
pip install "git+https://github.com/facebookresearch/detectron2.git#v0.5#egg=detectron2" 
while installing this package I am getting this error    
ERROR: Could not find a version that satisfies the requirement detectron2 (unavailable) (from versions: none)
ERROR: No matching distribution found for detectron2 (unavailable)
I followed the same installation guide in Google collab and it worked but not able to install them in my Azure workspace.  

Check your python version. If you have Python version as 3.10 or higher you will face this issue. This is because detectron2 library has only wheels for <= Python 3.9.

Related

Can't install open3d libraries (Error:Could not find a version that satisfies the requirement open3d)

I use pyCharm software in windows 10, and when I tried to install open3d the following error appeared:
ERROR: Could not find a version that satisfies the requirement open3d (from versions: none)
ERROR: No matching distribution found for open3d
I tried to install it using cmd but the same error appeared, also pip version is 20.1.1.
Image
If you can't seem to upgrade open3d to version 0.13.0;
Upgrade to the latest pip version
python3 -m pip install --upgrade pip
and
sudo pip3 install open3d==0.13.0
Hope that works.
Solved: by installing python version 3.77 and run code using it instead of 3.8

Getting error while installing Flair (NLP Library)

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

How to correctly install TensorFlow using pip?

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"

Pip install tensorflow not working

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.

Pip can not find tensorflow for python 3.6 on macOS

I am installing tensorflow on a new virtualenvironment. When I try to pip install tensorflow I get the following message
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from
versions: )
No matching distribution found for tensorflow-gpu
I am using macOS yosemitie and python 3.6
I've tried the following:
Installing with python 3.5
Going to pypi, downloading the wheel and using pip on that
In addition, also trying to use the --use wheel option with pip
git cloning the tensorflow repo and installing with tensorflow/tools/pip_package/setup.py
So far nothing has worked. Any insight as to why and what I could do?
Note: As of version 1.2, TensorFlow no longer provides GPU support on macOS.
run the following without -gpu:
pip install --upgrade tensorflow # for Python 2.7
pip3 install --upgrade tensorflow # for Python 3.n
official instructions can be found here: Installing TensorFlow on macOS

Categories

Resources