简体   繁体   English

如何确保在 videohash 中找到 ffmpeg?

[英]How can I make sure ffmpeg is found with videohash?

I have been trying to deploy an app on Digital Ocean;我一直在尝试在 Digital Ocean 上部署一个应用程序; I have installed the necessary packages but I keep getting an error from the videohash library: videohash.exceptions.FFmpegNotFound I have tried adding the ffmpeg package directory to PATH by running:我已经安装了必要的软件包,但我不断从 videohash 库中收到错误: videohash.exceptions.FFmpegNotFound我尝试通过运行将 ffmpeg package 目录添加到PATH

export PATH="$PATH:/workspace/web/.heroku/python/lib/python3.10/site-packages/ffmpeg"

I also tried adding it as an environment variable at app and component level and adding the export command to ./bashrc but nothing I do seems to work.我还尝试在应用程序和组件级别将其添加为环境变量,并将导出命令添加到./bashrc但我所做的一切似乎都不起作用。 Is there another way I could try to solve this issue?还有其他方法可以尝试解决此问题吗?

Can you setting a variable in ipython console你可以在 ipython 控制台中设置一个变量吗

import os, os.environ['PATH']+=':/workspace/web/.heroku/python/lib/python3.10/site-packages/ffmpeg'

in Tools → Preference → iPython console → Startup → Lines.

I suppose a similar solution can be applied if Python console is being used instead of iPython console.如果使用 Python 控制台而不是 iPython 控制台,我想可以应用类似的解决方案。

You can also check here你也可以在这里查看

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何确保cygwin通话结束? - How can I make sure that a cygwin call is finished? 如何检查以确保网络连接成功与否? - How can I check to make sure a network connection was successful or not? 我如何确保对函数的递归调用是我认为的样子? - How can I make sure that a recursive call to a function is what I think it is? 如何确保我只打印一次? - How to make sure I only print once? Python 3.7 + tkInter:如何确保为按钮分配了文件中的单个功能? - Python 3.7 + tkInter : How can I make sure a button is assigned an individual function from a file? 如何确保用户在python 3.5.1中的Guess游戏中输入正确的输入? - How can I make sure users are turning in correct input, for Guess game in python 3.5.1? 如何确保终端搜索venv文件夹而不是第三方模块的默认python位置? - How can I make sure that terminal searches the venv folder and not the default python location for third party modules? 如何搜索文件夹和文件以确保它们遵循正确的命名约定? - How can I search folders and files to make sure they follow the correct naming convention? 如何确保某些类和函数调用可以访问所有 GUI 输入变量? - How do I make sure all GUI input variables can be accessed by certain classes and function calls? 如果超出剪辑限制,我如何确保我的货币转换器显示? (Python) - How can I make sure that my currency converter displays if above clip limit? (Python)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM