I am part of a small team that is trying to install Python's 'fancyimpute' package. Three of us have different Windows machines. One of us has Mac.
fancyimpute's page says: 'Operating System :: OS Independent'.
My teammate has no problems installing it on his Mac: pip install fancyimpute works as it should.
When we, Windows users, try to do the same, we are getting this error:
"error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools"
One we've installed "Visual C++ 2015 Build Tools", we still can't install fancyimpute. The error we are getting is as following:
'NAN'
ecos/src/ecos.c(1093): warning C4013: '_set_output_format' undefined; assuming extern returning int
ecos/src/ecos.c(1093): error C2065: '_TWO_DIGIT_EXPONENT': undeclared identifier
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
Failed building wheel for ecos
Is it possible that it's a hopeless case for Windows machine owners? Or is there a solution?
I have just installed fancyimpute on windows 10 machine and it was successful. Can you please try running pip command from command prompt in case if you're doing it from pycharm console.
C:\Users\USER>pip install fancyimpute
Collecting fancyimpute
Downloading fancyimpute-0.2.0.tar.gz
Requirement already satisfied: six in c:\python27\lib\site-packages (from fancyimpute)
Collecting knnimpute (from fancyimpute)
Downloading knnimpute-0.1.0.tar.gz
Requirement already satisfied: numpy>=1.10 in c:\python27\lib\site-packages (from fancyimpute)
Requirement already satisfied: scipy in c:\python27\lib\site-packages (from fancyimpute)
Collecting cvxpy (from fancyimpute)
Downloading cvxpy-0.4.11-py2-none-any.whl (379kB)
100% |################################| 389kB 439kB/s
Requirement already satisfied: scikit-learn>=0.17.1 in c:\python27\lib\site-packages (from fancyimpute)
Collecting downhill (from fancyimpute)
Downloading downhill-0.4.0-py2.py3-none-any.whl
Collecting climate (from fancyimpute)
Downloading climate-0.4.6.tar.gz
Collecting theano (from fancyimpute)
Downloading Theano-0.9.0.tar.gz (3.1MB)
100% |################################| 3.1MB 65kB/s
Collecting ecos>=2 (from cvxpy->fancyimpute)
Downloading ecos-2.0.4-cp27-none-win32.whl (44kB)
100% |################################| 51kB 96kB/s
Collecting CVXcanon>=0.0.22 (from cvxpy->fancyimpute)
Downloading CVXcanon-0.1.1.tar.gz (694kB)
100% |################################| 696kB 105kB/s
Requirement already satisfied: toolz in c:\python27\lib\site-packages (from cvxpy->fancyimpute)
Collecting fastcache (from cvxpy->fancyimpute)
Downloading fastcache-1.0.2.tar.gz
Collecting multiprocess (from cvxpy->fancyimpute)
Downloading multiprocess-0.70.5.zip (1.5MB)
100% |################################| 1.5MB 73kB/s
Collecting scs>=1.1.3 (from cvxpy->fancyimpute)
Downloading scs-1.2.7.tar.gz (280kB)
100% |################################| 286kB 107kB/s
Requirement already satisfied: click in c:\python27\lib\site-packages (from downhill->fancyimpute)
Collecting plac (from climate->fancyimpute)
Downloading plac-0.9.6-py2.py3-none-any.whl
Collecting dill>=0.2.6 (from multiprocess->cvxpy->fancyimpute)
Downloading dill-0.2.7.1.tar.gz (64kB)
100% |################################| 71kB 109kB/s
Collecting pyreadline>=1.7.1 (from dill>=0.2.6->multiprocess->cvxpy->fancyimpute)
Downloading pyreadline-2.1.zip (109kB)
100% |################################| 112kB 127kB/s
Building wheels for collected packages: fancyimpute, knnimpute, climate, theano, CVXcanon, fastcache, multiprocess, scs, dill, pyreadline
Running setup.py bdist_wheel for fancyimpute ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\46\9d\78\a49d65bb66557f705de636d1a21f9310993a4342670add3f9e
Running setup.py bdist_wheel for knnimpute ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\66\a0\1c\ed41cf540d0bd6d4ae368e9554b77753da154e7d8974c4435f
Running setup.py bdist_wheel for climate ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\90\1f\17\51ca46dd7c3b0be854c63468b50b3d24c443d149244cc4bb19
Running setup.py bdist_wheel for theano ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\d5\5b\93\433299b86e3e9b25f0f600e4e4ebf18e38eb7534ea518eba13
Running setup.py bdist_wheel for CVXcanon ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\1b\f6\dd\14f66c64621bddd6b92a3cfc995fa2a21b134fcf4122402b30
Running setup.py bdist_wheel for fastcache ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\1b\ce\51\0614c8aaab5c0893ed5a2098a15673a4949cba59cfa04ceace
Running setup.py bdist_wheel for multiprocess ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\28\ef\9f\5cc70b5d92fc4641b68dc23b3583f2b6ec1d153cb71985aeaf
Running setup.py bdist_wheel for scs ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\de\bb\5c\5efaf95dbe8b2a87650a9a1061aeefcd5b16353b98afbac789
Running setup.py bdist_wheel for dill ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\e5\88\fe\7e290ce5bb39d531eb9bee5cf254ba1c3e3c7ba3339ce67bee
Running setup.py bdist_wheel for pyreadline ... done
Stored in directory: C:\Users\USER\AppData\Local\pip\Cache\wheels\9a\c7\45\fd424eb3d7875d7a61221accd593e17c7953ed5ece5ee60be9
Successfully built fancyimpute knnimpute climate theano CVXcanon fastcache multiprocess scs dill pyreadline
Installing collected packages: knnimpute, ecos, CVXcanon, fastcache, pyreadline, dill, multiprocess, scs, cvxpy, theano, downhill, plac, climate, fancyimpute
Successfully installed CVXcanon-0.1.1 climate-0.4.6 cvxpy-0.4.11 dill-0.2.7.1 downhill-0.4.0 ecos-2.0.4 fancyimpute-0.2.0 fastcache-1.0.2 knnimpute-0.1.0 multiprocess-0.70.5 plac-0.9.6 pyreadline-2.1 scs-1.2.7 theano-0.9.0
I found the solution here: Fancyimpute pip install error
Solved the problem by manually downloading the appropriate .whl file (Python version and Windows architecture): Windows binaries
Navigated to the downloaded file (in terminal) and ran pip install filename.whl.
Related
In base environment I have already installed fastquant package
but after creating and activating new conda environment I am not able to install the fastquant package.
I already have pandas 1.5.2
but when I install fastquant it is trying to install pandas 1.1.5 as it is a dependency
Collecting fastquant
Using cached fastquant-0.1.8.0-py3-none-any.whl (5.9 MB)
Collecting oauthlib>=3.1.0
Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Collecting chardet>=3.0.4
Using cached chardet-5.1.0-py3-none-any.whl (199 kB)
Requirement already satisfied: tqdm>=4.28.1 in c:\users\11832\anaconda3\envs\fbprophetenv\lib\site-packages (from fastquant) (4.64.1)
Requirement already satisfied: six>=1.13.0 in c:\users\11832\anaconda3\envs\fbprophetenv\lib\site-packages (from fastquant) (1.16.0)
Collecting tweepy>=3.8.0
Using cached tweepy-4.12.1-py3-none-any.whl (101 kB)
Requirement already satisfied: soupsieve>=1.9.5 in c:\users\11832\anaconda3\envs\fbprophetenv\lib\site-packages (from fastquant) (2.3.2.post1)
Collecting black>=19.10b0
Using cached black-23.1a1-cp310-cp310-win_amd64.whl (1.2 MB)
Collecting nltk>=3.5
Using cached nltk-3.8-py3-none-any.whl (1.5 MB)
Requirement already satisfied: urllib3>=1.25.7 in c:\users\11832\anaconda3\envs\fbprophetenv\lib\site-packages (from fastquant) (1.26.13)
Requirement already satisfied: certifi>=2019.11.28 in c:\users\11832\anaconda3\envs\fbprophetenv\lib\site-packages (from fastquant) (2022.12.7)
Collecting pandas==1.1.5
Using cached pandas-1.1.5.tar.gz (5.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... \
but is it failing after this with following error:
creating build\lib.win-amd64-cpython-310\pandas\_libs\tslibs
copying pandas\_libs\tslibs\__init__.py -> build\lib.win-amd64-cpython-310\pandas\_libs\tslibs
creating build\lib.win-amd64-cpython-310\pandas\_libs\window
copying pandas\_libs\window\__init__.py -> build\lib.win-amd64-cpython-310\pandas\_libs\window
creating build\lib.win-amd64-cpython-310\pandas\io\formats\templates
copying pandas\io\formats\templates\html.tpl -> build\lib.win-amd64-cpython-310\pandas\io\formats\templates
UPDATING build\lib.win-amd64-cpython-310\pandas/_version.py
set build\lib.win-amd64-cpython-310\pandas/_version.py to '1.1.5'
running build_ext
building 'pandas._libs.algos' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pandas
Failed to build pandas
ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects
The PyPI package has the version of pandas pinned to 1.1.5, it is probably a mistake. The current version of python/requirements.txt in the github repo has it as pandas >= 1.1.5.
You can raise an issue on the github repo to report it. In the mean time, you can install Pandas 1.1.5 using conda before you install fastquant.
conda install pandas==1.1.5
I am trying to use DeepAR for forecasting time series. I install gluonts, but when i import the module i get the error with absence mxnet.
Use python version 3.9.7, numpy version 1.20.3
As I understand it, the error is related to the version? mxnet install only with numpy 1.16.6?
Error wit install mxnet:
Collecting mxnet
Using cached mxnet-1.7.0.post2-py2.py3-none-win_amd64.whl (33.1 MB)
Collecting graphviz<0.9.0,>=0.8.1
Using cached graphviz-0.8.4-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: requests<2.19.0,>=2.18.4 in c:\users\tred1\anaconda3\lib\site-packages (from mxnet) (2.18.4)
Collecting numpy<1.17.0,>=1.8.2
Using cached numpy-1.16.6.zip (5.1 MB)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\tred1\anaconda3\lib\site-packages (from requests<2.19.0,>=2.18.4->mxnet) (2021.10.8)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\tred1\anaconda3\lib\site-packages (from requests<2.19.0,>=2.18.4->mxnet) (1.22)
Requirement already satisfied: idna<2.7,>=2.5 in c:\users\tred1\anaconda3\lib\site-packages (from requests<2.19.0,>=2.18.4->mxnet) (2.6)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\tred1\anaconda3\lib\site-packages (from requests<2.19.0,>=2.18.4->mxnet) (3.0.4)
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status 'error'
Running setup.py clean for numpy
Failed to build numpy
Installing collected packages: numpy, graphviz, mxnet
Attempting uninstall: numpy
Found existing installation: numpy 1.20.3
Uninstalling numpy-1.20.3:
Successfully uninstalled numpy-1.20.3
Running setup.py install for numpy: started
Running setup.py install for numpy: finished with status 'error'
Rolling back uninstall of numpy
Moving to c:\users\tred1\anaconda3\lib\site-packages\numpy-1.20.3.dist-info\
from C:\Users\tred1\anaconda3\Lib\site-packages\~umpy-1.20.3.dist-info
Moving to c:\users\tred1\anaconda3\lib\site-packages\numpy\
from C:\Users\tred1\anaconda3\Lib\site-packages\~umpy
Moving to c:\users\tred1\anaconda3\scripts\f2py-script.py
from C:\Users\tred1\AppData\Local\Temp\pip-uninstall-5bceooxs\f2py-script.py
Moving to c:\users\tred1\anaconda3\scripts\f2py.exe
from C:\Users\tred1\AppData\Local\Temp\pip-uninstall-5bceooxs\f2py.exe
Note: you may need to restart the kernel to use updated packages
The interpreter configuration in pycharm became invalid for some reason so I created a new virtual environment for the project that I was working on, and installed the dependencies again. But I am having trouble in installing bcrypt again. Here's the complete error. The project was working fine with the previous interpreter so I doubt that the python version has anything to do with it. I tried installing wheel as well as the error said could not build wheels but that didn't do the job as well.
The complete error:
Collecting flask-bcrypt
Using cached https://files.pythonhosted.org/packages/1d/c0/6d4c04d007d72b355de24e7a223978d1a95732245f
9e9becbf45d3024bf8/Flask-Bcrypt-0.7.1.tar.gz
Requirement already satisfied: Flask in c:\users\User\appdata\local\programs\python\python38-3
2\lib\site-packages (from flask-bcrypt) (1.1.2)
Collecting bcrypt (from flask-bcrypt)
Using cached https://files.pythonhosted.org/packages/d8/ba/21c475ead997ee21502d30f76fd93ad8d5858d19a3
fad7cd153de698c4dd/bcrypt-3.2.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: Jinja2>=2.10.1 in c:\users\User\appdata\local\programs\python\p
ython38-32\lib\site-packages (from Flask->flask-bcrypt) (2.11.2)
Requirement already satisfied: Werkzeug>=0.15 in c:\users\User\appdata\local\programs\python\p
ython38-32\lib\site-packages (from Flask->flask-bcrypt) (1.0.1)
Requirement already satisfied: itsdangerous>=0.24 in c:\users\User\appdata\local\programs\pyth
on\python38-32\lib\site-packages (from Flask->flask-bcrypt) (1.1.0)
Requirement already satisfied: click>=5.1 in c:\users\User\appdata\local\programs\python\pytho
n38-32\lib\site-packages (from Flask->flask-bcrypt) (7.1.2)
Requirement already satisfied: six>=1.4.1 in c:\users\User\appdata\roaming\python\python38\sit
e-packages (from bcrypt->flask-bcrypt) (1.15.0)
Requirement already satisfied: cffi>=1.1 in c:\users\User\appdata\local\programs\python\python
38-32\lib\site-packages (from bcrypt->flask-bcrypt) (1.14.2)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\User\appdata\local\programs\python
\python38-32\lib\site-packages (from Jinja2>=2.10.1->Flask->flask-bcrypt) (1.1.1)
Requirement already satisfied: pycparser in c:\users\User\appdata\local\programs\python\python
38-32\lib\site-packages (from cffi>=1.1->bcrypt->flask-bcrypt) (2.20)
Building wheels for collected packages: bcrypt
Building wheel for bcrypt (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\User\appdata\local\programs\python\python38-32\python.exe' 'c:\users\User\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.p
y' build_wheel 'C:\conda_temp\tmpgl0zt2ul'
cwd: C:\conda_temp\pip-install-9i9ne9yb\bcrypt
Complete output (15 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\bcrypt
copying src\bcrypt\__about__.py -> build\lib.win32-3.8\bcrypt
copying src\bcrypt\__init__.py -> build\lib.win32-3.8\bcrypt
copying src\bcrypt\py.typed -> build\lib.win32-3.8\bcrypt
running build_ext
generating cffi module 'build\\temp.win32-3.8\\Release\\_bcrypt.c'
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
building '_bcrypt' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://vi
sualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for bcrypt
Running setup.py clean for bcrypt
Failed to build bcrypt
ERROR: Could not build wheels for bcrypt which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.2.3, however version 20.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
try using these commands:
python -m pip install --upgrade pip
python -m pip install --no-use-pep517 bcrypt
What I did might work for you also:
$ python -m pip install --no-use-pep517 bcrypt
$ python -m pip install --upgrade pip
and it worked.
bcrypt is now implemented in Rust. Users building from source will need to have a Rust compiler available although nothing will change for users downloading wheels.
bcrypt developers no longer ship manylinux2010 wheels. Users should upgrade to the latest pip to ensure this doesn’t cause issues downloading wheels on their platform or use an older version than 4.0.0.
So try
pip3 install -U "bcrypt<4.0.0"
Fixing bcrypt to 3.2.2 (the latest version before 4.0.0) fixed this for me. Like stated here:
The problem comes with bcrypt 4.0.0 for which there is no wheel available.
Changing python from 32-version to 64-version may be solution. It helped me.
I downloaded and installed
"microsoft visual c++ build tools"
https://go.microsoft.com/fwlink/?LinkId=691126
and restarted the computer and worked for me.
try
pip install pep517
PIP is very unreliable, it needs over 350 different packages under python, and the system as well
I tried to install PyLint. When installing I saw the following:
Collecting pylint
Downloading pylint-1.6.5-py2.py3-none-any.whl (577kB)
100% |████████████████████████████████| 583kB 655kB/s
Collecting six (from pylint)
Using cached six-1.10.0-py2.py3-none-any.whl
Collecting isort>=4.2.5 (from pylint)
Downloading isort-4.2.5-py2.py3-none-any.whl (40kB)
100% |████████████████████████████████| 40kB 737kB/s
Collecting mccabe (from pylint)
Downloading mccabe-0.6.1-py2.py3-none-any.whl
Collecting configparser; python_version == "2.7" (from pylint)
Downloading configparser-3.5.0.tar.gz
Collecting backports.functools-lru-cache; python_version == "2.7" (from pylint)
Downloading backports.functools_lru_cache-1.3-py2.py3-none-any.whl
Collecting astroid<1.5.0,>=1.4.5 (from pylint)
Downloading astroid-1.4.9-py2.py3-none-any.whl (213kB)
100% |████████████████████████████████| 215kB 713kB/s
Collecting lazy-object-proxy (from astroid<1.5.0,>=1.4.5->pylint)
Downloading lazy-object-proxy-1.2.2.tar.gz
Collecting wrapt (from astroid<1.5.0,>=1.4.5->pylint)
Downloading wrapt-1.10.8.tar.gz
Building wheels for collected packages: configparser, lazy-object-proxy, wrapt
Running setup.py bdist_wheel for configparser ... done
Stored in directory: /Users/dkanesha/Library/Caches/pip/wheels/1c/bd/b4/277af3f6c40645661b4cd1c21df26aca0f2e1e9714a1d4cda8
Running setup.py bdist_wheel for lazy-object-proxy ... done
Stored in directory: /Users/dkanesha/Library/Caches/pip/wheels/06/d4/af/71508d0c69292f8c369ba3ae83cd85fabcd6956fd5709633b4
Running setup.py bdist_wheel for wrapt ... done
Stored in directory: /Users/dkanesha/Library/Caches/pip/wheels/19/8a/01/20cf74c3f38d49ef8e9b9aa7ffd38cefff79bad9f6f2c651f0
Successfully built configparser lazy-object-proxy wrapt
Installing collected packages: six, isort, mccabe, configparser, backports.functools-lru-cache, lazy-object-proxy, wrapt, astroid, pylint
Successfully installed astroid-1.4.9 backports.functools-lru-cache-1.3 configparser-3.5.0 isort-4.2.5 lazy-object-proxy-1.2.2 mccabe-0.6.1 pylint-1.6.5 six-1.10.0 wrapt-1.10.8
Can I uninstall the packages mentioned here Installing collected packages: six, isort, mccabe, configparser, backports.functools-lru-cache, lazy-object-proxy, wrapt, astroid, pylint to restore to the previous state, or could the "Installing collected packages" refer to packages previously installed too?
There are two useful packages to deal with it.
Use the package pip-autoremove to uninstall package and its dependencies. You can also use pipdeptree to display a tree relationship of all installed packages.
pip will pretty explicitly tell you what exactly it does. If required packages are already installed, they won't be listed in the "successfully installed" list and it will say "requirement already satisfied" instead. If a dependency was upgraded during the installation, it will explicitly say that it found a previous version, that it uninstalled the previous version and that it installed a new version.
So, yes, in your case it does not look like it upgraded any old packages and purely installed new packages, so uninstalling all those should revert you to your previous state.
when i run
pip install twisted
in the command line in windows, it starts installing packages until the flowing line comes up.
failed building wheel for twisted
pip then crashed soon after, saying it has failed the installation.
why is this ?
is there a way round it to install twisted?
my wheel version is 0.29, windows 10. twisted installs fine on python 2.7
thanks
I meet similar problem like yours.You can try to install the Twisted whit wheels
but at first,you should install the wheels
pip install wheels
then,download an appropriate version from this
website:http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
you can get xxxx.whl file
use
pip install xxxx/xxxxxx.whl
Finished!
Basically, that is not a programming question (I feel it might as well fit well into https://superuser.com/ or https://serverfault.com/).
Could you please provide a tad more information?
What OS are you running? What version?
For comparison, I'm running Debian GNU/Linux (testing), and
pip3 install twisted
performs fine:
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
I must admit, this install was done outside of virtualenv.
Did you try installing twisted outside your virtualenv?