Twisted is not a supported wheel on this platform - python

Navigate to the directory that contains the .whl file and type:
pip install Twisted-17.9.0-cp27-cp27m-win32.whl
and I got:
Twisted-17.9.0-cp27-cp27m-win32.whl is not a supported wheel on this
platform.
I also tried 64 bit version had the same error message:
pip install Twisted-17.9.0-cp27-cp27m-win_amd64.whl
I have checked:
pip install wheel
Requirement already satisfied: wheel in
c:\users\yang\appdata\local\programs\python\python36\lib\site-packages
My OS: Windows 7, 64 bit

It's so obvious. I didn't realize that this "cp27" in the file name means the python version. Twisted-17.9.0-cp27-cp27m-win32.whl is for python 2.7 but I had 3.6.

Related

Torch installation results in not supported wheel on this platform

Tried running pip3 install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html first, taken from PyTorch website
which resulted in
No matching distribution found for torch===1.4.0
and Could not find a version that satisfies the requirement torch===1.4.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
Finally downloaded the .whl file from downloads page and tried installing locally like so 'C:\Users\Raf\AppData\Local\Programs\Python\Python38\Scripts\pip.exe' install torch-1.4.0+cpu-cp37-cp37m-win_amd64.whl
after which I get torch-1.4.0+cpu-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
using 64 Python 3.8, on 64 bit Windows
using 64 Python 3.8
but you downloaded the cp37 whl which is for python 3.7. There is currently no whl file available for python 3.8. So either install from source (probably not recommended), install a different python version or create a virtual environment with python 3.7
Update
There is now: https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp38-cp38-win_amd64.whl
I faced the similar issue, even if your python version is correct you can still face this problem if you had install 32x instead of 64x
If it is 32-bit you will face the same problem.
To check the bit version of python on your system run this
python -c "import struct;print( 8 * struct.calcsize('P'))"
This will return 32 or 64
If it returns 32 change it to 64 and reinstall the PyTorch
https://www.python.org/downloads/windows/

Can't install libxml2 for python with whl file

I am having a very hard time installing libxml2. I am trying to use a wheel file to install it with the command line. I have Python 3.8 but I don't see any .whl files for Python 3.8. Do I need to use an earlier version of Python?
Here is the error when I attempt to install with the whl file in my Python folder:
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>pip install libxml2_python-2.9.3-cp27-none-win32.whl
ERROR: libxml2_python-2.9.3-cp27-none-win32.whl is not a supported wheel on this platform.
Wheel is installed:
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>python -m pip install wheel
Requirement already satisfied: wheel in c:\users\jack\appdata\local\programs\python\python38-32\lib\site-packages (0.33.6)
And here is some more info:
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>where python
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32\python.exe
C:\Users\Jack\Anaconda3\python.exe
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>where pip
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe
C:\Users\Jack\Anaconda3\Scripts\pip.exe
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>where pip3
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32\Scripts\pip3.exe
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>python -c"import struct;print( 8 * struct.calcsize('P'))"
32
The .whl file is valid for python 2 not 3.

Python3.6 can't install latest version of yoyo-migrations

I want to install the latest version of yoyo-migrations module.
Based on https://pypi.org/project/yoyo-migrations/ the latest version is 5.1.0 and when I try to install it using pip install yoyo-migrations it installs the v5.0.5 and when using this command pip install yoyo-migrations==5.1.0 it gives me this error.
Collecting yoyo-migrations==5.1.0 Could not find a version that
satisfies the requirement yoyo-migrations==5.1.0 (from versions: 1, 2,
3, 4, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.2.0, 4.2.1,
4.2.2, 4.2.3, 4.2.4, 4.2.5, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.5) No matching distribution found for yoyo-migrations==5.1.0
If you look at the files for that version here you will see that the only available file for that version is
yoyo_migrations-5.1.0-py2-none-any.whl (42.1 kB)
The py2 part indicates that this wheel is only good for python2, and not your version of python3, so pip is correct when it tells you that it can't find a suitable version. However, the version you're trying to download is only a few hours old, perhaps there will be additional files there soon.
Or you can install the develop version.
pip install -e hg+https://bitbucket.org/ollyc/yoyo#egg=yoyo-migrations

PyHook for Python 3.6

Hello does anyone have succeded in installing pyHook on the last python version
C:\Users\T>python --version
Python 3.6.4
C:\Users\T>pip install pyHook
Collecting pyHook Could not find a version that satisfies the requirement pyHook (from versions: ) No matching distribution found for pyHook
C:\Users\T>pip install pyHook-1.5.1-cp36-cp36m-win_amd64.whl
pyHook-1.5.1-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
Everythingi've try so far are not working at all.
1) You're gonna wanna visit https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook download the version with "36" in the name.
2) Open cmd, git cmd, or git bash,
*On cmd change directory into the location where pip and the whl file are stored, type pip install (whl name with 36 in the version name)
*git cmd is the same thing
*On git bash, cd into the directory with the whl and pip and type ./pip install (whl name)
I had the same problem as you, but it turned out the only problem was the file version I was downloading. Make sure you're downloading the version that's compatible with the Python you're using.

Installing Pillow on Python 2.7

When I try to install Pillow (as a wheel file)
C:\Python27\Scripts>pip install C:\Users\karth\Desktop\Pillow-3.4.2-cp36-cp36m-win_amd64.whl
I get the following error.
Pillow-3.4.2-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
You have a wheel file which is expecting a different Python version.
The cp36, indicates CPython 3.6, i.e. Python 3.6. You are running Python 2.7.
Either update your Python version, or more suitably, get a wheel file of the correct version from PyPi https://pypi.python.org/pypi/Pillow/4.0.0

Categories