ATVGnet icon indicating copy to clipboard operation
ATVGnet copied to clipboard

Error when installing opencv

Open aseyedia opened this issue 4 years ago • 1 comments

https://github.com/lelechen63/ATVGnet/blob/2d4d1b03df1c706c6575b942fd2a1585347c4aab/requirement.txt#L9

The above line in requirements.txt throws a pretty long error that is not worth reproducing in its entirety:

Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /home/arta/anaconda3/envs/py2/bin/python /home/arta/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp88lNX5
       cwd: /tmp/pip-install-hhbrzT/opencv-python

I found this website, that, when translated to English, describes a workaround whereby you specify a version of opencv that is compatible with Python 2.7:

python -m pip install opencv-python==4.2.0.32

I hope this helps.

aseyedia avatar Sep 30 '21 00:09 aseyedia

Could u try on pip3? I'm not sure but some version error could be. And also I'm recommend use virtualenv to make virtual python develop environment.

insung3511 avatar Oct 03 '21 15:10 insung3511