๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/TroubleShooting

openbabel ์„ค์น˜ ์—๋Ÿฌ Error: SWIG failed. Is Open Babel installed?

by ๐Ÿงž‍โ™‚๏ธ 2022. 1. 24.
๋ฐ˜์‘ํ˜•

์œˆ๋„์šฐ(Windows 10)์—์„œ Openbabel ํŒŒ์ด์ฌ(Python) ๋ชจ๋“ˆ์„ condaํ™˜๊ฒฝ์—์„œ๋“  ์ผ๋ฐ˜ ํŒŒ์ด์ฌ ํ™˜๊ฒฝ์—์„œ๋“  ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์ˆ˜ํ–‰ํ•˜๋‹ˆ ์„ค์น˜๊ฐ€ ์ž˜ ๋˜์ง€ ์•Š์•˜๋‹ค.

pip install -U openbabel

argument์ธ -U๋ฅผ ๋นผ๊ณ  ํ•ด๋„ ๋งˆ์ฐฌ๊ฐ€์ง€์˜€๋‹ค. ์—๋Ÿฌ ๋ฉ”์‹œ์ง€์˜ ์ค‘๊ฐ„์—๋Š” ๋Œ€๋žต ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฉ”์‹œ์ง€๊ฐ€ ๋ณด์˜€๋‹ค.

 

์—๋Ÿฌ ๋ฉ”์‹œ์ง€
Error: SWIG failed. Is Open Babel installed?

 

์—ฌ๊ธฐ์ €๊ธฐ ์ฐพ์•„๋ดค์ง€๋งŒ ์ฃ„๋‹ค ์‹คํŒจํ•ด์„œ ๊ทธ๋ƒฅ ์•„๋ž˜์˜ ์‚ฌ์ดํŠธ์— ๋“ค์–ด๊ฐ€์„œ whlํŒŒ์ผ์„ ๋ฐ›์•„์„œ ํ•ด๊ฒฐํ–ˆ๋‹ค.

https://www.lfd.uci.edu/~gohlke/pythonlibs/#openbabel

 

Python Extension Packages for Windows - Christoph Gohlke

by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine. Updated on 19 January 2022 at 04:27 UTC. This page provides 32 and 64-bit Windows binaries of many scientific open-source extension packages for the official CPyth

www.lfd.uci.edu

 

openbabel์˜ ๊ฒฝ์šฐ GUI ๋ฒ„์ „์„ ๋ฐ›์€ ์ดํ›„์— python module์„ ์„ค์น˜ํ•˜๋ผ๊ณ  ๋˜์–ด์žˆ๋Š”๋ฐ ๋‚ด ๊ฒฝ์šฐ openbabel-3.1.1์ด ์„ค์น˜๋˜์–ด ์žˆ์–ด์„œ 3.1.1์— conda์˜ python 3.7๋ฒ„์ „์— ๋งž์ถ”์–ด 64๋น„ํŠธ๊นŒ์ง€ ๊ณ ๋ คํ•˜์—ฌ ์•„๋ž˜์˜ ํŒŒ์ผ์„ ๋ฐ›์•˜๋‹ค.

openbabelโ€‘3.1.1โ€‘cp37โ€‘cp37mโ€‘win_amd64.whl

 

ํ•ด๋‹น ํŒŒ์ผ์„ ์„ค์น˜ํ•  ๋•Œ๋Š”

 

pip install openbabelโ€‘3.1.1โ€‘cp37โ€‘cp37mโ€‘win_amd64.whl

๊ณผ ๊ฐ™์ด ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์‹คํ–‰ํ•˜๋ฉด ๋œ๋‹ค.

 

 

์ฐธ๊ณ ๋กœ GUI ๋ฒ„์ „ ๋‹ค์šด๋กœ๋“œ ๋งํฌ๋Š” ์ด๊ฑฐ๋‹ค.

https://github.com/openbabel/openbabel/releases/tag/openbabel-3-1-1

 

Release Open Babel 3.1.1 · openbabel/openbabel

This version primarily reflects fixes for packaging on Linux and FreeBSD relative to 3.1.0. No features or significant bug fixes were involved.

github.com

 

 

 

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€