'Sox' is not recognized as an internal or external command in Python Conda enviroment

220 Views Asked by At

I opened a new virtual environment with Conda and use pip to install the requirements.txt file of a project I cloned from Github. It has sox as well, where the problem occurs.

You can see in the image that it was installed successfully. In the folder anaconda3/envs/my_venv/Lib/site-packages Two folders named sox-1.4.1.dist-info and sox were installed. You can see from the image as well.

I added both files to the system path. Then when I ran the following python code to experiment in my virtual environment;

import sox
# get the sample rate
tfm = sox.Transformer()
tfm.trim(5, 10.5)
tfm.compand()
# apply a fade in and fade out
tfm.fade(fade_in_len=1.0, fade_out_len=0.5)

I got the following error and no matter what I did it didn't resolve.

'sox' is not recognized as an internal or external command, operable program or batch file. SoX could not be found!

If you do not have SoX, proceed here: - - - http://sox.sourceforge.net/ - - -

If you do (or think that you should) have SoX, double-check your
path variables.

Installed packages

Installed sox files

0

There are 0 best solutions below