步骤 1:配置用于 pymssql Python 开发的开发环境Step 1: Configure development environment for pymssql Python development

01/19/2017

本文内容

需要配置满足先决条件的开发环境,才能使用 Python Driver for SQL Server 开发应用程序。You will need to configure your development environment with the prerequisites in order to develop an application using the Python Driver for SQL Server.

Python SQL 驱动程序使用 TDS 协议,此协议在 SQL Server 和 Azure SQL 数据库中默认启用。The Python SQL Drivers use the TDS protocol, which is enabled by default in SQL Server and Azure SQL Database. 这种方式无需任何其他配置。No additional configuration is required.

WindowsWindows

安装 Python 运行时和 pip 包管理器。Install Python runtime and pip package manager.

a.a. b.b. 单击相应的 Windows 安装程序 msi 链接。Click on the appropriate Windows installer msi link.

c.c. 下载后,运行 msi 以安装 Python 运行时Once downloaded run the msi to install Python runtime

从此处下载 pymssql 模块Download pymssql module from here

请确保选择了正确的 whl 文件。Make sure you choose the correct whl file. 例如:若要在 64 位计算机上使用 Python 2.7,请选择“pymssql‑2.1.1‑cp27‑none‑win_amd64.whl”。For example: If you are using Python 2.7 on a 64-bit machine choose pymssql‑2.1.1‑cp27‑none‑win_amd64.whl. 下载 whl 文件后,将它放入 C:\Python27 文件夹。Once you download the whl file, place it in the C:\Python27 folder.

打开 cmd.exeOpen cmd.exe

安装 pymssql 模块。Install pymssql module.

例如,若要在 64 位计算机上使用 Python 2.7:For example, if you are using Python 2.7 on a 64-bit machine:

> cd c:\Python27

> pip install pymssql‑2.1.1‑cp27‑none‑win_amd64.whl

Ubuntu LinuxUbuntu Linux

安装 Python 运行时和 pip 包管理器。Install Python runtime and pip package manager. Python 预安装在大多数 Ubuntu 发行版本中。Python comes pre-installed on most distributions of Ubuntu. 如果计算机中未安装 python,可以从 python.org 下载源 Tarball 并在本地生成,也可以使用包管理器:If your machine does not have python installed, you can either download the source tarball from python.org and build locally, or you can use the package manager:

> sudo apt-get install python

打开终端Open terminal

安装 pymssql 模块和依赖项Install pymssql module and dependencies

> sudo apt-get --assume-yes update

> sudo apt-get --assume-yes install freetds-dev freetds-bin

> sudo apt-get --assume-yes install python-dev python-pip

> sudo pip install pymssql

macOSmacOS

安装 Python 运行时和 pip 包管理器Install Python runtime and pip package manager

a.a. b.b. 单击相应的 macOS 安装程序 pkg 链接。Click on the appropriate macOS installer pkg link.

c.c. 下载完成后,运行 pkg 以安装 Python 运行时Once downloaded run the pkg to install Python runtime

打开终端Open terminal

安装 Homebrew 包管理器Install Homebrew package manager

> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装 FreeTDS 模块Install FreeTDS module

> brew install FreeTDS

安装 pymssql 模块Install pymssql module

> sudo -H pip install pymssql

python pymssql安装_步骤 1:配置 pymssql 环境 - SQL Server | Microsoft Docs相关推荐

  1. mysql2005备份_创建完整数据库备份 - SQL Server | Microsoft Docs

    完整数据库备份Create a Full Database Backup 09/12/2019 本文内容 适用于:Applies to: SQL ServerSQL Server(所有支持的版本)SQ ...

  2. sql server服务器怎么配置文件,配置 SSAS 以生成内存转储文件 - SQL Server | Microsoft Docs...

    配置 SQL Server Analysis Services 以生成内存转储文件 09/25/2020 本文内容 本文介绍如何将 SQL Server Analysis Services 配置为自动 ...

  3. java sql 查询中的转义序列不对_在 JDBC 中使用 SQL 转义序列 - SQL Server | Microsoft Docs...

    使用 SQL 转义序列Using SQL escape sequences 08/12/2019 本文内容 按照 JDBC API 的定义,Microsoft JDBC Driver for SQL ...

  4. mysql表收缩时从库也收缩么_收缩数据库 - SQL Server | Microsoft Docs

    收缩数据库Shrink a Database 03/14/2017 本文内容 适用于:Applies to: SQL ServerSQL Server(所有支持的版本)SQL ServerSQL Se ...

  5. sql server java类型_使用基本 JDBC 数据类型 - SQL Server | Microsoft Docs

    使用基本数据类型Using basic data types 01/29/2021 本文内容 Microsoft JDBC Driver for SQL ServerMicrosoft JDBC Dr ...

  6. access里的多步oledb错误_(ADO) 的 ConnectionString 属性 - SQL Server | Microsoft Docs

    ConnectionString 属性 (ADO)ConnectionString Property (ADO) 01/19/2017 本文内容 指示用于建立与数据源的连接的信息.Indicates ...

  7. MySQL如何制作报表_(MySQLToSQL) 生成报表 - SQL Server | Microsoft Docs

    生成报告 (MySQLToSQL)Generating Reports (MySQLToSQL) 01/19/2017 本文内容 使用命令执行的某些活动的报告在对象树级别的 SSMA 控制台中生成.T ...

  8. JAVA——jdk8的下载与安装,win10下配置JDK环境变量

    JAVA--jdk8的下载与安装,win10下配置JDK环境变量 JDK下载和安装 下载JDK 安装JDK JDK环境变量配置(win10下配置JDK8) 配置步骤 检验JDK配置是否成功 JDK下载 ...

  9. 超级详细Window10安装Java JDK 和配置开发环境

    Window10安装Java JDK 和配置开发环境 准备工作 下载 JDK8 百度云下载链接:https://pan.baidu.com/s/1vCmurwpOpAcwTJiXEZIXCA?pwd= ...

最新文章

  1. Visual Studio 2017 15.7预览版发布
  2. 计算机一级考模拟试题,计算机一级MSOffice考前模拟试题「附答案」
  3. go 调用dll char*传输
  4. 武汉大学2010年数学分析试题解答
  5. python3num='0123456789,num「:6:-1」=gt; '987'?「1:6:-1」为空
  6. 【JQuery】ajax 调用
  7. 【XSY2667】摧毁图状树 贪心 堆 DFS序 线段树
  8. 关于sscanf与结构体不能联用的问题
  9. C++ 之const的使用
  10. 高低层特征融合【转载】
  11. linux 开机默认启动windows系统时间,Windows和Linux双系统批改默认启动项、超时时间...
  12. android 背景逐渐变暗,UI:使View背景逐渐变暗的方法
  13. ArcGIS API For JavaScript - 地图常用函数方法
  14. 天轰穿·甜老丝儿。科创少年
  15. 如何查询HP-UX主机防火墙状态
  16. 关键词文章生成器-智能关键词文章生成器
  17. Validation进行参数校验
  18. Linuxer公众号更名为quot;Linux阅码场quot;公告
  19. 僵尸进程(zombie process)
  20. 前端页面 原生php+H5 视频播放一 专辑列表页(专辑页list)

热门文章

  1. PHP解析HTTP_USER_AGENT 获取客户端手机型号
  2. Qt 使用QAxWidget操作 ppt
  3. 当今对商鞅的评价_了解以客户为中心对当今程序员意味着什么
  4. python三人同行七十稀_【算法入门第二章练习题】(示例代码)
  5. 1399:甲流病人初筛
  6. 计算机中浮点数加法运算
  7. php常用函数讲解,php常用函数处理的函数解析
  8. 外挂产业:月交易额能达到30万元,不愁没有买家
  9. c语言英语文库,C语言基本入门英语单词
  10. Apache万网SSl证书安装不成功的一个注意事项(https安全链接,基于phpstudy)