Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip doesn't install Twisted on Windows

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 ?

like image 272
erjon Avatar asked Mar 29 '16 08:03

erjon


4 Answers

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

Just 2 steps:

pip install pipwin
pipwin install Twisted
like image 64
gurbe Avatar answered Oct 10 '22 00:10

gurbe


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.

like image 8
Manish Gupta Avatar answered Oct 30 '22 04:10

Manish Gupta


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.

like image 2
Monirrad Avatar answered Oct 30 '22 03:10

Monirrad


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"

like image 1
erjon Avatar answered Oct 30 '22 03:10

erjon