os.environ ['PATH']与echo%PATH%不匹配

时间:2021-11-18 22:44:08

I have PATH variable set for ffmpeg which I tested with CMD command echo %PATH% but Python's os.environ['PATH'] doesn't contain registry of it. I'm using Jupyter notebook on Windows.

我为ffmpeg设置了PATH变量,我使用CMD命令echo%PATH%测试,但Python的os.environ ['PATH']不包含它的注册表。我在Windows上使用Jupyter笔记本。

1 个解决方案

#1


0  

Rebooting session solved the problem. Somehow on my work computer reboot wasn't needed for environment variable to take effect.

重启会话解决了问题。在某种程度上我的工作计算机重启不需要环境变量生效。

#1


0  

Rebooting session solved the problem. Somehow on my work computer reboot wasn't needed for environment variable to take effect.

重启会话解决了问题。在某种程度上我的工作计算机重启不需要环境变量生效。