pyodbc requires python 3.3

后端 未结 2 790
予麋鹿
予麋鹿 2020-12-12 06:21

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

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 07:07

    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.

提交回复
热议问题