如标题所说:

Python pip install Twisted 出错“Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:...\\Twisted\\setup.py'.... failed with error code 1 in C:... \\Twisted"

 

python版本是目前最新的3.7.1

Python pip install Twisted 出错“Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:...\\Twisted\\setup.py'.... failed with error code 1 in C:... \\Twisted"

结果发现并不是环境问题,而是直接 pip install Twisted 安装的包不兼容

需要手动下载兼容的扩展包Twisted-18.9.0-cp37-cp37m-win_amd64.whl

找到对应扩展包后,再执行命令:pip install  Twisted-18.9.0-cp37-cp37m-win_amd64.whl

Python pip install Twisted 出错“Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:...\\Twisted\\setup.py'.... failed with error code 1 in C:... \\Twisted"

就成功安装了

相关文章:

  • 2022-12-23
  • 2021-04-18
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13