0

我一直在尝试BuildBot First Run教程。它从创建一个 master 开始,看起来非常简单明了,但是我遇到了 step 的问题pip install 'buildbot[bundle]'

我收到此错误消息(这是日志的结尾):

building 'twisted.test.raiser' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

    ----------------------------------------
Command "c:\users\remi\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Remi\\AppData\\Local\\Temp\\pip-install-10x0qptg\\Twisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Remi\AppData\Local\Temp\pip-record-c63k2sci\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Remi\AppData\Local\Temp\pip-install-10x0qptg\Twisted\

我尝试安装 mscv 构建工具,但仍然收到相同的消息。

有什么想法可以解决这个问题吗?

4

1 回答 1

0

问题是 twisted 尚不支持 python 3.7(请参阅此处的相关问题:使用 pip 安装 Twisted for Python:错误:Microsoft Visual Studio failed with exit status 2)。

您可以通过安装预编译的扭曲二进制文件来解决此问题。例如从这里:https ://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

例如,在您的情况下下载 Twisted‑18.9.0‑cp37‑cp37m‑win32.whl 并执行

pip install Twisted‑18.9.0‑cp37‑cp37m‑win32.whl

然后重试 buildbot 安装。

pip install 'buildbot[bundle]'
于 2019-02-01T15:05:49.090 回答