这是环境:
- 操作系统:Windows 10
- 姜戈:2.0rc
- Python:3.6
- 点:10.0.0
- 视觉工作室社区 2017
以及错误消息:
running build_ext
building 'twisted.test.raiser' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
Command "c:\users\airy\appdata\local\programs\python\python36\python.exe -u -c "import setuptools,
tokenize;__file__='C:\\Users\\Airy\\AppData\\Local\\Temp\\pip-install-0a1gjuaj\\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\Airy\AppData\Local\Temp
\pip-record-k1vjz5aa\install-record.txt --single-version-externally-managed
--compile" failed with error code 1 in C:\Users\Airy\AppData\Local\Temp\pip-install-0a1gjuaj\twisted\
我已经按照链接描述安装了构建工具,但它仍然不起作用。如果有人解决了,请告诉我如何解决。
从这里下载扭曲link https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted.
正在下载Twisted‑18.4.0‑cp36‑cp36m‑win32.whl
对我有用,因为我使用的是Python 3.6。根据自己使用的python版本下载对应的版本。
从给定链接下载 Twisted 后,打开cmd
文件所在位置并运行pip install Twisted‑18.4.0‑cp36‑cp36m‑win32.whl
。 pip 将从该文件安装 Twisted。
如果你在一个virtualenv
,激活virtualenv
然后在同一过程中安装 Twisted。
之后,您将能够安装频道或其他内容。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)