Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
488 views
in Technique[技术] by (71.8m points)

pyodbc requires python 3.3

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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_DIRECTORYscriptspip.exe

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...