ubuntu20.04安装wxpython

    技术2023-10-22  79

    ubuntu20.04安装wxpython--仅供参考

    打开终端输入下述命令

    打开终端输入下述命令

    pip3 install -U \ -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 \ wxPython

    注:不同的版本的ubuntu切换不同的版本号

    若测试时报错: ImportError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory 解决方案:

    sudo apt-get install libsdl2-2.0 sudo apt-get install libsdl2-dev

    若报其他错误,请自行百度。

    Processed: 0.011, SQL: 9