import moviepy 報錯
i was trying to create an application with Python using the moviepy library. I installed it using:
pip install moviepy
- 1
- 1
I found this from a MoviePy crash-course:
Import everything needed to edit video clips
from moviepy.editor import *
- 1
- 1
After trying to run this line i get this error:
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> # Import everything needed to edit video clips
... from moviepy.editor import *
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "C:\Python27\lib\site-packages\moviepy\editor.py", line 22, in <module>
from .video.io.VideoFileClip import VideoFileClip
File "C:\Python27\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 3, in <module>
from moviepy.video.VideoClip import VideoClip
File "C:\Python27\lib\site-packages\moviepy\video\VideoClip.py", line 20, in <module>
from .io.ffmpeg_writer import ffmpeg_write_image, ffmpeg_write_video
File "C:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 15, in <module>
from moviepy.config import get_setting
File "C:\Python27\lib\site-packages\moviepy\config.py", line 38, in <module>
FFMPEG_BINARY = get_exe()
File "C:\Python27\lib\site-packages\imageio\plugins\ffmpeg.py", line 86, in get_exe
raise NeedDownloadError('Need ffmpeg exe. '
imageio.core.fetching.NeedDownloadError: Need ffmpeg exe. You can download it by calling:
imageio.plugins.ffmpeg.download()
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
What is the problem here, and how can i fix it?
Run in a python console/shell (e.g. IPython/IDLE shell):
>>> import imageio
>>> imageio.plugins.ffmpeg.download()
- 1
- 2
- 1
- 2
Moviepy uses the module imageio, which uses the program ffmpeg. It needs to download it before it can use it, and you can download it with the above imageio command.
相關文章
- pycharm import 報錯PyCharmImport
- 修改 moviepy 2.0 使之相容原有的 import 方式Import
- go tool compile 報錯 could not import sync (file not found)GoCompileImport
- import提升導致Fundebug報錯:“請配置apikey”ImportAPI
- SAP ECC6.0安裝 Import ABAP階段報錯Import
- Python django報錯ImportError: cannot import name find_specPythonDjangoImportError
- This relative module was not found: * ./_import_dev in ./src/router/index.js報錯ImportdevIndexJS
- python from import 出錯PythonImport
- dbms_stats.import_table_stats匯入報錯ORA-20000Import
- Python視訊編輯庫:MoviePyPython
- Python音影片編輯庫:moviepyPython
- #import vs @importImport
- ubuntu下import matplotlib錯誤解決辦法UbuntuImport
- #import、#include、@import modules區別Import
- 專案問題總結3:MyEclipse匯入專案報錯-"The import javax.servlet cannot be resolved"EclipseImportJavaServlet
- require()、import、import()有哪些區別?UIImport
- Export/Import and NLS Considerations (此文章不錯,推薦)ExportImportIDE
- JavaScript報錯型別(報錯速查)JavaScript型別
- Python import相關內容區別介紹( import *** as 、from***import )PythonImport
- from module import 和 import 的區別Import
- from skimage.restoration import denoise_tv_chambolle 出現錯誤RESTImport
- SCSS @importCSSImport
- CSS @importCSSImport
- require OR importUIImport
- Import OverImport
- Import DataImport
- export/importExportImport
- Import Error: cannot import name ‘export_saved_modelImportErrorExport
- import tkinter與from tkinter import *的區別Import
- pyecharts安裝後import錯誤 ImportError: No module named 'pyecharts_snapshot'EchartsImportError
- JavaScript報錯JavaScript
- spark報錯Spark
- mybatis報錯MyBatis
- redis報錯Redis
- 報錯集
- 報錯+2
- playsound報錯
- 前端報錯前端