Recommended way for installing PySide on Ubuntu

后端 未结 4 861
死守一世寂寞
死守一世寂寞 2021-02-19 08:15

What is the recommended way of setting up PySide for development in Ubuntu?

  1. sudo apt-get install python3-pyside?
  2. sudo pip install pysid
4条回答
  •  迷失自我
    2021-02-19 08:55

    All your options will work. It depends what you are trying to achieve with it and how portable it should be. What usually "just" works without problems is to create a virtualenv first:

    apt-get -f install python-virtualenv
    virtualenv ~/mypython2.7
    

    With that you can simply use easy_install as recommended to install PySide in your local virtual environment:

    ~/mypython2.7/bin/easy_install PySide
    

    If you want to build PySide, follow the extensive instructions on their github page

提交回复
热议问题