Installing new module

R

ronald brown

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
 
A

alex23

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top