python-midi
python-midi copied to clipboard
Could not import midi
Hi. I am new to python when I tried to import midi this message shown $ pip install midi Collecting midi Could not find a version that satisfies the requirement midi (from versions: ) No matching distribution found for midi
I tried also this
$ pip install python-midi
Collecting python-midi
Using cached python-midi-v0.2.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ikrcdmie/python-midi/
I am using python 2.7
I saw the same issue, except I was using python 3. The print statement above is not valid in Python 3 it needs parenthesis i.e.
print ("No sequencer available for '%s' platform." % platform)
pip install git+https://github.com/vishnubob/python-midi@feature/python3 should solve this problem
If you have problems with install @fengzean way, check that sudo apt-get install libasound2-dev swig are installed
try:( for python3+ ) pip3 install git+https://github.com/vishnubob/python-midi@feature/python3
try this instead : pip install py-midi
try this instead : pip install py-midi
It works. Thank you!