Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44897

dist-packages or site-packages in Python 3.2 ?

Date 2013-05-07 19:03 +0200
From Vincent Vande Vyvre <vincent.vandevyvre@swing.be>
Subject dist-packages or site-packages in Python 3.2 ?
References <69b77965-5ff5-4c6f-a73d-0826b06353f0@googlegroups.com> <mailman.1402.1367924006.3114.python-list@python.org> <85771dda-4289-4cfb-a96f-23809664913e@googlegroups.com> <51891677.1020009@mrabarnett.plus.com> <CAPTjJmrPvimvL1=eT4AoJAYU00pUPzbFvwLJNO=kxjYh1ykkQA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1415.1367946643.3114.python-list@python.org> (permalink)

Show all headers | View raw


Hi,

I've one machine with python3.2 (on Ubuntu 12.04), in the folder 
/usr/lib/python3.2 it is a subfolder dist-packages, maybe created at the 
install or created when I've installed the binding pyexiv2, I don't know.

Now, I've installed a new machine, again with Ubuntu 12.04 and therefore 
python3.2.
This new install hasn't any *-packages subfolder in /usr/lib/python3.2

Today I install PyQt5, the make and make install are executed without 
error but when I try:

 >>> from PyQt5 import QtGui
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
ImportError: No module named PyQt5

I go to check in /usr/lib/python3.2 and I see the install of PyQt5 has 
created a subfolder site-packages.
Is this naming dist-packages/site-packages critical for Python? (My 
intuition is yes!)

So, I've tried with:
 >>> sys.path.append('/usr/lib/python3.2/site_packages')
and, also, created a file __init__.py in /site-packages but that's not 
solved the problem.

Thanks for your advices.
-- 
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte 
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Why sfml does not play the file inside a function in this python code? cheirasacan@gmail.com - 2013-05-07 02:27 -0700
  Re: Why sfml does not play the file inside a function in this python code? MRAB <python@mrabarnett.plus.com> - 2013-05-07 11:53 +0100
    Re: Why sfml does not play the file inside a function in this python code? cheirasacan@gmail.com - 2013-05-07 06:56 -0700
      Re: Why sfml does not play the file inside a function in this python code? MRAB <python@mrabarnett.plus.com> - 2013-05-07 15:57 +0100
        Re: Why sfml does not play the file inside a function in this python code? cheirasacan@gmail.com - 2013-05-07 13:02 -0700
      Re: Why sfml does not play the file inside a function in this python code? Chris Angelico <rosuav@gmail.com> - 2013-05-08 01:06 +1000
      dist-packages or site-packages  in Python 3.2 ? Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2013-05-07 19:03 +0200

csiph-web