关于python:VideoFileClip导入错误

VideoFileClip import Error

本问题已经有最佳答案,请猛点这里访问。

我正试图从moviepy.editor导入vidofileclip

这是密码

1
from moviepy.editor import VideoFileClip

这是错误

1
2
3
4
5
6
   Traceback (most recent call last):
   File"E:\Spring2018\MastersProject\ProjectFiles\Alternate.py", line 7, in <module> from moviepy.editor import VideoFileClip
   File"C:\Python27\lib\site-packages\moviepy\editor.py", line 31, in <module> from .video.io.downloader import download_webfile
    File"C:\Python27\lib\site-packages\moviepy\video\io\downloader.py", line 7, in <module>
import requests
  ImportError: No module named requests

您需要安装请求。打开终端或命令提示并键入

1
pip install requests