opencv 하위 버전으로 변경하기
CODEDRAGON ㆍDevelopment/Python
반응형
opencv 하위 버전으로 변경하기
· , 의 기존 설치 버전 삭제 후 하위 버전으로 설치합니다.
· 4.1.1.26 -> 3.4.2.16 으로 변경합니다.
패키지 설치 버전 확인
C:\CodeLab>pip list | findstr opencv opencv-contrib-python 4.1.1.26 opencv-python 4.1.1.26 C:\CodeLab> |
기존 설치 버전 삭제 - 4.1.1.26
pip uninstall opencv-contrib-python
pip uninstall opencv-python
C:\CodeLab>pip uninstall opencv-contrib-python Uninstalling opencv-contrib-python-4.1.1.26: Would remove: c:\python\python36\lib\site-packages\cv2\* c:\python\python36\lib\site-packages\opencv_contrib_python-4.1.1.26.dist-info\* Proceed (y/n)? y Successfully uninstalled opencv-contrib-python-4.1.1.26 ERROR: Exception: Traceback (most recent call last): File "C:\Python\Python36\lib\site-packages\pip\_internal\cli\base_command.py", line 153, in _main status = self.run(options, args) File "C:\Python\Python36\lib\site-packages\pip\_internal\commands\uninstall.py", line 82, in run uninstall_pathset.commit() File "C:\Python\Python36\lib\site-packages\pip\_internal\req\req_uninstall.py", line 450, in commit self._moved_paths.commit() File "C:\Python\Python36\lib\site-packages\pip\_internal\req\req_uninstall.py", line 290, in commit save_dir.cleanup() File "C:\Python\Python36\lib\site-packages\pip\_internal\utils\temp_dir.py", line 100, in cleanup rmtree(self._path) File "C:\Python\Python36\lib\site-packages\pip\_vendor\retrying.py", line 49, in wrapped_f return Retrying(*dargs, **dkw).call(f, *args, **kw) File "C:\Python\Python36\lib\site-packages\pip\_vendor\retrying.py", line 212, in call raise attempt.get() File "C:\Python\Python36\lib\site-packages\pip\_vendor\retrying.py", line 247, in get six.reraise(self.value[0], self.value[1], self.value[2]) File "C:\Python\Python36\lib\site-packages\pip\_vendor\six.py", line 693, in reraise raise value File "C:\Python\Python36\lib\site-packages\pip\_vendor\retrying.py", line 200, in call attempt = Attempt(fn(*args, **kwargs), attempt_number, False) File "C:\Python\Python36\lib\site-packages\pip\_internal\utils\misc.py", line 140, in rmtree onerror=rmtree_errorhandler) File "C:\Python\Python36\lib\shutil.py", line 494, in rmtree return _rmtree_unsafe(path, onerror) File "C:\Python\Python36\lib\shutil.py", line 389, in _rmtree_unsafe onerror(os.unlink, fullname, sys.exc_info()) File "C:\Python\Python36\lib\shutil.py", line 387, in _rmtree_unsafe os.unlink(fullname) PermissionError: [WinError 5] 액세스가 거부되었습니다: 'c:\\python\\python36\\lib\\site-packages\\~v2\\cv2.cp36-win_amd64.pyd' C:\CodeLab>pip uninstall opencv-contrib-python WARNING: Skipping opencv-contrib-python as it is not installed. C:\CodeLab>pip uninstall opencv-python Uninstalling opencv-python-4.1.1.26: Would remove: c:\python\python36\lib\site-packages\opencv_python-4.1.1.26.dist-info\* Proceed (y/n)? y Successfully uninstalled opencv-python-4.1.1.26 C:\CodeLab> |
하위 버전으로 설치 - 3.4.2.16
pip install opencv-python==3.4.2.16
pip install opencv-contrib-python==3.4.2.16
C:\CodeLab>pip install opencv-python==3.4.2.16 Collecting opencv-python==3.4.2.16 Downloading https://files.pythonhosted.org/packages/eb/6c/c3e960a495dc7ac5f542cc5a8cc177a218aba30aaed2b0d55c1dc5c1693d/opencv_python-3.4.2.16-cp36-cp36m-win_amd64.whl (33.8MB) |████████████████████████████████| 33.8MB 939kB/s Requirement already satisfied: numpy>=1.11.3 in c:\python\python36\lib\site-packages (from opencv-python==3.4.2.16) (1.14.4) Installing collected packages: opencv-python Successfully installed opencv-python-3.4.2.16 C:\CodeLab>pip install opencv-contrib-python==3.4.2.16 Collecting opencv-contrib-python==3.4.2.16 Downloading https://files.pythonhosted.org/packages/61/34/b0cbb7689ab23b37a7e1b6e2e8da228b2561ca39923a6403b1cf76ac2d31/opencv_contrib_python-3.4.2.16-cp36-cp36m-win_amd64.whl (39.6MB) |████████████████████████████████| 39.6MB 96kB/s Requirement already satisfied: numpy>=1.11.3 in c:\python\python36\lib\site-packages (from opencv-contrib-python==3.4.2.16) (1.14.4) Installing collected packages: opencv-contrib-python Successfully installed opencv-contrib-python-3.4.2.16 C:\CodeLab> |
패키지 설치 버전 확인
4.1.1.26 -> 3.4.2.16 으로 변경되었습니다.
C:\CodeLab>pip list | findstr opencv opencv-contrib-python 3.4.2.16 opencv-python 3.4.2.16 C:\CodeLab> |
'Development > Python' 카테고리의 다른 글
2.Summary - 2.함수 (0) | 2019.11.03 |
---|---|
deck.gl - 위치 데이터 시각화 라이브러리 (0) | 2019.11.03 |
WordCloud for Python (0) | 2019.11.02 |
오차 역전파 수행 과정 (0) | 2019.11.01 |
NumPy의 random 서브패키지 (0) | 2019.10.31 |