The same WHL file installs the prompt not supported wheel on this platform on different CentOS - python-3.x

I used pip3 download locally to download cmake-3.22.5-py2_py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.
And use pip3 install cmake-3.22.5-py2 py3-none-manylinux_2_17_x86_64.manylinux2014_ x86_64 installation succeeded.
But I use pip3 install cmake-3.22.5-py2 py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64 on other Server ,i get this : cmake-3.22.5-py2 py3-none-manylinux_2_17_x86_64.manylinux2014_ x86_64 is not a supported wheel on this platform.
Both server systems are CentOS x86_64 and python versions are 3.7.5, which are compiled from source code. Consistent compilation parameters.

Related

whl file is not a supported wheel on this platform - how can i fix?

i am currently using raspberry pi desktop, running debian in my empty laptop.
I wanna use tensorflow lite interpreter from tensorflow official website.
I typed $ python3 --version and got Python 3.7.3 ,
typed $ uname -a and got Linux raspberry 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux. this is my platform info.
and visited tensorflow lite interpreter website and downloaded compatible wheel file named
https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp37-cp37m-linux_x86_64.whl
i finally typed $ pip3 install https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp37-cp37m-linux_x86_64.whl
I cannot find any weird thing in my work, and i want your help to complete this job.
$ pip install https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp37-cp37m-linux_x86_64.whl also does not work.

python3 install of Tensorflow on Apple silicon M1

I have macOS Big Sur on a Apple Silicon M1 and I'm unable to install Tensorflow in python3.
I removed xcode python3 and installed brew arm64 python3 (x86 python3 doesn't work as well)
I checked successful 64 bis version
python3 -c "import sys; print(sys.version)" or python -c "import struct; print(struct.calcsize('P')*8)"
3.8.7 (default, Dec 30 2020, 02:09:32)
[Clang 12.0.0 (clang-1200.0.32.28)]
Can this work anyhow, or who knows, how to make this work ?
Apple M1 is a processor with an ARM64 architecture, while all pip packages of TensorFlow are compiled for the x86_64 architecture. (excluding the raspberry pi packages, but they would not be compatible with MacOs anyway).
If we look at the name of the pip packages on the install page of TensorFlow, most of them contains either x86_64 or amd64, that indicates that they are built against the x86_64 architecture.
If you want to run TensorFlow on the M1, you either need to:
compile TensorFlow from sources targeting x86_64 through Rosetta 2. Unfortunately, according to this issue on github, Rosetta 2 does not support the AVX instruction set which are enabled in the pip builds of TensorFlow, so rebuilding from source is needed.
Use the experimental support for TensorFlow on M1 developed by Apple, that you can find on this github repository. Note that, if going that way, some python packages might not be compatible/available with the M1.
Note that as of 2021/01/04, the Apple M1 is not a supported architecture by the TensorFlow team:
We currently cannot support Mac ARM. There is less than one developer than can focus on build issues on all 3 operating systems.
Hence, support has to come from the the community. There is SIG Build that focuses on build related issues on several other platforms, leaving us to only focus on the pip packages we officially bless.
Things should work better now with the TensorFlow Metal plugin.
As of Oct. 25, 2021 macOS 12 Monterey is generally available.
Steps to set up M1 for TensorFlow:
Upgrade your machine to Monterey.
If you have conda installed, uninstall it.
Then follow the instructions from Apple here.
Cleaned up below:
Download and install Conda from Miniforge:
chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh
sh ~/Downloads/Miniforge3-MacOSX-arm64.sh
source ~/miniforge3/bin/activate
In an active conda environment, install the TensorFlow dependencies, base TensorFlow, and TensorFlow metal:
conda install -c apple tensorflow-deps
pip install tensorflow-macos
pip install tensorflow-metal
You should be good to go.

How to upgrade Python3 to the latest version on Synology DSM?

Problem: How to upgrade current Python3 to the latest version?
Environment:
Server is a Synology NAS Model DS216+, DSM 6.2.2-24922 Update 4. Client is a Win 10 PC using SSH to access server via command prompt.
Have Tried:
Use Synology's Package Center installed Python 3.5.1, but can not upgrade to higher version, so uninstalled it and rebooted server.
Followed Synology forum article and installed ipkg: https://community.synology.com/enu/forum/1/post/127148
Use ipkg to install Python 3.7.1: "ipkg update"; "ipkg install python3"
Then installed pip: “wget https://bootstrap.pypa.io/get-pip.py”; “python3.7 get-pip.py”
Created symbolic link to Python3: "ln -s python3.7 python3"
Now when I type "python3", the version shows: "Python 3.7.1 (default, Nov 15 2018, 22:12:17)"
But this is still not the latest version of python 3.8.2. How can I install 3.8.2 on the server?
You should try installing entware which is very similar to ipkg (sorry, i only have a french link https://www.skyminds.net/nas-synology-installer-entware-ipkg-applications/).
When installed, just run opkg install python3 and you will have python 3.8.3 on your DS216+ (I run python 3.8.3 on my DS918+).
Then, install pip with wget https://bootstrap.pypa.io/get-pip.py and python3.8 get-pip.py.
To use it, type python3.8
Good luck and have a great day !

Python: Unable to install hdbcli library on Python 3.8 installation

Unable to install hdbcli library on Python 3.8 Windows installation.
Python version is 64-bit to be compatible with the wheel.
The "win32" in the Python console header only indicates that it is a Windows system. Actual Windows architecture is 64-bit as seen in systeminfo output.
I've tried installing:
via the wheel (link below)
via pip (pip install hdbcli)
a previous version of the library (pip install hdbcli==2.4.171)
None of which were successful.
I feel there is something obvious I'm missing
Error information:
ERROR: Could not find a version that satisfies the requirement hdbcli
(from versions: none)
ERROR: No matching distribution found for
hdbcli
Python information
version: 3.8.2
pip version: 20.0.2
Python console header: Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
System information
As from systeminfo:
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.18362 N/A Build 18362
System Type: x64-based PC
hdbcli information
hdbcli-2.4.182-cp38-cp38m-win_amd64.whl
Try to rename the file from hdbcli-2.4.182-cp38-cp38m-win_amd64.whl to hdbcli-2.4.182-cp38-cp38-win_amd64.whl and install once again with pip install hdbcli-2.4.182-cp38-cp38-win_amd64.whl
hdbcli wheels (prior to version 2.4.191) were built with old versions of pip/setuptools/wheel that use different ABI tags for Python 3.8 on Windows.
If you can't update to 2.4.191 or rename the wheel, you can work around this issue if needed by downgrading to pip 19.2.2 or lower.
These packages expect the updated 'cp38' format (only available with hdbcli 2.4.191 and later) :
setuptools >= 42.0.0
wheel >= 0.33.5
pip >= 19.2.3
In my case hbcli was not compatible with python3 beacuse I wasn't able to install hdbcli library with python 3.10. However it is compatible with python 2.7 so go ahead and install latest version of python 2.7 and see if it works
I had the same issue.
What worked for me was installing an older version of Python, namely 3.6.15 and setting it up for the project (i.e. added it as project interpreter in Pycharm).
Then, I could successfully install hdbcli.

Can't install pymssql on Manjaro - compilation issues?

I want to install pymssql in my virtual env (Python 3) in order to use it in Django app. My OS is Manjaro, I have already installed FreeTDS (and configure freetds file accordingly to Arch Wiki) and msodbcsql. However, I still can't install pymssql and here's error traceback: https://gist.github.com/szpone/0e494c388e5a105ed274da8c97b3e945
So apparently all I had to do is download the latest version of pymssql directly from git - pip install git+https://github.com/pymssql/pymssql.git. I tried this earlier, but for some reason, pip couldn't finish installation.

Resources