Python Pip 不会在 Windows 上安装 Twisted
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36279141/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Pip doesn't install Twisted on Windows
提问by erjon
I am trying to install Twisted on a Windows 8 computer. On the official Twisted website, there is only one Wheel file for windows.
我正在尝试在 Windows 8 计算机上安装 Twisted。在官方 Twisted 网站上,windows 只有一个 Wheel 文件。
https://twistedmatrix.com/trac/wiki/Downloads
https://twistedmatrix.com/trac/wiki/Downloads
I already installed Zope and PyWin32.
我已经安装了 Zope 和 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 platformand How do I install a Python package with a .whl file?
filename.whl 在此平台上不受支持,如何安装带有 .whl 文件的 Python 包?
pip is up-to-date, CPython2.7 is installed, I tried with
pip 是最新的,安装了 CPython2.7,我试过
python -m pip intall
and
和
path\to\pip install
None of it worked.
它都没有奏效。
What am I missing, what have I not tried ?
我错过了什么,我还没有尝试过什么?
采纳答案by erjon
Answering my own post.
回答我自己的帖子。
As Rod Hyde commented, only the 64 bit version of python is officialy supported by Twisted.
正如 Rod Hyde 评论的那样,Twisted 只支持 64 位版本的 Python。
Edit to answer anatoly : Under the Windows Download section of Twisted, it is written "Twisted 16.0.0 for Python 2.7 64 bits"
编辑回答 anatoly :在 Twisted 的 Windows 下载部分,它被写成“Twisted 16.0.0 for Python 2.7 64 bits”
回答by Manish Gupta
Use this link. http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted.
使用此链接。http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted。
Its a repository for unofficial modules, but works every time for me. Use win32 version.
它是非官方模块的存储库,但每次都对我有用。使用win32版本。
回答by anatoly techtonik
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.
构建 32 位 Twisted Wheels 的 Windows XP 已退役,因此没有构建构建。人们建议在 64 位 Windows builder 上安装 32 位工具链,这样他们可能很快就会回来。
See https://twistedmatrix.com/pipermail/twisted-python/2016-March/030227.html
见https://twistedmatrix.com/pipermail/twisted-python/2016-March/030227.html
回答by Monirrad
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
)
我也遇到了同样的问题,但我解决了以下问题:以管理员身份打开 Anaconda Prompt(对于Windows10
:open cortana
/write Anaconda Prompt
/choose Run as Administrator
)
You should go to the path of Anaconda, for me was like:
你应该走 Anaconda 的道路,对我来说就像:
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.
输入y
. 现在twisted
安装好了。