Could not build wheels for pymssql which use PEP 517 and cannot be installed directly
时间: 2023-09-21 15:09:47 浏览: 171
autocad2011 32位 注册机附中文说明
5星 · 资源好评率100%
回答: 出现"Could not build wheels for pymssql which use PEP 517 and cannot be installed directly"的错误是由于缺少编译所需的工具或库。根据引用,你需要安装Microsoft Visual C++ 14.0或更高版本。你可以从"https://visualstudio.microsoft.com/visual-cpp-build-tools/"下载并安装Microsoft C++ Build Tools。另外,根据引用,你可以尝试更新pip和setuptools来解决此问题,可以使用以下命令更新pip和setuptools:
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
如果你仍然遇到问题,你可以尝试从"https://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql"下载与你的Python版本和系统匹配的pymssql的预编译二进制文件。根据引用,下载后将文件复制到你的项目目录或Python安装目录的Scripts文件夹中。然后你可以使用pip命令安装pymssql。希望这些步骤能够帮助你解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Could not build wheels for xx which use PEP 517 and cannot be installed directly](https://blog.csdn.net/qq_35372691/article/details/127744754)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [python安装 pymssql 异常](https://blog.csdn.net/cqkcm/article/details/124171420)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文