Start using PyQt with Qt Creator

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I would like to use PyQt with some Qt Creator.
How many and which packages I have to install?
$ sudo apt-get install qtcreator
If I install just qtcreator, do I have to install also PyQt?
$ sudo pip3 install PyQt5
Are these two commands only?
python 18.04 qt-creator pyqt
add a comment |Â
up vote
0
down vote
favorite
I would like to use PyQt with some Qt Creator.
How many and which packages I have to install?
$ sudo apt-get install qtcreator
If I install just qtcreator, do I have to install also PyQt?
$ sudo pip3 install PyQt5
Are these two commands only?
python 18.04 qt-creator pyqt
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I would like to use PyQt with some Qt Creator.
How many and which packages I have to install?
$ sudo apt-get install qtcreator
If I install just qtcreator, do I have to install also PyQt?
$ sudo pip3 install PyQt5
Are these two commands only?
python 18.04 qt-creator pyqt
I would like to use PyQt with some Qt Creator.
How many and which packages I have to install?
$ sudo apt-get install qtcreator
If I install just qtcreator, do I have to install also PyQt?
$ sudo pip3 install PyQt5
Are these two commands only?
python 18.04 qt-creator pyqt
asked Jun 12 at 7:16
J. Doe
11
11
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
0
down vote
In Ubuntu 18.04 open the terminal and type:
sudo apt install qtcreator python3-pyqt5
Optionally you can also install python-pyqt5.
add a comment |Â
up vote
0
down vote
If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:
$ pip3 install --user PyQt5
For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python
Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.
It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
In Ubuntu 18.04 open the terminal and type:
sudo apt install qtcreator python3-pyqt5
Optionally you can also install python-pyqt5.
add a comment |Â
up vote
0
down vote
In Ubuntu 18.04 open the terminal and type:
sudo apt install qtcreator python3-pyqt5
Optionally you can also install python-pyqt5.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
In Ubuntu 18.04 open the terminal and type:
sudo apt install qtcreator python3-pyqt5
Optionally you can also install python-pyqt5.
In Ubuntu 18.04 open the terminal and type:
sudo apt install qtcreator python3-pyqt5
Optionally you can also install python-pyqt5.
edited Jun 19 at 19:23
answered Jun 19 at 19:17
karel
49.4k11105126
49.4k11105126
add a comment |Â
add a comment |Â
up vote
0
down vote
If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:
$ pip3 install --user PyQt5
For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python
Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.
It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.
add a comment |Â
up vote
0
down vote
If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:
$ pip3 install --user PyQt5
For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python
Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.
It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:
$ pip3 install --user PyQt5
For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python
Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.
It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.
If you're on bionic and you do find out PyQt5 is needed alongside Qt Company's pyside2, instead of using sudo issue the pip3 commmand at the prompt for the user who will use the package with the --user switch:
$ pip3 install --user PyQt5
For PySide2, you can find more information under the heading 'Development: Getting Started' here: https://wiki.qt.io/Qt_for_Python
Many popular Python packages, including the core Python packages, are made available by way of your Ubuntu distribution's repo. The caveat is Python core modules like Idle and pip, elements core to the language, must be found so that a complete installation can be assembled. Docs, for instance must be installed separately, and python3-pip installed to get pip3 must be installed separately or by installing python3-setuptools. Consequently, there is what amounts to misinformation about installing Python modules for Python on various flavours of Ubuntu, even in very well documented and active projects. It isn't sufficient to pip install when doing so may break your pip installation, forcing you to clear and reinstall it.
It is a safe bet that if you can find the package you're looking for in an Ubuntu repo for your distribution, you should install it -- that way. Otherwise, the --user switch is your friend.
edited Jun 19 at 19:48
answered Jun 19 at 19:10
Tim Pozza
11
11
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045816%2fstart-using-pyqt-with-qt-creator%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password