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

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top