在MatPlotlib Installation Guide中有一条声明,如果使用本地安装的freetype和qhull库,则应以以下方式配置setup.cfg
:
[libs]
system_freetype = true
system_qhull = true
当我调用pip install时:
/.../bin/python3 -m pip install --index-url=https://myartifactory.bla/artifactory/api/pypi/pypi-repo/simple --trusted-host=myartifactory.bla matplotlib==3.3.4
我收到一个错误(*),因为系统位于防火墙后面,python存储库位于artifactory上:
error: Failed to download FreeType. Please download one of ['https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz', 'https://download.savannah.gnu.org/releases/freetype/freetype-2.6.1.tar.gz'] and extract it into build/freetype-2.6.1 at the top-level of the source repository.
我也试过:
export system_freetype=True && export system_qhull=True && /home/build_ml/python/py-3.7.10/bin/python3 -m pip install --index-url=https://myartifactory.bla/artifactory/api/pypi/pypi-repo/simple --trusted-host=myartifactory.bla matplotlib==3.3.4
这没有帮助。所以问题是如何将setup.cfg中可能定义的参数传递到pip安装
免责声明:(*)-这个错误也是这样表述的,我不知道该做什么,而且IMHO与文档不一致:-)
目前没有回答
相关问题 更多 >
编程相关推荐