Pyodbc requires python 3.3

I just downloaded the installer for pyodbc from google project . I have Python 3.5 istalled and pyobbc requires 3.3. Is it easy to work? Postscript I install it on a PC without Internet access. This is for Windows.

0
source share
2 answers

Since you cannot install this using regular channels pip, you can download the finished binary for Python 3.5 from the Chris Gohlke website , where it has a bunch of libraries that it creates for assembly.

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

  • pyodbc‑3.0.10‑cp35‑none‑win32.whlif you have 32-bit version of Python 3.5 installed
  • pyodbc‑3.0.10‑cp35‑none‑win_amd64.whl, ​​64- Python 3.5

, , pip :

pip install /path/to/whl/file

pip PATH, :

PYTHON_INSTALL_DIRECTORY\scripts\pip.exe

, C:\Python35, - .

+4

, :

@birryree 64- Win 7 Enterprise SP1, , :

C:\Python\64-bit\Scripts>pip install \temp\python-wheels\uci.pyodbc-3.0.10-cp35-none-win_amd64.whl
Processing c:\temp\python-wheels\uci.pyodbc-3.0.10-cp35-none-win_amd64.whl
Installing collected packages: uci.pyodbc
Exception:
Traceback (most recent call last):
  File "c:\python\64-bit\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\python\64-bit\lib\site-packages\pip\commands\install.py", line 317, in run
    prefix=options.prefix_path,
  File "c:\python\64-bit\lib\site-packages\pip\req\req_set.py", line 742, in install
    **kwargs
  File "c:\python\64-bit\lib\site-packages\pip\req\req_install.py", line 831, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "c:\python\64-bit\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
    isolated=self.isolated,
  File "c:\python\64-bit\lib\site-packages\pip\wheel.py", line 348, in move_wheel_files
    assert info_dir, "%s .dist-info directory not found" % req
AssertionError: uci.pyodbc==3.0.10 .dist-info directory not found

, "uci". ( ).

, pyodbc , "pip" :

    C:\Python\64-bit\Scripts>pip list
pip (8.1.2)
pyodbc (3.0.10)     <--- added by the install
pypyodbc (1.3.3)
setuptools (21.0.0)
wheel (0.29.0)

BTW, (32-) Python 3.2.2 64- 3.5.1. Win 7 Enterprise SP1 , .

0

All Articles