在Windows上安装Twisted for Python 3.6.1时出现错误,Windows SDK中缺少文件

在Windows上安装Twisted for Python 3.6.1时出现错误,Windows SDK中缺少文件,python,windows,pip,twisted,Python,Windows,Pip,Twisted,我尝试使用pip安装Twisted pip3 install Twisted 然而,我得到了以下错误 running build_ext building 'twisted.test.raiser' extension error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\lib' ---------

我尝试使用pip安装Twisted

pip3 install Twisted
然而,我得到了以下错误

    running build_ext
building 'twisted.test.raiser' extension
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\lib'

----------------------------------------
Command "c:\python361\python.exe -u -c "import setuptools, tokenize;__file__='C:
\\Users\\User\\AppData\\Local\\Temp\\pip-build-32gww8wb\\twisted\\setup.py';f=ge
tattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.cl
ose();exec(compile(code, __file__, 'exec'))" install --record C:\Users\User\AppD
ata\Local\Temp\pip-f8823kmo-record\install-record.txt --single-version-externall
y-managed --compile" failed with error code 1 in C:\Users\User\AppData\Local\Tem
p\pip-build-32gww8wb\twisted\
我检查了计算机中的目录,实际上路径
C:\\ProgramFiles(x86)\\Microsoft SDK\\Windows\\v8.1
中没有
lib
文件夹。我已经下载了Visual Studio 2015社区,但它并没有解决问题。 下载VisualStudio后是否需要设置任何内容? 如何解决这个问题

更新:
我想编译这个需要我安装Twisted的程序。

您为windows操作系统安装了vcredist(必需版本)和SDK吗?@Gahan是的。我安装了各种版本。当我安装Twisted时,它正在8.1版中查找lib文件夹。我没有那个文件夹。我实际上想在自述文件中编译这个程序,但没有指定要使用哪个版本的twisted。在v12和v15之后,它有很多变化,所以首先我认为您需要找到需要安装的确切版本,因为在主要版本中添加/删除了许多功能。我在我的项目中使用Twisted12.0,但谢天谢地,它是在linux上。但是,您可以尝试在python中创建virtualenv,以便在您的项目上工作。您是否为windows操作系统安装了vcredist(必需版本)和SDK?@Gahan是的。我安装了各种版本。当我安装Twisted时,它正在8.1版中查找lib文件夹。我没有那个文件夹。我实际上想在自述文件中编译这个程序,但没有指定要使用哪个版本的twisted。在v12和v15之后,它有很多变化,所以首先我认为您需要找到需要安装的确切版本,因为在主要版本中添加/删除了许多功能。我在我的项目中使用Twisted12.0,但谢天谢地,它是在linux上。但是,您可以尝试在python中创建virtualenv来处理您的项目