Error When Running pip install pymssql

匿名 (未验证) 提交于 2019-12-03 01:08:02

问题:

I am trying to install the pymssql module in the Command Prompt for VS 2017 Command line and when I type

pip install pymssql 

I get this error

cl: error: no such option: -I

Here is the more defined error code:

cl: error: no such option: -I error: command 'C:\Users\blake\AppData\Local\Programs\Python\Python37-32\Scripts\cl.exe' failed with exit status 2

回答1:

On Windows, please follow the instructions on

https://docs.microsoft.com/en-us/sql/connect/python/pymssql/step-1-configure-development-environment-for-pymssql-python-development?view=sql-server-2017

i. e.: Download the wheel-file, place it in the same folder where the python.exe is, move to that folder and run

pip install pymssql-2.1.3-cp36-cp36m-win_amd64.whl



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!