在 Ubuntu 上安装 PySide 的推荐方式 [英] Recommended way for installing PySide on Ubuntu

查看:74
本文介绍了在 Ubuntu 上安装 PySide 的推荐方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Ubuntu 中设置 PySide 以进行开发的推荐方法是什么?

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

  1. sudo apt-get install python3-pyside?
  2. sudo pip install pyside?
  3. sudo easy_install pyside?

推荐答案

您的所有选项都将起作用.这取决于你想用它实现什么以及它应该有多便携.通常只是"没有问题的方法是先创建一个 virtualenv:

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

有了它,您可以简单地使用 easy_install 作为推荐在本地虚拟环境中安装 PySide:

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

~/mypython2.7/bin/easy_install PySide

如果您想构建 PySide,请按照他们的 github 页面

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

这篇关于在 Ubuntu 上安装 PySide 的推荐方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆