9

I am trying to install Twisted on a Windows 8 computer. On the official Twisted website, there is only one Wheel file for windows.

https://twistedmatrix.com/trac/wiki/Downloads

I already installed Zope and PyWin32.

But when I do :

pip install Twisted-16.0.0-cp27-none-win_amd64.whl

I get :

Twisted-16.0.0-cp27-none-win_amd64.whl is not a supported wheel on this platform

I have seen and tried the solutions of these 2 topics :

filename.whl is not supported wheel on this platform and How do I install a Python package with a .whl file?

pip is up-to-date, CPython2.7 is installed, I tried with

python -m pip intall

and

path\to\pip install

None of it worked.

What am I missing, what have I not tried ?

erjon
  • 129
  • 1
  • 3
  • 11

6 Answers6

8

Use this link. http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted.

Its a repository for unofficial modules, but works every time for me. Use win32 version.

Manish Gupta
  • 3,771
  • 9
  • 48
  • 87
2

I had the same problem too but I solved it as follow: Open the Anaconda Prompt as administrator (For Windows10: open cortana/write Anaconda Prompt/choose Run as Administrator)

You should go to the path of Anaconda, for me was like:

C:\WINDOWS\system32>cd ..
C:\WINDOWS>cd..
C:\>cd  ProgramData
C:\ProgramData>cd Anaconda3
C:\ProgramData>Anaconda3>

Then you should run the following command

C:\ProgramData>Anaconda3>conda install -c anaconda twisted

At some point it asks

Proceed ([y]/n)?

type y. Now twisted is installed.

Eric Aya
  • 68,765
  • 33
  • 165
  • 232
Monirrad
  • 375
  • 4
  • 14
1

Answering my own post.

As Rod Hyde commented, only the 64 bit version of python is officialy supported by Twisted.

Edit to answer anatoly : Under the Windows Download section of Twisted, it is written "Twisted 16.0.0 for Python 2.7 64 bits"

erjon
  • 129
  • 1
  • 3
  • 11
1

The Windows XP that was building 32-bit Twisted wheels was decommissioned, so no builds are being built. People propose to install 32-bit toolchain on 64-bit Windows builder, so they might get back soon.

See https://twistedmatrix.com/pipermail/twisted-python/2016-March/030227.html

And https://twistedmatrix.com/trac/ticket/8314

anatoly techtonik
  • 17,421
  • 8
  • 111
  • 131
1

This is very simple on windows. You need to install Twisted seperately.

Just 2 steps:

pip install pipwin
pipwin install Twisted
gurbe
  • 11
  • 1
0

The recommended way is to run pip install Twisted, preferably inside a virtualenv.

If you are installing on macOS, pip install Twisted[macos_platform] will install the macOS-specific requirements.

If you are installing on Windows, pip install Twisted[windows_platform] will install the Windows-specific requirements.

https://twistedmatrix.com/trac/wiki/Downloads

thanks u...