์ ๋ Ubuntu์ ์๋ก์ด ์ฌ์ฉ์์ด๋ฉฐ ์ต๊ทผ์ Windows 10๊ณผ ํจ๊ป Ubuntu 14.04 ๋ฐ์คํฌํ ๋ฒ์ ์ ๋ค์ด๋ก๋ํ์ต๋๋ค.
๋ด PC ๊ตฌ์ฑ: 4GB RAM, 64๋นํธ
ํฐ๋ฏธ๋์์ ๋ค์ ๋ช
๋ น์ ์ฌ์ฉํ์ฌ Anaconda๋ฅผ ์ค์นํ์ต๋๋ค(์น์ฌ์ดํธ์์ ๋ค์ด๋ก๋ํ ํ).
bash Anaconda3-2.5.0-Linux-x86_64.sh
์ค์น์ ์ฑ๊ณตํ์ต๋๋ค.
์ด์ ๋ด ์ฐ๋ถํฌ ํฐ๋ฏธ๋์์ http://xgboost.readthedocs.org/en/latest/build.html#building -on-ubuntu-debian ์ง์นจ์ ๋ฐ๋ผ ๋จ๊ณ๋ฅผ ๋ฐ๋์ต๋๋ค.
git clone --recursive https://github.com/dmlc/xgboost cd xgboost; make -j4
sudo apt-get install python-setuptools
(์ฑ๊ณต)cd python-package
sudo python setup.py install
5. ๋ช ๋ น์ ์ฌ๋ฌ ์ค ๋ค์ ์ค๋ฅ๋ฅผ ๋ฐํํฉ๋๋ค. ์ค๋ฅ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
'๊ฐ์ ธ์ค๊ธฐ ์ค๋ฅ: numpy.distutils.core๋ผ๋ ๋ชจ๋์ด ์์ต๋๋ค'
๋๊ตฌ๋ ์ง xgboost๋ฅผ ์ค์นํ ์ ์๋๋ก ์ด ์ค๋ฅ๋ฅผ ์ ๊ฑฐํ๋ ๋ฐฉ๋ฒ์ ์ ์ํ ์ ์์ต๋๊น?
5๋จ๊ณ ์ดํ์ ์ ์ฒด ๋ก๊ทธ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
_sidvash@sidvash-HP-Pavilion-g6-Notebook-PC:~/xgboost/python-package$ sudo python setup.py ์ค์น
['/home/sidvash/xgboost/python-package/xgboost/../../lib/libxgboost.so']์์ libxgboost๋ฅผ ์ค์นํฉ๋๋ค.
์ค์น ์คํ
์คํ bdist_egg
์คํ ์ค์ธ egg_info
xgboost.egg-info/requires.txt์ ์๊ตฌ์ฌํญ ์ฐ๊ธฐ
xgboost.egg-info/PKG-INFO ์ฐ๊ธฐ
xgboost.egg-info/top_level.txt์ ์ต์์ ์ด๋ฆ ์ฐ๊ธฐ
xgboost.egg-info/dependency_links.txt์ dependency_links ์ฐ๊ธฐ
๋งค๋ํ์คํธ ํ์ผ 'xgboost.egg-info/SOURCES.txt' ์ฝ๊ธฐ
๋งค๋ํ์คํธ ํ
ํ๋ฆฟ 'MANIFEST.in' ์ฝ๊ธฐ
๊ฒฝ๊ณ : 'xgboost/include' ๋๋ ํ ๋ฆฌ์์ '_'์ ์ผ์นํ๋ ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค.
๊ฒฝ๊ณ : 'xgboost/src' ๋๋ ํ ๋ฆฌ์์ '_'์ ์ผ์นํ๋ ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค.
๊ฒฝ๊ณ : ๋ฐฐํฌํ์์ 'xgboost/build/_'์ ์ผ์นํ๋ ์ด์ ์ ํฌํจ๋ ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค.
๊ฒฝ๊ณ : ๋ฐฐํฌํ์์ 'xgboost/_.o'์ ์ผ์นํ๋ ์ด์ ์ ํฌํจ๋ ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค.
๊ฒฝ๊ณ : ๋ฐฐํฌํ์์ '_.pyo'์ ์ผ์นํ๋ ์ด์ ์ ํฌํจ๋ ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค.
๊ฒฝ๊ณ : ๋ฐฐํฌํ์์ '_.pyc'์ ์ผ์นํ๋ ์ด์ ์ ํฌํจ๋ ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค.
๋งค๋ํ์คํธ ํ์ผ 'xgboost.egg-info/SOURCES.txt' ์์ฑ ์ค
build/bdist.linux-x86_64/egg์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ฝ๋ ์ค์น
install_lib ์คํ
build_py ์คํ ์ค
build/bdist.linux-x86_64/egg ์์ฑ
build/bdist.linux-x86_64/egg/xgboost ๋ง๋ค๊ธฐ
build/lib.linux-x86_64-2.7/xgboost/libpath.py -> build/bdist.linux-x86_64/egg/xgboost ๋ณต์ฌ
build/lib.linux-x86_64-2.7/xgboost/VERSION ๋ณต์ฌ -> build/bdist.linux-x86_64/egg/xgboost
build/lib.linux-x86_64-2.7/xgboost/build-python.sh -> build/bdist.linux-x86_64/egg/xgboost ๋ณต์ฌ
build/lib.linux-x86_64-2.7/xgboost/__init__.py -> build/bdist.linux-x86_64/egg/xgboost ๋ณต์ฌ
build/lib.linux-x86_64-2.7/xgboost/training.py -> build/bdist.linux-x86_64/egg/xgboost ๋ณต์ฌ
build/lib.linux-x86_64-2.7/xgboost/compat.py -> build/bdist.linux-x86_64/egg/xgboost ๋ณต์ฌ
build/lib.linux-x86_64-2.7/xgboost/core.py -> build/bdist.linux-x86_64/egg/xgboost ๋ณต์ฌ
build/lib.linux-x86_64-2.7/xgboost/sklearn.py -> build/bdist.linux-x86_64/egg/xgboost ๋ณต์ฌ
build/lib.linux-x86_64-2.7/xgboost/plotting.py ๋ณต์ฌ -> build/bdist.linux-x86_64/egg/xgboost
๋ฐ์ดํธ ์ปดํ์ผ build/bdist.linux-x86_64/egg/xgboost/libpath.py to libpath.pyc
๋ฐ์ดํธ ์ปดํ์ผ build/bdist.linux-x86_64/egg/xgboost/ init .py to init .pyc
๋ฐ์ดํธ ์ปดํ์ผ build/bdist.linux-x86_64/egg/xgboost/training.py to training.pyc
๋ฐ์ดํธ ์ปดํ์ผ build/bdist.linux-x86_64/egg/xgboost/compat.py to compat.pyc
๋ฐ์ดํธ ์ปดํ์ผ build/bdist.linux-x86_64/egg/xgboost/core.py to core.pyc
๋ฐ์ดํธ ์ปดํ์ผ build/bdist.linux-x86_64/egg/xgboost/sklearn.py to sklearn.pyc
๋ฐ์ดํธ ์ปดํ์ผ build/bdist.linux-x86_64/egg/xgboost/plotting.py to plotting.pyc
build/bdist.linux-x86_64/egg์ ํจํค์ง ๋ฐ์ดํฐ ์ค์น
install_data ์คํ ์ค
๋ณต์ฌ /home/sidvash/xgboost/python-package/xgboost/../../lib/libxgboost.so -> build/bdist.linux-x86_64/egg/xgboost
๋น๋/bdist.linux-x86_64/egg/EGG-INFO ์์ฑ
xgboost.egg-info/PKG-INFO ๋ณต์ฌ -> build/bdist.linux-x86_64/egg/EGG-INFO
xgboost.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO ๋ณต์ฌ
xgboost.egg-info/dependency_links.txt ๋ณต์ฌ -> build/bdist.linux-x86_64/egg/EGG-INFO
xgboost.egg-info/not-zip-safe ๋ณต์ฌ -> build/bdist.linux-x86_64/egg/EGG-INFO
xgboost.egg-info/requires.txt ๋ณต์ฌ -> build/bdist.linux-x86_64/egg/EGG-INFO
xgboost.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO ๋ณต์ฌ
'dist/xgboost-0.4-py2.7.egg' ์์ฑ ๋ฐ 'build/bdist.linux-x86_64/egg' ์ถ๊ฐ
'build/bdist.linux-x86_64/egg'(๋ฐ ๊ทธ ์๋์ ๋ชจ๋ ๊ฒ) ์ ๊ฑฐ
xgboost-0.4-py2.7.egg ์ฒ๋ฆฌ
'/usr/local/lib/python2.7/dist-packages/xgboost-0.4-py2.7.egg'(๋ฐ ๊ทธ ์๋์ ๋ชจ๋ ๊ฒ) ์ ๊ฑฐ
/usr/local/lib/python2.7/dist-packages/xgboost-0.4-py2.7.egg ์์ฑ
xgboost-0.4-py2.7.egg๋ฅผ /usr/local/lib/python2.7/dist-packages๋ก ์ถ์ถ
xgboost 0.4๋ easy-install.pth์์ ์ด๋ฏธ ํ์ฑ ๋ฒ์ ์
๋๋ค.
/usr/local/lib/python2.7/dist-packages/xgboost-0.4-py2.7.egg ์ค์น
xgboost==0.4์ ๋ํ ์ฒ๋ฆฌ ์ข
์์ฑ
scipy๋ฅผ ๊ฒ์ํ๋ค
์ฝ๊ธฐ https://pypi.python.org/simple/scipy/
๋ฒ ์คํธ ๋งค์น: scipy 0.17.0
๋ค์ด๋ก๋ https://pypi.python.org/packages/source/s/scipy/scipy-0.17.0.zip#md5 =28a4fe29e980804db162524f10873211
scipy-0.17.0.zip ์ฒ๋ฆฌ ์ค
/tmp/easy_install-2YPTnH/scipy-0.17.0/setup.cfg ์ฐ๊ธฐ
scipy-0.17.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2YPTnH/scipy-0.17.0/egg-dist-tmp-z4NE5c ์คํ
์ญ์ถ์ (๊ฐ์ฅ ์ต๊ทผ ํธ์ถ ๋ง์ง๋ง):
ํ์ผ "setup.py", 39ํ,
url='https://github.com/dmlc/xgboost')
์ค์ ์์ ํ์ผ "/usr/lib/python2.7/distutils/core.py", 151ํ
dist.run_commands()
run_commands์์ ํ์ผ "/usr/lib/python2.7/distutils/dist.py", ๋ผ์ธ 953
self.run_command(cmd)
run_command์์ ํ์ผ "/usr/lib/python2.7/distutils/dist.py", 972ํ
cmd_obj.run()
ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", 73ํ, ์คํ ์ค
self.do_eg_install()
do_egg_install์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", 96ํ
cmd.run()
ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", ๋ผ์ธ 381, ์คํ ์ค
self.easy_install(์คํ, self.no_deps ์๋)
easy_install์์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 597ํ
return self.install_item(์์, ์ฌ์, tmpdir, deps, True)
install_item์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 648ํ
self.process_distribution(์ฌ์, dist, deps)
process_distribution์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 694ํ
[์๊ตฌ์ฌํญ], self.local_index, self.easy_install
ํ์ผ "/usr/lib/python2.7/dist-packages/pkg_resources.py", 620ํ, ํ์ธ ์ค
dist = best[req.key] = env.best_match(req, ws, ์ค์น ํ๋ก๊ทธ๋จ)
ํ์ผ "/usr/lib/python2.7/dist-packages/pkg_resources.py", 858ํ, best_match
return self.obtain(req, installer) # ๋ค์ด๋ก๋/์ค์น ์๋
ํ์ผ "/usr/lib/python2.7/dist-packages/pkg_resources.py", ๋ผ์ธ 870, ํ๋
๋ฐํ ์ค์น ํ๋ก๊ทธ๋จ(์๊ตฌ ์ฌํญ)
easy_install์์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 616ํ
๋ฐํ self.install_item(spec, dist.location, tmpdir, deps)
install_item์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 646ํ
dists = self.install_eggs(์ฌ์, ๋ค์ด๋ก๋, tmpdir)
install_eggs์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 834ํ
self.build_and_install(setup_script, setup_base) ๋ฐํ
build_and_install์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 1040ํ
self.run_setup(setup_script, setup_base, args)
run_setup์์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", ๋ผ์ธ 1025
run_setup(setup_script, args)
run_setup์์ ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", 50ํ
๋๋ค: execfile(
ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", 100ํ, ์คํ ์ค
๋ฐํ ํจ์()
ํ์ผ "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", 52ํ,
{' ํ์ผ ':setup_script, ' ์ด๋ฆ ':' ๋ฉ์ธ '}
ํ์ผ "setup.py", 265ํ,
setup_package์ ํ์ผ "setup.py", 253ํ
ImportError: numpy.distutils`_๋ผ๋ ๋ชจ๋์ด ์์ต๋๋ค.
์ฌ๋ฐ๋ฅธ ํ์ด์ฌ์ ์ฌ์ฉํ๊ณ ์์ต๋๊น?
๋ ธ๋ ฅํ๋ค
which python
๋๋
readlink -f `which python`
Anaconda๋ฅผ ์ฌ์ฉ ์ค์ธ์ง ์ฌ๋ถ๋ฅผ ํ์ธํฉ๋๋ค.
์๋ ํ์ธ์,
๋๊ธ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
์ด๋ค ํ์ด์ฌ์ด ๋ค์์ ๋ฐํํฉ๋๋ค:
/home/sidvash/anaconda3/bin/python
@brickerino : ์ค๋ช ์ 5๋จ๊ณ ์ดํ์ ์ ์ฒด ๋ก๊ทธ๋ฅผ ๋ฐฉ๊ธ ์ ๋ฐ์ดํธํ์ต๋๋ค. ๋์์ด ๋๋์ง ํ์ธํ์ธ์.
๋ฉ์์ง๋ numpy๊ฐ ์๋ค๋ ๊ฒ์ ๋ณด์ฌ์ค๋๋ค. PYTHON_PATH๊ฐ ์๋์ฝ๋ค ํจํค์ง ๊ฒฝ๋ก๋ฅผ ๊ฐ๋ฆฌํค๋์ง ํ์ธํ์ญ์์ค. ๋ํ ์์ง ์ค์น๋์ง ์์ ๊ฒฝ์ฐ conda๊ฐ numpy๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค.
@phunterlau :
๋ค์ ๋ช
๋ น์ ์ฌ์ฉํ์ฌ python_path๋ฅผ ํ์ธํ์ต๋๋ค.
python -c "์์คํ
๊ฐ์ ธ์ค๊ธฐ; ์ธ์(sys.path)"
๋ค์์ ๋ฐํํฉ๋๋ค .
['', '/home/sidvash/anaconda3/lib/python35.zip', '/home/sidvash/anaconda3/lib/python3.5', '/home/sidvash/anaconda3/lib/python3.5/plat- ๋ฆฌ๋
์ค', '/home/sidvash/anaconda3/lib/python3.5/lib-dynload', '/home/sidvash/anaconda3/lib/python3.5/site-packages', '/home/sidvash/anaconda3/lib /python3.5/site-packages/Sphinx-1.3.5-py3.5.egg', '/home/sidvash/anaconda3/lib/python3.5/site-packages/cryptography-1.0.2-py3.5- linux-x86_64.egg', '/home/sidvash/anaconda3/lib/python3.5/site-packages/setuptools-19.6.2-py3.5.egg']
์ด๊ฒ์ ๋์๊ฒ ๊ด์ฐฎ์ ๋ณด์ธ๋ค. ๊ทธ๋ฌ๋ ์ฒซ ๋ฒ์งธ ๊ฒ์๋ฌผ์์ "/usr/lib/python2.7/dist-packages" ๊ฒฝ๋ก๊ฐ ์ค๋ฅ์ ์ฌ๋ฌ ์ค์ ๋ํ๋๋ ๊ฒ์ ๋ณด์๊ณ ์ด๊ฒ์ด ํ์ด์ฌ ๊ฒฝ๋ก์๋ ์์ด์ผ ํ๋์ง ํ์คํ์ง ์์ต๋๋ค. ์๋๋ค. ๋น์ ์ ๋ฌด์์ด๋ ์ ์ํ ์ ์์ต๋๊น?
๋๋ ๋ํ ๋ค์ ์
Anaconda Cloud API ์ฌ์ดํธ ์ฌ์ฉ https://api.anaconda.org
ํจํค์ง ๋ฉํ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ค๋ ์ค: ....
ํจํค์ง ์ฌ์ ํด๊ฒฐ: ...........................
/home/sidvash/anaconda3 ํ๊ฒฝ์ ์ค์นํ๊ธฐ ์ํ ํจํค์ง ๊ณํ:
๋ค์ ํจํค์ง๊ฐ ๋ค์ด๋ก๋๋ฉ๋๋ค.
| ํจํค์ง | ๋น๋ |
| --- | --- |
| ํ -0.29.0 | py35_0 82KB |
๋ค์ ํจํค์ง๊ฐ ์ ๋ฐ์ดํธ๋ฉ๋๋ค.
wheel: 0.26.0-py35_1 --> 0.29.0-py35_0
๊ณ์([y]/n)? ์์ด
ํจํค์ง๋ฅผ ๊ฐ์ ธ์ค๋ ์ค...
ํ -0.29.0-p 100% |#################################| ์๊ฐ: 0:00:01 50.38kB/s
ํจํค์ง ์ถ์ถ ์ค...
[ ์๋ฃ ]|############################################### #####| 100%
ํจํค์ง ์ฐ๊ฒฐ ํด์ ์ค...
[ ์๋ฃ ]|############################################### #####| 100%
ํจํค์ง ์ฐ๊ฒฐ ์ค...
[ ์๋ฃ ]|############################################### #####| 100
์ด๊ฒ์ ์ค์นํ ํ sudo python setup.py install ์ ์๋ํ์ง๋ง ์ด์ด ์์์ง๋ง ์ฌ์ ํ ๋์ผํ ์ค๋ฅ
๊ธ์, ๋น์ ์ ์์คํ ๊ณผ ์๋์ฝ๋ค์ ํ์ด์ฌ๊ณผ ํ์ด์ฌ 2 3 ๋ ๋ค ์๊ณ ์์คํ ์ setuptool์ด ์์ด์ ์ผ๋ถ ํ๊ฒฝ์ด ์๋ง์ด ๋์์ต๋๋ค. virtualenv๋ฅผ ๋ง๋ค๊ณ numpy scikit-learn ๋ฐ xgboost๋ฅผ ์ค์นํ๋ ๊ฒ์ด ์ข์ต๋๋ค.
@phunterlau : ๊ทํ์ ์๊ฒฌ์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค. ๋์์ ์ฃผ์ ์ ์ ๋ง ๊ฐ์ฌํฉ๋๋ค.
์ ๋ Ubuntu์ ์ด๋ณด์์ด๋ฉฐ ๋ ์ด์ ์ผ์ ์๋ง์ผ๋ก ๋ง๋ค๊ณ ์ถ์ง ์์ต๋๋ค.
์ด ์์ ์ ์ํํ๋ ๋จ๊ณ๋ณ ํ๋ก์ธ์ค๋ฅผ ์๋ ค์ฃผ์๊ฒ ์ต๋๊น?
๋ค์์ ์ฌ์ฉํ์ฌ virtualenv๋ฅผ ๋ง๋ค ์ ์๋ค๋ ๊ฒ์ ์๊ณ ์์ต๋๋ค. (conda์์๋ virtualenv๋ฅผ ์ค์นํ์ง ์๋ ๊ฒ์ด ์ข์ต๋๋ค.)
conda create -n <env_name> python=3.5 anaconda
๊ทธ๋ฐ ๋ค์ ์ด ํ๊ฒฝ์ numpy scikit-learn ๋ฐ xgboost๋ฅผ ์ด๋ป๊ฒ ์ค์นํด์ผ ํฉ๋๊น?
๋ค์์ ํตํด ํ๊ฒฝ์ ํ์ฑํํ ์ ์์ต๋๋ค.
source activate <env_name>
๋ค์๊ณผ ๊ฐ์ด ์ถ๊ฐ ์ค์น๋ฅผ ์งํํด์ผ ํฉ๋๋ค.
pip install numpy
pip install scikit-learn
xgboost์ ๊ฒฝ์ฐ ์ด ๋ชจ๋ ๋จ๊ณ๋ฅผ ๋ฐ๋ณตํด์ผ ํฉ๋๊น?
git clone --recursive https://github.com/dmlc/xgboost cd xgboost; make -j4
cd python-package;
sudo python setup.py install
์ข์, ๊ทธ๋์ ๋๋ ๋ค์์ ์ํํ์ง๋ง ์ฌ์ ํ ๋๊ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
conda create -n snakes python=3.5 numpy pandas scikit-learn
sidvash:~$ source activate snakes
discarding /home/sidvash/anaconda3/bin from PATH
prepending /home/sidvash/anaconda3/envs/snakes/bin to PATH
cd xgboost/python-package
sudo python setup.py install
์ด๋ค ์ด์ ๋ก ์ค์น๊ฐ ๊ณ์ "/usr/lib/python2.7/dist-packages"๋ฅผ ์ฐธ์กฐํฉ๋๋ค.
์๋ ๋จ๊ณ์ ๋ฐ๋ผ ์ ๋ฆฌํ์ต๋๋ค.
์ด๊ฒ์ ๋งค๋ ฅ์ฒ๋ผ ์๋ํ์ต๋๋ค. github ์ฌ์ดํธ์์ ์ต์ ๋ฒ์ ์ ์ค์นํ๋ ค๋ฉด github์์ ์ค์นํด์ผ ํ๋ค๊ณ ์ธ๊ธํ๊ธฐ ๋๋ฌธ์ ์ด์ ์ ์๋ํ์ง ์์์ต๋๋ค.
๋๋ ์ด ์ง๋ฌธ์ ์คํ ์ค๋ฒํ๋ก์ ๊ฒ์ํ๊ณ ๋๊ตฐ๊ฐ๊ฐ ์ด๊ฒ์ ์ ์ํ์ต๋๋ค. ๋งํฌ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
http://stackoverflow.com/questions/35332300/importerror-no-module-named-numpy-distutils-core-ubuntu-xgboost-installation/35493714#35493714
์ด์จ๋ ๋์์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. @brickerino @phunterlau
pip install xgboost
๋์์ด ๋์๋ค๋ ๋คํ์
๋๋ค :-)
'pip install xgboost'๊ฐ ์๋ํ์ง ์์ผ๋ฉด ๋ค์์ ์ํํ์ฌ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์๋ ์์ต๋๋ค.
sudo -s
python setup.py install
๋ฌธ์ ๋ 'sudo python'์ด anacoda์ python ๋์ ์์คํ ์ Python์ ์ฌ์ฉํ๋ค๋ ๊ฒ์ ๋๋ค.
์์ธํ ๋ด์ฉ: http://stackoverflow.com/questions/30626160/anaconda-python-not-available-from-sudo
@knguyen0105 ์๊ณ ํ์ จ์ต๋๋ค ....๊ณ ๋ง์์....:)
@knguyen0105 ์ค๋ฅ ๋ฐ์
"/home/ashish/anaconda2/bin/../lib/libgomp.so.1: ๋ฒ์ `GOMP_4.0'์(๋ฅผ) ์ฐพ์ ์ ์์(/home/ashish/anaconda2/lib/python2.7/site-packages/xgboost์์ ํ์) //lib/libxgboost.so)"
์๋ฌด๋ ๋์ธ ์ ์์ต๋๊น?
PYTHON_PATH
์(๋) ๋ฌด์์ ๋ฐํํ ๊น์?
@knguyen0105 ์ ์๊ฒ ์
knguyen0105, Ubuntu ์์ฝ, anaconda 2์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
๏ผ knguyen0105, ์ ๋ง ๊ฐ์ฌํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
'pip install xgboost'๊ฐ ์๋ํ์ง ์์ผ๋ฉด ๋ค์์ ์ํํ์ฌ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์๋ ์์ต๋๋ค.
๋ฌธ์ ๋ 'sudo python'์ด anacoda์ python ๋์ ์์คํ ์ Python์ ์ฌ์ฉํ๋ค๋ ๊ฒ์ ๋๋ค.
์์ธํ ๋ด์ฉ: http://stackoverflow.com/questions/30626160/anaconda-python-not-available-from-sudo