创建本地引擎的时候,pycharm运行代码缺少pymssql库,Python3.8安装报错failed with exit code 2

提问 4 298
xiaoshen
xiaoshen LV3 2023年8月14日 14:41 发表
<p>pip安装pymssql库时报错缺少c++14库,按照教程把vs_BuildTools c++库安装了,但是又出现error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x86\\cl.exe' failed with exit code 2报错</p><p><img src="http://talk-cdn.liumatest.cn/1a5eed59-e72d-452d-b08d-0e91a359521f.png" style="max-width:100%;"><br></p>
收藏(0)  分享
相关标签: 提问
注意:本文归作者所有,未经作者允许,不得转载
4个回复
  • xiaoshen
    2023年8月14日 14:44
    找了好多教程,都试了,都没能解决问题,把Visual Studio Installer相关的东西卸载安装多次没能解决,卸载Visual Studio Installer之后会依旧出现缺少c++库,装上之后就会报错failed with exit code 2
    0 0
  • Chras-fu
    2023年8月14日 14:45
    这种本地环境问题建议还是百度找找解决办法。毕竟不清楚你的电脑基础信息,无法当面查看是无法给到解决方案的。报什么错就去找对应的解决方案。如果实在不行可以考虑直接重装Python
    0 0
  • xiaoshen
    2023年8月16日 09:45
    这个问题已经解决,因为安装的python是3.8,pymssql库要安装旧版本
    0 0