Verifying the Python package compatibility of PIP - python

Previously, I installed a specific Python package.
My Python environment was version 3.5.9, and the package I was going to install was as follows.
I have a NEXUS Repository
I upload and use python packages that I like to use in the repository.
I used it normally and uploaded additional latest versions of some packages.
After that, there was a Python package installation error.
↓ The following is the installation log of llvmlite
Collecting llvmlite>=0.28.0dev0 (from numba==0.43.1->-r /tmp/requirements.txt (line 6))
1 location(s) to search for versions of llvmlite:
* http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/
Getting page http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/
http://10.253.225.6:8081 "GET /repository/pypi-repo/simple/llvmlite/ HTTP/1.1" 200 2914
Analyzing links from page http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/
Found link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.36.0/llvmlite-0.36.0.tar.gz#md5=0af63891993526bee21eaa408ce56cfe (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/), version: 0.36.0
Found link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0.tar.gz#md5=2e0b4586a8c8c1981ce49e837bf70781 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/), version: 0.28.0
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp37-cp37m-manylinux1_x86_64.whl#md5=6588594ad55a67f248d31712a716654d (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp37-cp37m-manylinux1_i686.whl#md5=746127c2493947a8437bfe0c324ebc72 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp36-cp36m-manylinux1_x86_64.whl#md5=10191b37db21e01beb0ee5895f12f85f (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp36-cp36m-manylinux1_i686.whl#md5=90ed888ae45fd95306646dcbb22d0a8f (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Found link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp35-cp35m-manylinux1_x86_64.whl#md5=7cef11f191acb58c5149bfad3ee9fd01 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/), version: 0.28.0
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp35-cp35m-manylinux1_i686.whl#md5=108739fdcde2547d10d120ba405171c9 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp27-cp27mu-manylinux1_x86_64.whl#md5=4ad41048e28167b63486edb1f0f40d56 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp27-cp27mu-manylinux1_i686.whl#md5=f1c00bc8a7914303654a333f8f7f4508 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-1-cp37-cp37m-manylinux1_x86_64.whl#md5=f1799c47f721b0655a8f5d42fdbcad6d (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-1-cp36-cp36m-manylinux1_x86_64.whl#md5=145fbb53ebc081144a3d775f0908f5a4 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Found link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-1-cp35-cp35m-manylinux1_x86_64.whl#md5=41a71b4f6c607c1f00a89fa61e81e13f (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/), version: 0.28.0
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-1-cp27-cp27mu-manylinux1_x86_64.whl#md5=5ecda86d4835aae6f6d326c88d938e17 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Using version 0.36.0 (newest of versions: 0.28.0, 0.36.0)
pip found that there were two versions of the installable package. (0.28.0, 0.36.0)
However, since 0.36.0 is a newer version, a message popped up saying that 0.36.0 will be
installed, and I installed 0.36.0 version.
Using version 0.36.0 (newest of versions: 0.28.0, 0.36.0)
As shown in the log above, llvmlit/0.36.0 of the first "Found link" should not be adopted.
The reason is that 0.36.0 can only be installed in Python 3.6.x versions or higher.
I wonder why pip recognized version 0.36.0 as an installable package.
That's why I tried to investigate pip's official github source code,
but I can't find which source code is the file that checks python package compatibility.
I want to see the source code verifying the Python package compatibility of PIP
Where and how can I find the source code where the pip checks the compatibility of the Python package?
(I want to analyze the source code accurately and know exactly why that package was adopted as an installable package.)
thank you

Related

Getting error in Could not find a version that satisfies the requirement conda==4.8.4 while downloading package from requirement.txt?

I am trying to install all the required packages of the project from requirement.txt but I get lot of similar errors like I am using python 3.9.1
ERROR: Could not find a version that satisfies the requirement conda==4.8.4 (from versions: 3.0.6, 3.5.0, 3.7.0, 3.17.0, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.7, 4.0.8, 4.0.9, 4.1.2, 4.1.6, 4.2.6, 4.2.7, 4.3.13, 4.3.16)
ERROR: No matching distribution found for conda==4.8.4
also there are package name like
backports.functools-lru-cache # file:///tmp/build/80754af9/backports.functools_lru_cache_1605305165209/work
how to install these kind of packages ?

How do I install tables module to run?

I am trying to run some code written by a collaborator in Python 2 which requires the tables module. I have checked that tables is installed by importing it successfully in a Python 3 shell at the command line but when I do the same for Python 2, there is no module named tables.
All answers I have found so far don't seem to solve my issue, any ideas?
Cheers :)
Try download the package with
pip install tables==3.5.2 -- Python 2
Also, follow this issue on GitHub regarding this at #772
It's not recommended to use python2 as the end of its life on January
1st, 2020, Please consider visiting this documentation Migrating
from PyTables 2.x to 3.x
Use Command - pip install tables
C:\Python27\Scripts>pip.exe install tables
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting tables
Downloading https://files.pythonhosted.org/packages/84/86/34604cfd8e79d23ffef7f1c0ab134ddb98da572d0fcb9cb4631d5b47f549/tables-3.5.2-cp27-cp27m-win_amd64.whl (3.5MB)
|UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 3.5MB 787kB/s
Collecting numexpr>=2.6.2
Downloading https://files.pythonhosted.org/packages/45/d3/5997f8c7d48d4947665c7e7dfaabc3076da85390faf015288e39f242d520/numexpr-2.7.0-cp27-none-win_amd64.whl (106kB)
|UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 112kB 3.4MB/s
Requirement already satisfied: six>=1.9.0 in c:\python27\lib\site-packages (from tables) (1.12.0)
Requirement already satisfied: numpy>=1.9.3 in c:\python27\lib\site-packages (from tables) (1.16.5)
Collecting mock>=2.0
Downloading https://files.pythonhosted.org/packages/05/d2/f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9/mock-3.0.5-py2.py3-none-any.whl
Collecting funcsigs>=1; python_version < "3.3"
Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Installing collected packages: numexpr, funcsigs, mock, tables
WARNING: The scripts pt2to3.exe, ptdump.exe, ptrepack.exe and pttree.exe are installed in 'c:\python27\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed funcsigs-1.0.2 mock-3.0.5 numexpr-2.7.0 tables-3.5.2
C:\Python27\Scripts>

PyPI package update not upgradable

I have uploaded a module on PyPI and I had recently added version 0.2 of the module on PyPI.
When I try to upgrade the module using pip, I get an error.
~/Desktop pip install musicnow==0.2
Collecting musicnow==0.2
Could not find a version that satisfies the requirement musicnow==0.2 (from versions: 0.1)
No matching distribution found for musicnow==0.2
Even though on PyPI it shows that I have version 0.2
I use this command to upload upgrades of my module : $ python setup.py register sdist upload

Are python packages version specific?

I ma trying to install https://pypi.python.org/pypi/python-epo-ops-client
I tried installing it from pip from both latest version.
python 2.7.12 and
python 3.5.2
for both of the version it says
C:\Users\me>pip install python-epo-ops-client 2.1.0
Collecting python-epo-ops-client
Using cached python_epo_ops_client-2.1.0-py2.py3-none-any.whl
Collecting 2.1.0
Could not find a version that satisfies the requirement 2.1.0 (from versions:
)
No matching distribution found for 2.1.0
As I am completely new to python, question is:
1) Do I need to install all python version to see which version above module is compatible with?
Or
2) can I know which version of python will be compatible with above version?
I want to install python for above package only. please suggest.
You are having space between python-epo-ops-client & 2.1.0, so it is trying to install two packages.
(1) python-epo-ops-client and
(2) 2.1.0, but there isn't any package named "2.1.0"
To install specific version you need to mention ==.
pip install python-epo-ops-client==2.1.0

python pip instal apns 0.2.1

I'm trying to use apns-client 0.2.1 but I only get an error message.
22:56:01 $ pip install apnsclient==0.2.1
Collecting apnsclient==0.2.1
Could not find a version that satisfies the requirement apnsclient==0.2.1 (from versions: 0.1)
No matching distribution found for apnsclient==0.2.1
How can I install 0.2.1 version and then save it in requirements.txt? I need it in this way because my hosting use this file too.
The package is called apns-client, notice the dash.
pip install apns-client

Categories