记录一下dearpygui安装

直接安装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
  • 9
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

韵诗

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值