Pip不在Windows上安装Twisted

问题描述 投票:8回答:4

我想在Windows 8计算机上安装Twisted。在官方的Twisted网站上,只有一个用于Windows的Wheel文件。

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

我已经安装了Zope和PyWin32。

但当我这样做时:

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

我明白了:

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

我已经看过并尝试过这两个主题的解决方案:

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

pip是最新的,安装了CPython2.7,我试过了

python -m pip intall

path\to\pip install

它都没有奏效。

我错过了什么,我没有尝试过什么?

python windows pip twisted
4个回答
5
投票

使用此链接。 http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

它是非官方模块的存储库,但每次都适用于我。使用win32版本。


1
投票

回答我自己的帖子。

正如Rod Hyde评论的那样,只有64位版本的python才被Twisted官方支持。

编辑回答解剖:在Twisted的Windows下载部分下,写的是“Twisted 16.0.0 for Python 2.7 64 bits”


1
投票

构建32位Twisted轮的Windows XP已经退役,因此没有构建任何构建版本。人们建议在64位Windows构建器上安装32位工具链,这样他们很快就会回来。

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

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


0
投票

我也有同样的问题,但我解决了它如下:打开Anaconda提示作为管理员(对于Windows10:打开cortana /写Anaconda Prompt /选择Run as Administrator

你应该去Anaconda的路径,对我来说就像:

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

然后,您应该运行以下命令

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

在某些时候,它要求

Proceed ([y]/n)?

键入y。现在安装了twisted

© www.soinside.com 2019 - 2024. All rights reserved.