Python - pip install not found matching version - python

I have a machine in CentOS 6.9 which for various reasons I am forced to use, with python2.6.6 . When I try to download a library with pip I try:
sudo -E pip install someLibrary
and I get for pandas for example
Could not find a version that satisfies the requirement pandas (from
versions: ) No matching distribution found for pandas
I suspect that it has to do with the version of python I use and that the repositories have been moved or whatever. Any ideas?

pip install someLibrary
…
No matching distribution found for pandas
Hehe, failed obfuscation. :-))) Next time try harder… if you don't want an answer…
Well, pandas doesn't support Python 2.6, only 2.7+.
Version 0.17.1 seems to be the last one that supported Python 2.6. Install with pip
pip install pandas==0.17.1
or from sources.

Related

can't install mediapipe? python 3.8

I have tried to use pip install mediapipe, and other similar methods of pip install to install mediapipe as i need it for one of my projects. I am stumped and don't know what to do anymore. I have python 3.8 and the latest version of pip.
This is the error I keep getting:
ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe
you can specify the specific version of the lib
such as:
pip install mediapipe==0.8.9.1 (the version which you want.)
You have to change the python version to 3.7 with 64bit then only you can install it
if you can create a virtual environment for it as well so that will do great

No matching distribution found for torch==1.3.0 while installing PTAN

I tried to install PTAN liblary using pip
python -m pip install PTAN==0.6
But it shows error
ERROR: Could not find a version that satisfies the requirement torch==1.3.0 (from ptan)
ERROR: No matching distribution found for torch==1.3.0
I can install it by running:
python -m pip install PTAN
But then I get old version of this.
How to install current version of PTAN without errors?
I'm using Linux ubuntu and Python 3.8
ptan 0.6 is broken at the time being. The issue is that the dependencies are requiring exact versions of the same package (torch in this case) which pip cannot handle as it uninstalls the previous version.
I tried finding what other package was requiring a version of torch that's not version 1.3.0 but I couldn't find it, maybe somebody else could find it, not that it matters too much for us though.
Your best bet is to install the older version of ptan which is 0.4 released July 1:st 2020.
pip install ptan==0.4

Python Installing Modules on Mac OS

I am new to Python and terminal prompts/installs and I keep running into installation errors when trying to install modules like Pandas.
I have successfully installed "pip install pandas"
I am unable to install this with pip3 however.
Collecting pandas
Could not find a version that satisfies the requirement pandas (from versions: )
No matching distribution found for pandas
I have pip3 installed and python3(this comes with mac os).
I do not understand the conflict between the versions. If I install using pip, its only compatible with python2?
Why wouldnt I be able to install it using pip3 (see error above)?
Am I somehow installing in the wrong directories or not making the correct distinction for python3 and pip3 version compatibility? Thanks for any insight.
As already said in the comments, pip installs modules for python2. Also, you can't run pandas as a command on the shell.
pip3 install pandas works for me, on python3 (v3.7.4), which was installed directly from a Mac installer package on the python website. No 'environment configuration' was required.
>pip3 install pandas
Collecting pandas
Downloading https://files.pythonhosted.org/packages/ab/ba/f97030b7e8ec0a981abdca173de4e727b3a7b4ed5dba492f362ba87d59a2/pandas-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (9.8MB)
100% |████████████████████████████████| 9.8MB 2.8MB/s
If you've installed python3 using some different method, then you may need to install packages differently or configure your python installation in some way.

Can all/most python pip packages be installed using pypy3?

I am able to install the python3 package of forexconnect using:
python3 -m pip install forexconnect
but when I try to install it for pypy using:
pypy3 -m pip install forexconnect
I get the following error,
ERROR: Could not find a version that satisfies the requirement forexconnect (from versions: none)
ERROR: No matching distribution found for forexconnect
I have looked through the pypy documentation and can't work out what I need to do now. Perhaps I need to re-compile/rebuild the library but unfortunately my knowledge of python isn't good enough to understand what is probably quite straight-forward.
Please, does anyone know what is going on here and what needs to be done?
forexeconnect does not release a source tarball, so they must build a binary version for each python version they wish to support and upload that to PyPI. Most packages will release a source tarball and upload that to PyPI, then pip install can build the binary package from source. In this case, the package provider (assuming they do not want to release the source) would have to build a version for PyPy, there is nothing pip nor PyPy can do.
To see supported versions by pip try
pip install forexconnect==0
Then you can set specifical version with
pip install forexconnect==versionnumber

Installing VTK with pip

I'm using Python 3.7 on Arch Linux.
I've been trying to install Mayavi with pip but it always fails when installing vtk. So I found out that even when trying to install vtk by itself via pip (which should work) that vtk is really not installing. I get this error:
$ sudo pip3 install vtk
Collecting vtk
Could not find a version that satisfies the requirement vtk (from versions: )
No matching distribution found for vtk
This seems like a very dumb error on my part, but I really can't understand what's going on. VTK should be compatible with Py3 now as far as I know. pip was installed with get-pip.py and everything else has always worked perfectly.
Curiously enough, pip2 install vtk mayavi works.
Any ideas?
PS.: I'm avoiding creating a separate environment for work-related issues.
EDIT
I did the manual approach:
$ wget https://pypi.python.org/packages/13/7f/735fbc0dd78c91ad3693cfdfe5c91603899fc8e24909f935d46d2fde6559/vtk-8.1.0-cp27-cp27mu-manylinux1_x86_64.whl
$ sudo pip3 install vtk-8.1.0-cp27-cp27mu-manylinux1_x86_64.whl
vtk-8.1.0-cp27-cp27mu-manylinux1_x86_64.whl is not a supported wheel on this platform.
Which I don't know what's causing. I've tried to follow this answer but I can't make the first pep command work.
Could not find a version that satisfies the requirement vtk (from versions: )
Among the currently released files there are no binaries for Python 2.7 and there is source code. Either you should try a different version of Python (2.7, 3.4-3.6) or compile/install VTK from sources.
vtk-8.1.0-cp27-cp27mu-manylinux1_x86_64.whl is not a supported wheel on this platform.
You're trying to install a Python 2.7 binary wheel for Python 3.7. That's impossible.
The wheel has not been published on pip yet, you can download and install one from vtk.org directly : https://vtk.org/download/
You can manually compile the VTK version packages you want and put them in the dist-Packages directory.I have a specific method.

Categories