Why is an older version of sktime getting installed using pip? - python-3.x

I'm trying to install sktime using pip. The latest version in pypi is 0.5.1, however when I install 0.4.3 gets installed. I tried installing using pip3 install sktime==0.5.1, it throws error
Could not find a version that satisfies the requirement sktime==0.5 (from versions: 0.1.dev0, 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3)
No matching distribution found for sktime==0.5

For future users, relevant details from chat:
Ubuntu 18.0.4
pip 9.0.1
python 3.6.9
The issue here is that the pip version is too old to install any of the wheel files for 0.5.1. manylinux2010 support was added in pip 19.0, according to this issue. To fix this, just upgrade pip to a version >19.
So why does this issue only occur for version 0.5.1 and not any of the previous ones? It's because all of the previous version(for instance, 0.4.3) also provide a source distribution(the .tar.gz) which can be used to build from source as an alternative to wheels. However, this sdist was removed in 0.5.1.

Related

How to install Tensorflow-Federated 0.28.0 on win10?

I need some function or api which belongs to the newest version of Tensorflow Federated. According to the tutorial of official website, I type the following to install the newest version.
pip install --upgrade pip
pip install --upgrade tensorflow-federated
Unfortunately, when the installation has been finished, the version is 0.17.0, which was published in 2020. Therefore, I just want to know how to install Tensorflow-Federated 0.28.0 on win10.
I have moved to Linux System, and everything is ok now. The win 10 platform can't download the newest version.

pip unable to find newest package version

I'm having an issue installing a new package version using pip.
Im working on my package, and recently uploaded a new version (==1.9.0), the same way I always do using twine upload. The upload was successful. When trying to install the new version, I get the following error:
>>> pip install the-spymaster-util==1.9.0
ERROR: Could not find a version that satisfies the requirement the-spymaster-util==1.9.0 (from versions: 0.1.1, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.8.0)
ERROR: No matching distribution found for the-spymaster-util==1.9.0
as if version 1.9.0 doen't exist. The wierd thing is that it does exist in pypi index, just that for some reason my local index refuses to update according to it. Also, the newest version (==1.9.1 as im writing this question), does not appear as the "lastest" version - but 1.8.0 does. Usually the index updates within a few seconds after the upload is completed.
Am I missing something?
While there is probably some caching delay in pypi as mentiond in the comment by #Bijany, I did find my way around this (not production-ready, but good enough to keep local developemnt going):
Open your specific package version page in pypi (e.g. https://pypi.org/project/package_name/package_version)
Click on Download Files.
Copy the Source Distribution file URL (the .tar.gz file).
In the command line, run: pip install <file_url>.
Edit: it appears that there in an ongoing related incident: https://status.python.org/incidents/l16ylxktn4r9

Python Dependency satisfied but pip still complains for zope.interface==4.6.0

While installing all the packages, I am getting no matching version error for zope.interface package even though the version is present in the list.
ERROR: Could not find a version that satisfies the requirement zope.interface==4.6.0 (from versions: 3.3.0b1, 3.3.0b2, 3.3.0, 3.3.0.1, 3.4.0b1, 3.4.0, 3.4.1, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.6.4, 3.6.5, 3.6.6, 3.6.7, 3.6.8, 3.7.0, 3.8.0, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.2.0, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.5.0, 4.6.0, 4.7.0, 4.7.1, 4.7.2, 5.0.0, 5.0.1, 5.0.2, 5.1.0, 5.1.1, 5.1.2, 5.2.0, 5.3.0a1, 5.3.0, 5.4.0).
ERROR: No matching distribution found for zope.interface==4.6.0
As seen above the version to-be-installed is present in the from-versions list but pip still complains and errors out.
What is going wrong here ?
I am on Python 3.9.5 with pip 21.1.1
I just resolved a similar thing. You didn't paste this as part of your error message, so we may be different, but just in case:
The causative issue for me here was related to setup tools. Specifically, in the error output, I got an error ending with ImportError: cannot import name 'Feature' from 'setuptools'.
It appears that zope.interface<5.0.0 relies on a deprecated API from setuptools, so pip throws away the matching distribution once it errors out. Pinning setuptools to version 45, or using zope.interface==5.0.0 or later, should resolve this.
See https://github.com/pypa/setuptools/issues/2017.

pip3 Install delta-lake-reader[aws] fails on MacOS Mojave

I am trying to install delta-lake-reader[aws] on my MacBook Pro with MacOS Mojave and it is failing. I have Python 3.9.1 installed on my laptop.
$ pip3 install delta-lake-reader[aws]
Collecting delta-lake-reader[aws]
Using cached delta_lake_reader-0.2.2-py3-none-any.whl (7.4 kB)
Collecting pyarrow<3.0.0,>=2.0.0
Using cached pyarrow-2.0.0.tar.gz (58.9 MB)
Installing build dependencies ... |
After that it hangs for a while, then fails with a lot of errors, and finally, it gives the following output before ending:
ERROR: Cannot install delta-lake-reader[aws]==0.1.0, delta-lake-reader[aws]==0.1.1, delta-lake-reader[aws]==0.2.1 and delta-lake-reader[aws]==0.2.2 because these package versions have conflicting dependencies.
The conflict is caused by:
delta-lake-reader[aws] 0.2.2 depends on pyarrow<3.0.0 and >=2.0.0
delta-lake-reader[aws] 0.2.1 depends on pyarrow<3.0.0 and >=2.0.0
delta-lake-reader[aws] 0.1.1 depends on pyarrow<3.0.0 and >=2.0.0
delta-lake-reader[aws] 0.1.0 depends on pyarrow<3.0.0 and >=2.0.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
$
I tried uninstalling pyarrow but it installs 3.0.0 again and fails the same way.
How can I overcome this?
The problem lays in the explicit dependency, that doesn't include pyarrow 3.0.0, but requires 2.x.x version. And pyarrow 2.x.x is not compatible with Python 3.9, that's why your build fails, but it works with Python 3.8, I was able to install it with pip3.8 install 'delta-lake-reader[aws]==0.2.2'. So you have following choice:
Use Python 3.8
Download repository, and make change in the pyproject.toml to use pyarrow 3.0.0, and after that use poetry tool to build wheel
File issue in the project, and wait until author fixes it.
If you don't need additional functionality, then you can use official Delta Lake python package that could be installed with pip install deltalake command

I am not able to install tensorflow=1.4.1

Hi when I run this commands
pip install tensorflow==1.4.1
It not run and give the following error
Could not find a version that satisfies the requirement tensorflow==1.4.1 (from versions: 0.12.0rc0, 0.12.0rc1, 0.12.0, 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.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)
No matching distribution found for tensorflow==1.4.1
please tell me that how I can install in cpu
This post is probably related to Tensorflow installation on Windows.
Tensorflow 1.4.1 was not built for Windows since changes introduced between 1.4.0 and 1.4.1 do not affect the behaviour of Tensorflow on Windows platform. If you want to have a compatible version of tensorflow, version 1.4.0 seems to be a logical choice.
So if running on Windows try instead
pip install tensorflow==1.4.0
This issue has been discussed on Tensorflow issue tracker as #15342.

Resources