pyodbc 需要 python 3.3 [英] pyodbc requires python 3.3

查看:38
本文介绍了pyodbc 需要 python 3.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 google 项目 下载了 pyodbc 的安装程序.我安装了 Python 3.5,pyodbc 需要 3.3.有没有简单的解决方法?附言我将它安装在没有 Internet 访问权限的 PC 上.这是针对 Windows 的.

解决方案

由于您无法通过常规 pip 渠道安装它,因此您可以从 Chris Gohlke 的网站,他在那里创建了一堆库.>

根据您安装的 Python 3.5 版本下载:

  • pyodbc‑3.0.10‑cp35‑none‑win32.whl 如果您安装了 32 位 Python 3.5
  • pyodbc‑3.0.10‑cp35‑none‑win_amd64.whl 如果您安装了 64 位 Python 3.5

将该文件传送到您要安装的计算机上,然后在命令行上通过 pip 安装:

pip install/path/to/whl/file

如果您的 PATH 中没有 pip,它通常位于:

PYTHON_INSTALL_DIRECTORY\scripts\pip.exe

您的安装目录可能是 C:\Python35 除非您在安装时指定了不同的内容.

I just downloaded installer for pyodbc from google project. I have Python 3.5 istalled and pyodbc requires 3.3. Is there an easy work around? P.S. I am installing it on PC without Internet access. This is for Windows.

解决方案

Since you can't install this via the regular pip channels, you can download a prebuilt binary for Python 3.5 from Chris Gohlke's site, where he has a bunch of libraries he creates builds for.

Download either depending on the version of Python 3.5 you have installed:

  • pyodbc‑3.0.10‑cp35‑none‑win32.whl if you have a 32-bit Python 3.5 install
  • pyodbc‑3.0.10‑cp35‑none‑win_amd64.whl if you have a 64-bit Python 3.5 install

Get that file over to the computer you want to install on, and then install via pip on the command line:

pip install /path/to/whl/file

If you don't have pip in your PATH, it's usually located in:

PYTHON_INSTALL_DIRECTORY\scripts\pip.exe

Your install directory is probably C:\Python35 unless you specified something different when you installed it.

这篇关于pyodbc 需要 python 3.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆