Important: Please read the Qt Code of Conduct -

Cannot import QtCore on ubuntu(anaconda3)

  • Install PySide2 on ubuntu by Anaconda3

    pip install PySide2
    After that I set up the path
    export LD_LIBRARY_PATH=$HOME/anaconda3/lib:$LD_LIBRARY_PATH

    After that I try to import Qt5Core, it throw error message

    ImportError: /home/ubuntu/anaconda3/lib/ version `Qt_5.12' not found (required by /home/ubuntu/anaconda3/envs/pyside2/lib/python3.7/site-packages/PySide2/

    Should I build the pyside2 by myself?

Log in to reply