-
Notifications
You must be signed in to change notification settings - Fork 0
1. Installation
To use Essentia with Python, with Tensorflow, on Windows:
-
Download and install Python, with default settings
-
Download this file: https://nuage.numericloud.eu/s/A5KZSM88eyAxwnB
-
Optionally, create a virtual environment in the folder of your choice (see below)
-
Open Windows PowerShell and enter this command. Replace with the exact path on your computer
py -m pip install path\to\essentia-2.1b6.dev0-cp312-cp312-win_amd64.whl -
It looks like you'll get an error due to the recent release of NumPy 2. To install the old version:
py -m pip uninstall numpypy -m pip install numpy==1.26.4 -
It's done
I haven't tried the procedure again, I hope I'm not forgetting anything.
Create a virtual environment?
You can do it as shown here in step E, with the two venv commands. Or as shown here.
You can find more information on this subject on this page.
I made a virtual environment the first time, it worked. Then I installed the package globally (i.e. without a virtual environment), and so far it's working well.
I built this Python wheel file a few months ago following this recipe. With this file, you are at step E. There are logs to show that all tests have passed.
There's also another, more recent version of this python wheel, but Tensorflow is not inside. Look here and here. I haven't tried this method.
If I unzip my .whl file with 7-zip, there is a file tensorflow.dll inside.
On my computer, after installing my .whl file, the tensorflow.dll is in this folder, with other dlls:
C:\Users\(user)\AppData\Local\Programs\Python\Python312\Lib\site-packages\essentia.libs
But the file _essentia.cp312-win_amd64.pyd is in this folder:
C:\Users\(user)\AppData\Local\Programs\Python\Python312\Lib\site-packages\essentia
I first used Python 3.11. I upgraded to Python 3.12.3, and so far it's working for me.