-
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
-
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
pip install path\to\essentia-2.1b6.dev0-cp312-cp312-win_amd64.whl -
It's done
I haven't tried the procedure again, I hope I'm not forgetting anything.
I built this Python wheel file a few months ago following this recipe. With this, you are at step E.
Tensorflow is inside.
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. I assume it is libtensorflow-cpu-windows-x86_64-2.15.0 .
On my computer, with my .whl file, the tensorflow.dll is in the folder C:\Users\(user)\AppData\Local\Programs\Python\Python312\Lib\site-packages\essentia.libs with other dlls. But the file _essentia.cp312-win_amd64.pyd is in the 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 when it came out, and so far it's working for me.
Create a virtual environment?
You can do it as shown here in step E, with the two venv commands. Or as shown here.
An Internet search provides all the information on this subject.
I haven't done this on Windows, so the package is installed globally, and so far it's working fine for me. But on my Linux distribution, it's necessary.
As I understand it, this creates a local copy of the Python program files. You can do whatever you like in this virtual environment (testing, etc.), then simply delete the folder. This also avoids conflicts with other packages, or when upgrading. But if you want to stay in this virtual environment, you'll have to reopen it every time you use Essentia. It's an extra step. I tried it the first time, it worked. Then I installed the .whl file globally. It's simpler, and so far it's working well.