我正在尝试安装 PyFTGL,以在我的 OpenGL 项目中显示文本。
我通常使用 pip 安装库,但是
sudo pip3 install PyFTGL
返回以下错误:
Could not find a version that satisfies the requirement PyFTGL (from versions:)
No matching distribution found for PyFTGL
阅读此 wiki后,我也尝试了 easy_install ,但是
sudo easy_install PyFTGL
返回以下错误:
error: Could not find suitable distribution for Requirement.parse('PyFTGL')
我究竟做错了什么 ?
我在我的 Macbook OSX Yosemite 上使用 python3.6。
编辑:安装依赖项(FTGL、freetype 和 boost-python)后,我似乎仍然想念一个库。python setup.py install
从源代码目录运行命令时,我收到以下错误消息:
ld: library not found for -lGLU
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang++' failed with exit status 1
虽然我已经可以在 python 中做到这一点:from OpenGL.GLU import *