Dies ist der erste Codeblock.print('Installing dependencies...')
!apt-get update -qq && apt-get install -qq libfluidsynth2 fluid-soundfont-gm build-essential libasound2-dev libjack-dev
!pip install -qU pyfluidsynth pretty_midi
!pip install -qU magenta
# Hack to allow python to pick up the newly-installed fluidsynth lib.
# This is only needed for the hosted Colab environment.
import ctypes.util
orig_ctypes_util_find_library = ctypes.util.find_library
def proxy_find_library(lib):
if lib == 'fluidsynth':
return 'libfluidsynth.so.1'
else:
return orig_ctypes_util_find_library(lib)
ctypes.util.find_library = proxy_find_library
print('Importing libraries and defining some helper functions...')
from google.colab import files
import magenta
import note_seq
import tensorflow
print('
print(magenta.__version__)
print(tensorflow.__version__)
< /code>
Und dies ist das gedruckte Ergebnis des obigen Blocks. < /p>
Installing dependencies...
W: Skipping acquire of configured file 'main/source/Sources' as repository 'https://r2u.stat.illinois.edu/ubuntu jammy InRelease' does not seem to provide it (sources.list entry misspelt?)
E: Package 'libfluidsynth2' has no installation candidate
Preparing metadata (setup.py) ... done
Preparing metadata (setup.py) ... done
Preparing metadata (setup.py) ... done
Preparing metadata (setup.py) ... done
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) ... error
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Importing libraries and defining some helper functions...
< /code>
Ich habe nach dieser Art von Problemen gesucht und ich denke, es ist wahrscheinlich, dass das Colab -Notizbuch zu alt und veraltet ist, um heutzutage für die Standardinstallationen auf Colab verwendet zu werden. Also habe ich versucht, mit dem PIP -Upgrade zu beginnen, aber dies bringt die Colab -Sitzung neu, weil bestimmte Bibliotheken mehrmals importiert wurden und nicht viel hilft. Was soll ich beheben, um diesen Code richtig ausführen zu verwenden?