Issues downloading Python package via a Wheel file - python

I am trying to install the PyYAML pip package via a .whl file.
I am using Python 3.6 and I am on 64-bit Windows, hence I downloaded the following .whl file:
PyYAML-5.3.1-cp36-cp36m-win_amd64
But, when running (in the directory where I've saved the wheel file)
pip3 install -v --disable-pip-version-check --no-index --no-cache-dir --upgrade --upgrade-strategy eager pyyaml
I am getting the following:
Collecting pyarrow
0 location(s) to search for versions of pyarrow:
Could not find a version that satisfies the requirement pyarrow (from versions: )
'No matching distribution found for %s' % req
pip._internal.exceptions.DistributionNotFound: No matching distribution found for pyarrow
I've tried different permutations of pyyaml, PyYAML etc, but I'm still getting this error. There should be no compatibility / requirement issues here at all, I've unzipped the .whl file and had a look at the requirements, and they're all satisfied.
Does anyone know what could be causing this?

Related

cannot Install a pyhton package

I want to install the package existing in this repository in my anaconda enviroment
https://github.com/ChrisCummins/ProGraML
they say to use the command 'pip install -U programl'
but I keep getting this error
ERROR: Could not find a version that satisfies the requirement programl (from versions: none)
ERROR: No matching distribution found for programl
I have tried updating pip, creating another environment, cloning the programl repository and downloading the requirements.txt but to no result
I can't figure out what I'm missing

only old tensorflow version found when installing my new package from pypi [duplicate]

This question already has answers here:
Pip install from pypi works, but from testpypi fails (cannot find requirements)
(2 answers)
Closed 2 years ago.
I have put a package on test.pypi which does require tensorflow>=1.15.0. However, when I install it using
pip install -i https://test.pypi.org/simple/ kmeanstf==0.7.0a4
I get the message
Looking in indexes: https://test.pypi.org/simple/
Collecting kmeanstf==0.7.0a4
Downloading https://testfiles.pythonhosted.org/packages/75/80/faf86ac10310e12015709d9763de9c0ebcf33df1f0bc884448993001ae8e/kmeanstf-0.7.0a4-py3-none-any.whl
ERROR: Could not find a version that satisfies the requirement tensorflow>=1.15.0 (from
kmeanstf==0.7.0a4) (from versions: 0.12.1, 2.0.0a0)
ERROR: No matching distribution found for tensorflow>=1.15.0 (from kmeanstf==0.7.0a4)
However, on pypi all Versions of tensorflow are present (including 1.15.0 and 2.0.0): https://pypi.org/project/tensorflow/#history
When I lower the requirements to just 'tensorflow' (is done in kmeanstf==0.7.0a1), the version 0.12.1 from tensorflow is installed which is much too ancient for my package. It is however, one of the two versions mentioned in the above error message. Is 0.12.1 indeed the default on pypi?
What can I do here (apart from asking the users of my package to install tensorflow themselves)?
pip --version
pip 19.3.1 from
/home/.../miniconda2/envs/empty/lib/python3.6/site-packages/pip (python 3.6)
You forced the index URL to be https://test.pypi.org/simple/ so pip looks for tensorflow at https://test.pypi.org/project/tensorflow/ and there're only 2 versions that have downloadable wheels suitable for your platform.
If you want to install kmeanstf from test.pypi.org and tensorflow from pypi.org you need to provide an extra URL:
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ kmeanstf==0.7.0a4

Properly install pyodbc

All I want to do is install pyodbc. I am using python 3.4.4 and I can verify the installation is not correct since running import pyodbc causes the error ImportError: No module named 'pyodbc'. In my /Python/Scripts directory I have tried multiple times running pip install pyodbc which gives Requirement already satisfied (use --upgrade to upgrade): pyodbc in c:\python34\
lib\site-packages and after searching I believe that means it has already been installed.
Additionally I tried downloading the .whl file and installing it as pip install pyodbc-4.0.17-cp34-cp34m-win_amd64.whl which gives pyodbc-4.0.17-cp34-cp34m-win_amd64.whl is not a supported wheel on this platform.
What am I not doing that I need to do in order to get it installed properly?

how to install open cv wheel package using pip in python?

I have installed the wheels package and have the latest update of pip but when I try running pip install opencv.whl it says "opencv.whl is not a valid wheel filename". I made sure that I'm in the same directory where opencv.whl is present.
I also tried installing the .exe file of opencv but it says:
Could not find a version that satisfies the requirement opencv3 from versions:
No matching distributions found for opencv3

Can't install from pypi with pip

I am a package maintainer and have a library on pip - Django-spaghetti-and-meatballs.
Its at version 0.2.0
It is listed on pip as version 0.2.0
setup.py imports some code that clearly states it is version 0.2.0
But when users try to run pip install django-spaghetti-and-meatballs==0.2.0 they (and I) get:
legostormtroopr:~/workspace $ pip install django-spaghetti-and-meatballs==0.2.0
Downloading/unpacking django-spaghetti-and-meatballs==0.2.0
Could not find a version that satisfies the requirement django-spaghetti-and-meatballs==0.2.0 (from versions: 0.1.0, 0.1.0rc5, 0.1.1)
Cleaning up...
No distributions matching the version for django-spaghetti-and-meatballs==0.2.0
Storing debug log for failure in /home/ubuntu/.pip/pip.log
What have I done wrong?
PS. It feels a little spammy to link to the library and such, but its a problem and I felt it better to point to the problem directly.
By looking at the list at: https://pypi.python.org/simple/django-spaghetti-and-meatballs/ you could see that the wheel had not been uploaded.
Running:
python setup.py bdist_wheel upload
will rebuild the wheel and upload it.

Categories

Resources