trouble to install spaCy 3.0 on GoogleColab - python-3.x

Background
I'm woking on the following local environment and need to use spaCy 3.0 on GoogleColab.
However, it looks accepted to install spaCy after 3.0 because of python version.
spaCy version 3.0.5
Python version 3.9.1
Error
How can I use spaCy after 3.0 on GoogleColab or is it impossible now?
Requirement already satisfied: spacy in /usr/local/lib/python3.7/dist-packages (2.2.4)
ERROR: Could not find a version that satisfies the requirement 3.0.5 (from versions: none)
ERROR: No matching distribution found for 3.0.5
Environment
GoogleColab
!pip install spacy
!python -m spacy info
============================== Info about spaCy ==============================
spaCy version 2.2.4
Python version 3.7.11

When you do pip install XXX, pip will not upgrade something you already have installed by default. To update it use the -U (or --update) flag.
pip install -U spacy
That should install the latest version.

You can use pip to install spaCy, and specify version 3.1.1
!pip install spacy==3.1.1
Then you can check the result.
import spacy
print(spacy.__version__) # 3.1.1

Related

Can't update tensorflow OS X Monterey

I write in terminal pip3 show tensorflow and that's what i get:
pip3 show tensorflow Name: tensorflow Version: 1.8.0
here is what i get when im trying to upgrade it with pip3 install tensorflow==2.5.0:
pip3 install tensorflow==2.5.0 Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement tensorflow==2.5.0 (from versions: none) ERROR: No matching distribution found for tensorflow==2.5.0
PYTHON VERSION - 3.8.9
I have also tried to do it through source installing, but the same problem

Install Tensorflow 2.2 on linux

I have GNU/Linux box, I am trying to install Tensorflow 2.2. Currently I have
python3.6 --version
Python 3.6.12
and when I try to run my code it says
ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow`
So when I try to install Tensorflow 2.2
sudo pip-3.6 install --upgrade tensorflow==2.2.0
Collecting tensorflow==2.2.0
Could not find a version that satisfies the requirement tensorflow==2.2.0 (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
No matching distribution found for tensorflow==2.2.0
I get the above error. Any idea how to fix this issue?
Update:
sudo pip-3.6 --version
pip 9.0.3 from /usr/lib/python3.6/dist-packages (python 3.6)
-Raj
Starting with Tensorflow 2.0 Google stopped providing manylinux1 wheels and switched to manylinux2010 which is probably not recognized by your pip because it's too old. Try to upgrade: sudo pip-3.6 install -U pip, then verify sudo pip-3.6 --version and retry sudo pip-3.6 install -U tensorflow==2.2.0
TensorFlow 2 packages require a pip version >19.0.
https://www.tensorflow.org/install

Could not find a version that satisfies the requirement tensorflow (from versions: none)

When i execute the command in my terminal
pip install --upgrade tensorflow
i get an error
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
There was a similiar question in stackoverflow. The cause for this error is that tensorflow supports only up to Python 3.7. So i checked my version
python3 --version3
--> 3.8.1
I tried to downgrade it with
conda install python=3.7
---> Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
but it does not work. How can this be?
I am using manjaro as a distro.
Could the Python3.7 you're running be the 32-bit version? Tensorflow requires the 64-bit version of python.

installing torch 1.0.1.post2 in windows system

Not Able to install latest version of Torch (pip install torch==1.0.1.post2)
pip install torch==1.0.1.post2
Trying to do in Python Version 3.7 and windows 10
C:\Users\Admin>pip install torch==1.0.1.post2
Collecting torch==1.0.1.post2
Could not find a version that satisfies the requirement torch==1.0.1.post2 (from versions: 0.1.2, 0.1.2.post1)
No matching distribution found for torch==1.0.1.post2
torch 1.0.1.post2 is not available on Windows. You can get a list of all available torch pypi packages from https://download.pytorch.org/whl/cpu/stable

How to update Tensorflow on mac?

My current Tensorflow version is 0.10.0. I need to update it to latest version.Latest one is 1.0.0.Is there any method that I can use in
terminal?
This is the python code which I used to find version
import tensorflow as tf;
print(tf.__version__);
If you are using anaconda;
>conda update tensorflow
If you are using pip;
>pip install tensorflow --upgrade
If you want to force install a specific version on conda;
>conda install tensorflow=1.0.0
If you want to force install a specific version on pip;
>pip install 'tensorflow==1.0.0' --force-reinstall
In anaconda cloud, first pick a channel which has the latest version of tensorflow binary. The latest versions are usually available at the channel conda-forge
conda update -f -c conda-forge tensorflow
This will upgrade your installation to the very latest version available. As of this writing version 1.4.0-py36_0

Resources