I made a python script to install ffmpeg and add it to path in windows but it seemed to have no effect at all. It doesn’t give me any errors or anything. It literally just does nothing at all.
This was the code I used:
os.environ[“Path”] += f”{os.getcwd()}/ffmpeg-7.0-essentials_build/bin”
os.environ.update()
and I tried several iterations of “path” including “PATH”, “Path”, “path” and none of them made a difference.
I also tried making a new variable:
new_environ = os.environ[“Path”] + f”{os.getcwd()}/ffmpeg-7.0-essentials_build/bin”
os.environ[“Path”] = new_environ
os.environ.update()
which again made no difference.
I know there are other questions like that but to be honest none of the ones I saw were helpful.
JustThisWeeb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.