vehicle-detection icon indicating copy to clipboard operation
vehicle-detection copied to clipboard

RUN ERROR ?

Open lyxlty opened this issue 7 years ago • 8 comments

ModuleNotFoundError: No module named 'moviepy'

ModuleNotFoundError: No module named 'cv2' Please tell me how to solve it?

lyxlty avatar Dec 20 '17 09:12 lyxlty

you should install opencv and moviepy to your python lib .

NekoCCcN avatar Feb 21 '18 00:02 NekoCCcN

@lyxlty I have the same problem and I want to know had you resolve this problem?

SummerLiu95 avatar Mar 28 '18 00:03 SummerLiu95

I install movipy and opencv then solve it

lyxlty avatar Mar 28 '18 08:03 lyxlty

An environment yml file is provided now. If you are using miniconda or anaconda for python lib management, you can install all related dependencies by typing:

conda env create -f environment.yml

You can use this environment file: environment-gpu.yml

JunshengFu avatar Mar 28 '18 11:03 JunshengFu

Hi !@JunshengFu I want to run the code. So I want to know how to get the dependencies installed. Today you give environment-gpu.yml file, I think the answer is that go to the project's root directory with the tool of Anaconda Prompt and then run the

 conda env create -f environment.yml

All the dependencies will be installed. Is the process correct?

SummerLiu95 avatar Mar 28 '18 13:03 SummerLiu95

@BarryLiu1995 That is the correct way to create the environment if you have installed anaconda or miniconda, but you need to activate the environment when you run my python code. If you are not familiar with conda, I would suggest you read this: https://conda.io/docs/user-guide/tasks/manage-environments.html

JunshengFu avatar Mar 29 '18 07:03 JunshengFu

@JunshengFu Thanks a lot! So you mean I need to run activate myenv to activate the environment acording to the reference material you give. default

SummerLiu95 avatar Mar 29 '18 13:03 SummerLiu95

@BarryLiu1995 The created environment in my case is named "evn-gpu", so if you are a windows user you need to run

activate evn-gpu

JunshengFu avatar Mar 29 '18 13:03 JunshengFu