简体   繁体   English

运行pip install pymssql时出错

[英]Error When Running pip install pymssql

I am trying to install the pymssql module in the Command Prompt for VS 2017 Command line and when I type 我正在尝试在VS 2017命令行的命令提示符中以及当我键入时安装pymssql模块

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 cl:错误:无此类选项:-I错误:命令“ C:\\ Users \\ blake \\ AppData \\ Local \\ Programs \\ Python \\ Python37-32 \\ Scripts \\ cl.exe”失败,退出状态为2

On Windows, please follow the instructions on 在Windows上,请按照以下说明进行操作

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

ie: Download the wheel-file, place it in the same folder where the python.exe is, move to that folder and run 即:下载滚轮文件,将其放置在python.exe所在的文件夹中,移至该文件夹并运行

pip install pymssql-2.1.3-cp36-cp36m-win_amd64.whl 点安装pymssql-2.1.3-cp36-cp36m-win_amd64.whl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM