When I run:
from moviepy.editor import *
I get this error:
Traceback (most recent call last):
File "C:\Users\myname\PycharmProjects\moviepy_1\main.py", line 1, in <module>
from moviepy.editor import *
ModuleNotFoundError: No module named 'moviepy'
However, when I check pip list in command prompt I can see it's installed (along with everything else it needs, ffmpeg, numpy, etc.)
Why can't my program find the moviepy module? Is it looking in the wrong place? How do I find out where it is looking, how do I tell it to look in the right place?
I am using Windows 10. I am not using a virtual environment. I'm using the PyCharm IDE. Please be explicit with your answer, I have only a basic understanding of Python and programming.
As we discussed in the comments, the issue is that the Python interpreter that being used by your command terminal is different than the one being used by Pycharm IDE. You have moviepy
installed in the terminal's python env, but not in the Pycharm IDE.
To make sure that the Pycharm IDE's interpreter has the package or install new packages:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.