我创建了一个基于YML的CI管道,该管道试图从requirments.txt文件安装所有必需的依赖关系。但是它无法安装pyodbc。
下面是日志详细信息。
2020-05-17T14:45:57.3627191Z **An error occurred while installing pyodbc==4.0.26** Building wheels for collected packages: pyodbc', ' Building wheel for pyodbc (setup.py): started', " Building wheel for pyodbc (setup.py): finished with status 'error'", ' Running setup.py clean for pyodbc', 'Failed to build pyodbc', 'Installing collected packages: pyodbc', ' Running setup.py install for pyodbc: started', " Running setup.py install for pyodbc: finished with status 'error'"] 2020-05-17T14:46:29.1605455Z [pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1: raise exceptions.InstallError(c.dep.name, extra=err_lines) 2020-05-17T14:46:29.1591018Z [pipenv.exceptions.InstallError]: ['Looking in indexes: https://p-nexus-3.development.xxx.com:8443/repository/ORG-PYTHON-proxy/simple', 'Collecting pyodbc==4.0.26', ' Using cached https://p-nexus-3.development.xxx.com:8443/repository/ORG-PYTHON-proxy/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz (219 kB)', 'Building wheels for collected packages: pyodbc', ' Building wheel for pyodbc (setup.py): started', " Building wheel for pyodbc (setup.py): finished with status 'error'", ' Running setup.py clean for pyodbc', 'Failed to build pyodbc', 'Installing collected packages: pyodbc', ' Running setup.py install for pyodbc: started', " Running setup.py install for pyodbc: finished with status 'error'"] 2020-05-17T14:46:29.1605455Z [pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:
这导致我的pytest失败。
--Requirment.txt-- azure-storage-blob==1.5.0 azure-storage-logging==0.5.1 azure-storage==0.33.0 pyodbc==4.0.26 pyspark==2.3.2 pytest==5.3.2 pytest-cov==2.7.1 pytest-mock==1.10.4```