没有代表发表评论,所以不得不这样做:
@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”。 (因为那里是托管 Chris Gholkes 网站的地方)。
我知道 pyodbc 已安装,因为我在安装前后运行了“pip list”并得到了这个:
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)
顺便说一句,通过将(32 位)Python 3.2.2 代码移植到 64 位 3.5.1 进行测试。在这两种情况下都使用 Win 7 Enterprise SP1,无需更改。