Unable to install tensorflow-compression - python

I get this error every time I try to install tensorflow-compression
ERROR: Could not find a version that satisfies the requirement tensorflow-compression (from versions: none)
ERROR: No matching distribution found for tensorflow-compression
I'm using python 3.6.8 and tensorflow-gpu 1.14.0.
This package does exist and was recently updated:
https://pypi.org/project/tensorflow-compression/
I've tried to install it in a python 2.7 environment, but it didn't work.
Also tried to specify the latest version pip install tensorflow-compression==1.2, but it also didn't work.

At the time of writing this, prebuilt wheels of tensorflow-compression exist only for Linux/MacOS. Quoting the readme:
Installation
Note: Precompiled packages are currently only provided for Linux (Python 2.7, 3.3-3.7) and Darwin/Mac OS (Python 2.7, 3.7).
To use these packages on Windows, consider using a TensorFlow Docker image and installing tensorflow-compression using pip inside the Docker container.

Windows is currently not supported. Please use one of TensorFlow's Docker images (https://www.tensorflow.org/install/docker) and pip install tensorflow_compression there.

Related

how to find what is the latest version of python that pytorch

When I try
pip install torch, I get
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
Searching on here stackoverflow I find that the issue is I need an older verson of python, currently I'm using 3.11. That post said 3.8 but was written some time ago, so how do I find the latest version of python that will run pytorch? I couldn't find it easily on the PyTorch pages.
Pytorch supports Python 3.10.
Python 3.11 isn't fully supported yet.
You can always check torch archive or torch nightly to see if your desired version is supported.
While the Python3.11 is not officially supported as of now (Feb 11, 2023), if you are on Linux you can install the Python3.11 version of Pytorch 1.13.1:
wget https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp311-cp311-linux_x86_64.whl
pip3 install torch-1.13.1+cu117-cp311-cp311-linux_x86_64.whl
Just note that this is not yet available on Windows or other major OSes.
If you want to give the new version a try on Other OSes such as Windows or Mac, you need to use the nighly builds.
For example for Windows inside powershell do :
wget https://download.pytorch.org/whl/nightly/cu117/torch-2.0.0.dev20230210%2Bcu117-cp311-cp311-win_amd64.whl -OutFile torch-2.0.0.dev20230210+cu117-cp311-cp311-win_amd64.whl
pip install torch-2.0.0.dev20230210+cu117-cp311-cp311-win_amd64.whl

Why is the curses module not installing via pip?

I have been trying to install the curses module using the command "pip install windows-curses" but it does not seem to be working and it errors out saying:
ERROR: Could not find a version that satisfies the requirement windows-curses (from versions: none)
ERROR: No matching distribution found for windows-curses
[Edit: I am using python 3.10]
I installed the requests package after that using pip but that seems to install perfectly. So, pip is working correctly, just not the curses module. Is it a problem on my end or is this package actually not available?
Currently the latest version of windows-curses is 2.2.0 and it provides wheels for Python 3.6-3.8 and no source code.
Most probably you use Python 3.9 or 3.10 (you should have indicated in the question). To use windows-curses you need to downgrade. You can also download wheels from https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses

Installation issues using pip for OpenCv

I am currently on Linux x86-64 machine. I am trying to install opencv in my virtual environment using pip however the error I keep receiving is
ERROR: Could not find a version that satisfies the requirement numpy==1.19.3 (from versions: 1.19.2+computecanada, 1.21.0+computecanada, 1.21.2+computecanada)
ERROR: No matching distribution found for numpy==1.19.3
I am running python 3.9.6 (64bit) and my current numpy version is 1.21.3. the command I've been using is pip install opencv-python. i've also tried uninstalling other instances of openCV and have tried the other options all with the same error. Does openCV not support numpy 1.21.3? Would anyone be able to point me in the right direction?
On computecanada you don't need to install OpenCV.
You can use it by following these commands:
module spider opencv
module load opencv/version
Actually, this error happens if numpy version does not match OpenCV required version.
for my case:
I used python 3.6. so I solved this error by following:
pip install numpy==1.19.0
pip install opencv-python==3.4.11.45
after installing numpy I search which OpenCV version support this numpy version, I found 3.4.11.45 so I install it by 2 number command and it is working.

How do I install python package tobii_research?

I am trying to install tobii_research for a project and I was following the instructions on http://developer.tobiipro.com/python/python-getting-started.html
I already have python 3.7.6 and pip 21.1.2 installed on my Mac.
When I run pip install tobii-research I get:
ERROR: Could not find a version that satisfies the requirement tobii_research (from versions: none)
ERROR: No matching distribution found for tobii-research
Was there something I forgot to install?
I can not for the life of me figure out how to install this manually either.
Help with pip, or installing manually would be greatly appreciated, but you might have to explain it to me like I am stupid.
Thanks in advance.
It appears that you are not running the correct python version for the versions of the package that are available. If you look at the wheel files available on the tobii-research Downloads page, the software is packaged for either python 2.7 or 3.6.
When trying to install this package myself, I get the same error message as you when trying to install it for python 3.8, but the package installs successfully with my python 2.7 installation.
I would recommend installing a compatible version of python and then running pip through that version using the following command:
[specific_python_installation] -m pip install tobii-research
Try doing it with pip again, but replace the underscore with a hyphen as shown below:
pip install tobii-research
I saw on the PyPi website that they only have it for Python 3.8, so I downloaded that Python version from their official website and installed it (do not add it to path).
Then, I created a virtual environment selecting 3.8 as the Python version (refer to this answer) and activated that virtual environment.
Finally, I run pip install tobii_research and it worked.
One thing that helped me - required Python version. For example, for the version 1.10.2 (which is current at the moment of writing this) only Python 3.10 is supported. Check the list of files distributed within this version.
I was able to install the package on Windows with Python 3.10 but on MacOS I had the same problem and wasn't able to resolve this - I assume it's a problem with the architecture, as there is no version for arm64 if you have a Mac with M1 processor.

How to install pyramid-arima in python 3.7

I'm trying to implement auto arima in my python 3.7 on Windows10 So I tried to install pyramid-armia using following command
pip install pyramid-arima
But I'm getting error message
Could not find a version that satisfies the requirement pyramid-arima (from versions: )]
No matching distribution found for pyramid-arima
I also tried steps mentioned here
But got the same error message
Can you please guide me to install it?
This error might be because there is no version of package that fits combination of versions of your Python, Operating System, Cpu Type and Instruction Set.
That package is out-dated and abandoned, hence not installable, use new replacement, which is pmdarima package:
pip install pmdarima
and import like:
import pmdarima
Official documentation for pmdarima is here.
If still you're getting same error for new pmdarima then download .whl package directly from here.
You need to download package corresponding to your python version and windows bits. E.g. if you have Python 3.7 and Windows 64-bit then download pmdarima-1.7.1-cp37-cp37m-win_amd64.whl (or with win32 suffix for 32-bit windows), here cp37 means CPython version 3.7.
Then just install it like this:
pip install pmdarima-1.7.1-cp37-cp37m-win_amd64.whl
Also many trouble-some Windows prebuild .whl packages that have problems with installation/compilation are located here. I've often downloaded this prebuilt packages from there, when haven't succeeded with pip install. But for the case of pmdarima it is located at the first link but not second.

Categories

Resources