PyCharm安装Twisted库(报错:Microsoft Visual C++ 14.0 is required. Get it with “Build Tools for Visual Stu)
報錯信息
解決方案
先安裝wheel
pip install wheel去官方找對應的版本:https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
以我的版本為例:
其他版本會報錯:ERROR: Twisted-20.3.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.
離線下載完包后,將包拖動至工程目錄下,直接安裝即可
-
(venv) F:\python\gevent_test>pip install Twisted-20.3.0-cp38-cp38-win32.whl
ERROR: Twisted-20.3.0-cp38-cp38-win32.whl is not a supported wheel on this platform.(venv) F:\python\gevent_test>pip install Twisted-20.3.0-cp38-cp38-win_amd64.whl
Processing f:\python\gevent_test\twisted-20.3.0-cp38-cp38-win_amd64.whl
總結
以上是生活随笔為你收集整理的PyCharm安装Twisted库(报错:Microsoft Visual C++ 14.0 is required. Get it with “Build Tools for Visual Stu)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 什么是 Spring?
- 下一篇: Shell shift的使用方法