728x90
반응형
<Visual Studio Code>
Create New Workspace
Make a Folder -> Open Folder
Set a Virtual environment
2022.10.26 - [Programming/Python] - Setup Python virtual environment
Next..(Windows OS) _ Install dependecies package
>> pip install opencv-contrib-python
Collecting opencv-contrib-python
Downloading opencv_contrib_python-4.6.0.66-cp36-abi3-win_amd64.whl (42.5 MB)
|████████████████████████████████| 42.5 MB 188 kB/s
Collecting numpy>=1.17.3
Downloading numpy-1.23.4-cp38-cp38-win_amd64.whl (14.7 MB)
|████████████████████████████████| 14.7 MB 1.7 MB/s
Installing collected packages: numpy, opencv-contrib-python
Successfully installed numpy-1.23.4 opencv-contrib-python-4.6.0.66
WARNING: You are using pip version 21.1.1; however, version 22.3 is available.
You should consider upgrading via the 'c:\users\rogue\onedrive\바탕 화면\opencv\venv\
scripts\python.exe -m pip install --upgrade pip' command.
>> python -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\rogue\onedrive\바탕 화면
\opencv\venv\lib\site-packages (21.1.1)
Collecting pip
Using cached pip-22.3-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.1.1
Uninstalling pip-21.1.1:
Successfully uninstalled pip-21.1.1
Successfully installed pip-22.3
>> pip install matplotlib
Collecting matplotlib
Downloading matplotlib-3.6.2-cp38-cp38-win_amd64.whl (7.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.2/7.2 MB 2.1 MB/s eta 0:00:00
Collecting fonttools>=4.22.0
Downloading fonttools-4.38.0-py3-none-any.whl (965 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 965.4/965.4 kB 2.1 MB/s eta 0:00:00
Collecting contourpy>=1.0.1
Downloading contourpy-1.0.6-cp38-cp38-win_amd64.whl (163 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.5/163.5 kB 2.0 MB/s eta 0:00:00
Collecting python-dateutil>=2.7
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 2.2 MB/s eta 0:00:00Collecting six>=1.5
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, pyparsing, pillow, kiwisolver, fonttools,
cycler, contourpy, python-dateutil, packaging, matplotlib
Successfully installed contourpy-1.0.6 cycler-0.11.0 fonttools-4.38.0
kiwisolver-1.4.4 matplotlib-3.6.2 packaging-21.3 pillow-9.3.0 pyparsing-3.0.9
python-dateutil-2.8.2 six-1.16.0
>>
In case of Ubuntu(Linux OS)..
$ pip install opencv-contrib-python==3.4.1.15
or
$ sudo apt install python3-opencv
version down-grade
$ sudo -H pip3 install --upgrade --ignore-installed pip setuptools
728x90
반응형
'Manual' 카테고리의 다른 글
[VSC]How to Use Compiler in VisualStudioCode (0) | 2022.12.19 |
---|---|
[ROS2] Install ROS2 : Foxy (0) | 2022.12.18 |
[venv] Python 가상환경 설치 방법 (0) | 2022.10.26 |
[ROS]How to install ROS Melodic ver 1.0 (0) | 2022.10.12 |
[Git]connection with github repository (0) | 2022.09.29 |