gpt4 book ai didi

python - pip install pyodbc 失败错误 : Failed building wheel for pyodbc

转载 作者:行者123 更新时间:2023-12-03 18:28:30 25 4
gpt4 key购买 nike

我正在尝试将 pyodbc 库导入 google colab,但出现此错误。
以防万一,我在我的笔记本中安装了 Anaconda,而且我从来没有遇到过 pyodbc 的问题。
你能帮我吗?
太棒了!

Collecting pyodbc
Using cached https://files.pythonhosted.org/packages/81/0d/bb08bb16c97765244791c73e49de9fd4c24bb3ef00313aed82e5640dee5d/pyodbc-4.0.30.tar.gz
Building wheels for collected packages: pyodbc
Building wheel for pyodbc (setup.py) ... error
ERROR: Failed building wheel for pyodbc
Running setup.py clean for pyodbc
Failed to build pyodbc
Installing collected packages: pyodbc
Running setup.py install for pyodbc ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u5dmb223/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-u5dmb223/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9jmhckrt/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

最佳答案

您可以尝试以下操作:

!apt install unixodbc-dev
!pip install pyodbc

关于python - pip install pyodbc 失败错误 : Failed building wheel for pyodbc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64449971/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com