2017-02-16 56 views
2

當我在Windows中運行安裝扭曲着蟒蛇3.5的virtualenv使用PIP

pip install twisted 
在命令行

,它開始安裝軟件包,直到在流路出現。

failed building wheel for twisted 

pip然後很快崩潰,說它安裝失敗。

這是爲什麼?

有沒有辦法繞過它來安裝扭曲?

我輪的版本是0.29,窗口10.扭曲將安裝2.7

感謝

回答

0

基本上罰款蟒蛇,這是不是一個編程的問題(我覺得還不如很好地成爲https://superuser.com/https://serverfault.com/) 。

您能否提供更多信息? 你在運行什麼操作系統?什麼版本?

爲了便於比較,我運行Debian GNU/Linux的(測試),並

pip3 install twisted 

進行罰款:

collecting twisted 
    Using cached Twisted-17.1.0.tar.bz2 
Collecting zope.interface>=4.0.2 (from twisted) 
    Using cached zope.interface-4.3.3.tar.gz 
Collecting constantly>=15.1 (from twisted) 
    Downloading constantly-15.1.0-py2.py3-none-any.whl 
Collecting incremental>=16.10.1 (from twisted) 
    Downloading incremental-16.10.1-py2.py3-none-any.whl 
Collecting Automat>=0.3.0 (from twisted) 
    Using cached Automat-0.5.0-py2.py3-none-any.whl 
Requirement already satisfied: setuptools in /usr/local/lib/python3.5/dist-packages (from zope.interface>=4.0.2->twisted) 
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from Automat>=0.3.0->twisted) 
Collecting attrs (from Automat>=0.3.0->twisted) 
    Using cached attrs-16.3.0-py2.py3-none-any.whl 
Requirement already satisfied: packaging>=16.8 in /usr/local/lib/python3.5/dist-packages (from setuptools->zope.interface>=4.0.2->twisted) 
Requirement already satisfied: appdirs>=1.4.0 in /usr/local/lib/python3.5/dist-packages (from setuptools->zope.interface>=4.0.2->twisted) 
Requirement already satisfied: pyparsing in /usr/local/lib/python3.5/dist-packages (from packaging>=16.8->setuptools->zope.interface>=4.0.2->twisted) 
Building wheels for collected packages: twisted, zope.interface 
    Running setup.py bdist_wheel for twisted ... done 
    Stored in directory: /root/.cache/pip/wheels/65/e3/44/cd3da92c03926aabc80e658e11d6e64619abce3ef44c1c34df 
    Running setup.py bdist_wheel for zope.interface ... done 
    Stored in directory: /root/.cache/pip/wheels/00/aa/8b/f1d1eb398423e59894b45ee151344e243808156c2d182c9f4e 
Successfully built twisted zope.interface 
Installing collected packages: zope.interface, constantly, incremental, attrs, Automat, twisted 
Successfully installed Automat-0.5.0 attrs-16.3.0 constantly-15.1.0 incremental-16.10.1 twisted-17.1.0 zope.interface-4.3.3 

我必須承認,這種安裝是的virtualenv外完成。 您是否嘗試在virtualenv之外安裝twisted

+0

嗨,感謝您的評論!,我正在使用Windows 10. –

+0

我試過在我的virtualenv之外安裝它,但仍然無法正常工作 –

+0

它也可以安裝Python 2.7 –

3

我遇到類似的問題,像yours.You可以嘗試安裝絞輪絲毫

但首先,你應該安裝車輪

pip install wheels 

那麼,從這個

下載相應版本

網站:http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

你可以得到xxxx.whl文件

使用

pip install xxxx/xxxxxx.whl

完成!