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
Related
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.
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'm currently trying to pip install tensorflow. But 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
What should I do?
Oh and by the way i tried installing it with the following command:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
But i think i just made it even worse.
Currently on Windows 10
Thanks!
You are trying to install a TensorFlow package for Mac OS. Try with a suitable package for Windows 10. For example if you have Python 3.6 and want the CPU-only version you could try the following:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.14.0-cp36-cp36m-win_amd64.whl
But it is recommended to install TensorFlow using a virtualenv as shown on the official documentation.
I am attempting to install TensorFlow on my Macintosh computer. I was following the instructions as provided on their website when I reached a problem. I had established a virtual environment in the MacOS terminal and attempted to use pip to install TensorFlow with the command
pip install tensorflow
when I received the following message:
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
How can I resolve this? Thank you for any assistance you can provide.
Sincerely,
Suren Grigorian
try updating pip using
python3 -m pip3 install --upgrade pip3
and try again by specifying tensorflow version with
pip3 install tensorflow==2.3.1
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"