M
M
Marat Mkhitaryan2016-03-17 09:31:58
Python
Marat Mkhitaryan, 2016-03-17 09:31:58

Python why are pip packages not being installed?

i wrote a script

import sys QtGui,QtCore,QtWebKit,QtScript
from PyQt4 
app=QtGui.QApplication(sys.argv)
web=QtWebKit.QWebView()
web.setGeometry(100,50,800,480)
web.setWindowTitle('MyBrowser')
web.load(QtCore.QUrl('http://www.belursus.info'))
web.show()
#лол

it requires libraries sys QtGui, QtCore, QtWebKit, QtScript,
I type pip install QtGui and it displays
2b3da0c9055a458d909cf15348d5ab83.png
tell me what is the problem?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
T
TomasHuk, 2016-03-17
@DoggerBloger

As written above:
Fix at the beginning:

import sys
from PyQt4 import QtGui,QtCore,QtWebKit,QtScript

Also add to the end:
Final script:
import sys
from PyQt4 import QtGui,QtCore,QtWebKit,QtScript
app=QtGui.QApplication(sys.argv)
web=QtWebKit.QWebView()
web.setGeometry(100,50,800,480)
web.setWindowTitle('MyBrowser')
web.load(QtCore.QUrl('http://www.belursus.info'))
web.show()
sys.exit(app.exec_())

K
kvkirill, 2016-03-17
@kvkirill

PyQt4 is not installed via pip.
when you put it, fix it:

import sys
from PyQt4 import QtGui, QtCore, QtWebKit, QtScript

V
Vov Vov, 2016-03-17
@balamut108

Try downloading PyQt separately from the site: https://www.riverbankcomputing.com/software/pyqt/intro
sys QtGui - isn't that a bug?

S
s0ci0pat, 2016-03-17
@s0ci0pat

https://riverbankcomputing.com/software/pyqt/download
https://riverbankcomputing.com/software/pyqt/download5
download and install

A
angru, 2016-03-17
@angru

Installing PyQt... because it's too good for pip o...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question