Installing new module

Discussion in 'Python' started by ronald brown, Oct 12, 2010.

  1. ronald brown

    ronald brown Guest

    I uzipped to python Lib directory and try to run sample prog got this
    error. What am I doing wrong?

    Traceback (most recent call last):
    File "F:/Python25/Lib/MIDIUtil-0.87/a11", line 3, in <module>
    from midiutil.MidiFile import MIDIFile
    ImportError: No module named midiutil.MidiFile
    ronald brown, Oct 12, 2010
    #1
    1. Advertising

  2. ronald brown

    alex23 Guest

    On Oct 12, 1:34 pm, ronald brown <> wrote:
    > I uzipped to python Lib directory and try to run sample prog got this
    > error. What am I doing wrong?


    At a guess, you're not reading the documentation.

    You should add modules to Lib/site-packages, not directly to Lib/
    itself. In Python 2.6+, you can also place them in %USERPROFILE%/
    Application Data/Python/site-packages.
    alex23, Oct 12, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Daniel Ortmann
    Replies:
    4
    Views:
    571
    Skip Montanaro
    Jul 2, 2003
  2. Darren Dale
    Replies:
    2
    Views:
    293
    Darren Dale
    Jul 20, 2004
  3. mathieu gontier
    Replies:
    1
    Views:
    321
    Alex Martelli
    Sep 1, 2004
  4. Maric Michaud
    Replies:
    0
    Views:
    7,185
    Maric Michaud
    Jun 24, 2006
  5. Replies:
    2
    Views:
    449
    Thomas 'PointedEars' Lahn
    Mar 11, 2008
Loading...

Share This Page