Python Forum

Full Version: I need help with installation for python 3.6 please
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:

Quote:sudo pip3.6 install pyqt5

But how to install the Qt5 - I tried to install it using the command
Code:

Quote:sudo pip3.6 install qt5

But it is not working and also
Code:

Quote:yum install qt5

Can you please help. Thanks
What errors are you getting?
Quote:Could not find a version that satisfies the requirement qt5 (from versions: )
No matching distribution found for qt5

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: http://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
(Aug-06-2017, 11:07 AM)net1media Wrote: [ -> ]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
pip3 will install for Python 3,i have set both pip and pip3 to point to python because i use pyenv.
mint@mint ~ $ pip -V
pip 9.0.1 from /home/mint/.pyenv/versions/3.6.2/lib/python3.6/site-packages (python 3.6)
mint@mint ~ $ pip3 -V
pip 9.0.1 from /home/mint/.pyenv/versions/3.6.2/lib/python3.6/site-packages (python 3.6)
After check pip version install.
mint@mint ~ $ pip3 install PyQt5
Collecting PyQt5  
  Downloading PyQt5-5.9-5.9.1-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl (104.6MB)
    100% |████████████████████████████████| 104.6MB 17kB/s 
Collecting sip<4.20,>=4.19.3 (from PyQt5)
  Downloading sip-4.19.3-cp36-cp36m-manylinux1_x86_64.whl (63kB)
    100% |████████████████████████████████| 71kB 3.0MB/s 
Installing collected packages: sip, PyQt5
Successfully installed PyQt5-5.9 sip-4.19.3
You will need to use sudo pip3 install PyQt5,to install to system Python.
pyenv is really great for install new versions or fire up virtual environment.
If want Python 3.6.2 it take 30-sec.
mint@mint ~ $ pyenv install 3.6.2
Downloading Python-3.6.2.tar.xz...
-> https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
Installing Python-3.6.2...
Installed Python-3.6.2 to /home/mint/.pyenv/versions/3.6.2
Quote:Which folder in the virtualenv should I put the downloaded file into before I run it
I have a tutorial Linux Python 3 environment.
Which include use of virtual environment.