imageio.ffmpeg.download()需要安装不同的imageio,并且imageio不会安装其他版本

时间:2019-05-17 01:50:11

标签: python moviepy

我想从moviepy运行VideoFileClip。我正在通过Anaconda运行Spyder。

当我尝试运行它时,出现错误:

  

RuntimeError:不建议使用imageio.ffmpeg.download()。改为使用“ pip install imageio-ffmpeg”。

当我尝试bot.dialog('reset', [ function(session) { session.send("Welcome Back"); session.beginDialog('/'); }] ) .reloadAction('reset', 'Ok, starting over.', { matches: /^reset/i, }); 时,我得到:

  

已经满足要求:c:\ programdata \ anaconda3 \ lib \ site-packages(0.3.0)中的imageio-ffmpeg

其他答案推荐pip install imageio-ffmpeg。我收到错误消息:

sudo pip install imageio==2.4.1

如果我尝试moviepy 1.0.0 has requirement imageio<3.0,>=2.5; python_version >= "3.4", but you'll have imageio 2.4.1 which is incompatible. Installing collected packages: imageio Found existing installation: imageio 2.5.0 Cannot uninstall 'imageio'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. ,我最终会得到...

conda remove imageio

因此,我担心如果我实际删除imageio并安装v2.4.1,我将自动删除moviepy,然后当我最终重新安装moviepy时,它将再次将imageio提升到2.5,从而完成了不兼容。

有帮助吗?

1 个答案:

答案 0 :(得分:0)

这是由于import pandas as pd import os from pathlib import Path # Directory of root folder rootdir = '/Users/name/SEC' # Iteration over sub-folders for subdir, dirs, _ in os.walk(rootdir): # filter out hidden dirs[:] = [name for name in dirs if not name.startswith(".")] subdir = Path(subdir) # Converation from TXT to CSV try: read_file1 = pd.read_csv(subdir/"num.txt",delimiter="\t", sep=',', error_bad_lines=False, index_col=False, dtype='unicode') read_file1.to_csv(subdir/"df1.csv") except FileNotFoundError: pass try: read_file2 = pd.read_csv(subdir/"sub.txt",delimiter="\t", sep=',', error_bad_lines=False, index_col=False, dtype='unicode') read_file2.to_csv(subdir/"df2.csv") except FileNotFoundError: pass

的更新引起的

改为使用此:

imageio