LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-05-2017, 06:14 AM   #1
net1media
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Rep: Reputation: Disabled
Question Help for Centos 7 - and Python 3


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
Code:
sudo pip3.6 install qt5
is not working and also
Code:
yum install qt5
Can you please help. Thanks

Last edited by net1media; 08-05-2017 at 06:15 AM.
 
Old 08-05-2017, 06:44 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
"pip3" takes care of compiling "PyQt5" for your specific Qt5 version.

So the minimum build requirement is # yum install qt5-qtbase-devel
 
Old 08-05-2017, 07:06 AM   #3
net1media
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
"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.

Thanks
 
Old 08-05-2017, 10:35 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
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

----------------
A safe way is e.g. the devtoolset-6 python35
http://mirror.centos.org/centos/7/sc...h/rh-python35/
Ref. https://www.softwarecollections.org/.../devtoolset-6/

"devtoolset-7" : # yum install centos-release-scl-rh

Package overview http://mirror.centos.org/centos/7/sclo/x86_64/rh/
pip3, pip3.5 is available: rh-python35-python-pip > /opt/rh/rh-python35/root/usr/bin/
---------------

Or : The python34 from the EPEL repo
https://archive.fedoraproject.org/pub/epel/7/x86_64/p/
EPEL https://fedoraproject.org/wiki/EPEL
https://dl.fedoraproject.org/pub/epe...t-7.noarch.rpm
# cd Downloads/ && yum install epel-release-latest-7.noarch.rpm

pip3, pip3.4 : python34-pip > /usr/bin/{ pip3, pip3.4 }.

--

Last edited by knudfl; 08-05-2017 at 10:36 AM.
 
Old 08-05-2017, 10:55 AM   #5
acescript
LQ Newbie
 
Registered: Jul 2017
Location: Lagos
Distribution: Red Hat
Posts: 12

Rep: Reputation: Disabled
What errors were you getting from using the above commands? Why don't you try the command below:

Quote:
pip3 install pyqt5
As for qt5, do the following requirements for the development host:

Quote:
sudo yum groupinstall "C Development Tools and Libraries"
sudo yum install mesa-libGL-devel
before

Quote:
yum install qt5
Besides, you may not get the full functionalities of qt because it's not completely free.

Hope this helps!

Last edited by acescript; 08-05-2017 at 11:04 AM.
 
Old 08-06-2017, 06:48 AM   #6
net1media
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
I have installed
Quote:
Quote:
yum groups mark install development tools
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).

Thanks

Last edited by net1media; 08-06-2017 at 06:50 AM.
 
Old 08-06-2017, 07:57 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
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 !


-

Last edited by knudfl; 08-06-2017 at 12:39 PM.
 
Old 08-06-2017, 08:41 AM   #8
net1media
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Solved, Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing python 3.2.2 on centos 7 sigint-ninja Linux - Newbie 7 12-10-2015 05:04 AM
Install Python 2.7.6 "python-devel" package CentOS 6.5 trava90 Linux - Software 1 01-29-2015 06:04 AM
Installing Python 2.7.2 and python-devel on CentOS 5.7 iwitham Linux - Software 1 03-21-2012 05:14 PM
[SOLVED] Centos 5.6 x86_64 Python problem ldieter Linux - Software 7 05-14-2011 05:05 AM
CentOS 5.5 x86_64 Python 2.7 wills Linux - Server 3 02-24-2011 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration