Issue
I want to install ReText on CentOS. Have a problem,
[[email protected] scripts-2.6]# python retext.py
Traceback (most recent call last):
File "retext.py", line 23, in <module>
from ReText import QtCore, QtWidgets, QtWebKit, datadirs, globalSettings
File "/usr/lib/python2.6/site-packages/ReText/__init__.py", line 21, in <module>
from PySide import QtCore, QtGui, QtWebKit
ImportError: No module named PySide
Then I typed yum install PySide
and yum install python-pyside
to install PySide, and got the message No package available.
Also I tried yum search pyside
and yum search python-
, but that did not find the PySide package.
Solution
The CentOS repository does not contain PySide. You can add the EPEL repository to your OS then use: yum install -y python-pyside and it will be installed on your system.
In order to install the EPEL repository for 64bit systems, run the following as root:
- cd /tmp
- wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
- rpm -ivh epel-release-6-8.noarch.rpm
If you're using a 32bit system, use the following in step 2:
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Answered By - Nir Ben-Or Answer Checked By - Mary Flores (WPSolving Volunteer)