opencv, open3d 를 사용하기 위한 python, conda 설치 및 환경 설정을 위한 page 입니다.
Install python on Windows
제가 사용하는 OS는 Windows 11 입니다.
Python 설치
https://www.python.org/downloads/
Download Python
The official home of the Python Programming Language
www.python.org
opend3d module 설치를 위해서는 3.9 이하 version을 설치 해야 합니다.
Conda 설치
Anaconda | The World's Most Popular Data Science Platform
Anaconda is the birthplace of Python data science. We are a movement of data scientists, data-driven enterprises, and open source communities.
www.anaconda.com
위 2개의 프로그램을 설치하면, 자동으로 Spyder 가 설치 됩니다.
Spyder 실행
IPython Console에서 conda update 및 open3d 설치
conda update --all
conda install numpy
conda update numpy
conda install -c open3d-admin open3d
Python version은 3.9.13 이었으나, Windows OS version 때문인지 설치 Error가 발생하여 중단.
open3d 동작 환경을 찾아 보면,
http://www.open3d.org/docs/release/getting_started.html
Getting started — Open3D 0.16.0 documentation
To get started with using Open3D in your C++ applications, you can download a binary package archive from Github releases (since v0.15). These binary package archives contain the Open3D shared library built with all supported features and are available for
www.open3d.org
Windows 11이 OS 지원 목록에 없습니다.
Workaround를 찾기 위해, windows 11 장비에 Ubuntu 18.04+를 설치 해 봅니다.
1. Microsoft Store에서 Ubuntu 18.04를 찾아 설치합니다.
2. python version을 확인합니다.
- 3.6.x 가 default로 설치되어 있습니다.
3. conda command를 사용하여 open3d를 설치 합니다.
conda install -c open3d-admin open3d
4. 필수 package들을 설치 합니다.
conda install numpy scipy pandas matplotlib
5. Check open3d import test
import open3d as o3d
help (o3d)
6. Test 실행시에 발행하는 module error를 하나씩 설치 합니다.
conda install scikit-learn
conda install yaml pyyaml
# addict module은 conda command로 설치 되지 않음
pip3 install plyfile sklearn addict
7. 다시 check open3d import test를 수행합니다.
설치가 정상적으로 완료 되었다면, 위와 같은 결과를 확인 할 수 있습니다.