Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, New to linex and python, I am trying to use centos 7 server for development, So I installed python 3.6 to use it for development without interfering with the system python 2.7 - For development I need to install PyQt5 and Qt packages, So I installed PyQt5 by using
Code:
sudo pip3.6 install pyqt5
but for the Qt5 Should I install it as the command
"pip3" takes care of compiling "PyQt5" for your specific Qt5 version.
So the minimum build requirement is # yum install qt5-qtbase-devel
Sorry I am a beginner, Would you please explain more the steps I should follow to install it for python3 only and not to interfere with the system python 2.7.
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Re #3.
The system python2.7 is usually only disturbed by changes made to python2.7, and to the system python2.7 applications used by yum and all other administrative tools.
... And if you install an alien python 3 to /usr/bin/python
I am trying to install PyQt5 and Qt5 on python 3 only for development use, so I created the virtualenv and activate it, Installed PyQt5 and other module but can't install Qt5 packages, It should be included with PyQt5 but when I run
Quote:
rpm -ql qt
it gives me the following error
Quote:
package qt is not installed
and if I run
Quote:
pip3.6 install qt5
or
Quote:
sudo pip3.6 install qt5
it gives the The error:
Quote:
Could not find a version that satisfies the requirement qt5 (from versions: )
No matching distribution found for qt5
when I use
Quote:
yum install qt5
it says that I have to be root, when I go to root it gives the following:
Quote:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.vorboss.net
* epel: www.mirrorservice.org
* extras: mirror.vorboss.net
* ius: mirror.amsiohosting.net
* updates: centos.serverspace.co.uk
No package qt5 available.
Error: Nothing to do
Is qt5 included with PyQt5 package or I need to download it from source? If I need to download it, How can I make it install for python 3 only (Which folder in the virtualenv should I put the downloaded file into before I run it).
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
To decide what can be installed with yum, you will have to know the package names.
Yum does not accept typos / spell errors !
Read the above posts. Some package names have already been mentioned.
And search for package names : # yum search qt5
# yum install qt5-qtbase-devel
# yum grouplist
# yum groupinstall "C Development Tools and Libraries" ( or whatever the naming is ).
! Do no typos. Missing double quotes or other errors : No "groupinstall" will take place !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.