直接安装dearpygui出现bug
出现bug:
ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27’ not found (required by ~/site-packages/dearpygui/_dearpygui.so)
生成dearpygui本地wheel
参考 https://github.com/hoffstadt/DearPyGui/wiki/Local-Wheel
在本地目录中输入以下bash命令:
git clone --recursive https://github.com/hoffstadt/DearPyGui
最后出现:
Submodule path ‘thirdparty/DearPyGui_Ext’: checked out ‘2dcc147c2f3bb2467f70cfbf7521203fb006f4a5’
Submodule path ‘thirdparty/cpython’: checked out ‘b28265d7e6a41a4a0e227b37f4fbbc4d03a0a707’
Submodule path ‘thirdparty/freetype’: checked out ‘8cf046c38d4c6ada76ba070562beff0d5041f795’
Submodule path ‘thirdparty/glfw’: checked out ‘45ce5ddd197d5c58f50fdd3296a5131c894e5527’
Submodule path ‘thirdparty/imgui’: checked out ‘1b435ae3e07ca813eb3ef40aaabe7053f5570fae’
运行命令
git submodule update --init --recursive
在根Dear PyGui目录中,运行以下命令:
cd DearPyGui
python3 -m setup bdist_wheel --plat-name manylinux1_x86_64 --dist-dir dist
您将在新创建的dist文件夹中找到该wheel:即~/DearPyGui/dist文件夹中
最后在原始目录下下载wheel即可
pip install ~/DearPyGui/dist/dearpygui-1.11.1-cpxx-cpxx-manylinux1_x86_64.whl