在跑yolov5s之前出现这个opencv-python的问题
github: skipping check (not a git repository)
requirements: opencv-python>=4.1.2 not found and is required by YOLOv5, attempting auto-update...
ERROR: Invalid requirement: "'opencv-python"
Traceback (most recent call last):
File "D:\yolov5-5.0\utils\general.py", line 110, in check_requirements
pkg.require(r)
File "D:\anaconda\envs\pytorch\lib\site-packages\pkg_resources_init.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
File "D:\anaconda\envs\pytorch\lib\site-packages\pkg_resources_init.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'opencv-python>=4.1.2' distribution was not found and is required by the application**
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\yolov5-5.0\train.py", line 500, in
check_requirements()
File "D:\yolov5-5.0\utils\general.py", line 114, in check_requirements
print(subprocess.check_output(f"pip install '{e.req}'", shell=True).decode())
File "D:\anaconda\envs\pytorch\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "D:\anaconda\envs\pytorch\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'pip install 'opencv-python>=4.1.2'' returned non-zero exit status 1.
但是我的pycharm里面显示的是我的版本是4.5.5
这个怎么解决呀