Thanks David. Those discussion boards are indeed very helpful. Thanks for providing the lead.
Best, Mike On Mon, Apr 5, 2021 at 12:06 PM David Nicholson <nichol...@gmail.com> wrote: > You might find more people that can help with other libraries such as > XGBoost and conda on stack overflow, a list dedicated to those tools, or > their github repositories. > https://discuss.xgboost.ai/ > https://groups.google.com/a/continuum.io/g/conda > > David Nicholson, Ph.D. > https://nicholdav.info/ > https://github.com/NickleDave > Prinz lab <http://www.biology.emory.edu/research/Prinz/>, Emory > University, Atlanta, GA, USA > > > On Mon, Apr 5, 2021 at 11:28 AM C W <tmrs...@gmail.com> wrote: > >> Update: >> >> It seems I've already installed XGBoost before. But, I get the following >> error: >> >> >>> import xgboost >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File >> "/Users/mike/opt/miniconda3/lib/python3.8/site-packages/xgboost/__init__.py", >> line 9, in <module> >> from .core import DMatrix, DeviceQuantileDMatrix, Booster >> File >> "/Users/mike/opt/miniconda3/lib/python3.8/site-packages/xgboost/core.py", >> line 174, in <module> >> _LIB = _load_lib() >> File >> "/Users/mike/opt/miniconda3/lib/python3.8/site-packages/xgboost/core.py", >> line 157, in _load_lib >> raise XGBoostError( >> xgboost.core.XGBoostError: XGBoost Library (libxgboost.dylib) could not >> be loaded. >> Likely causes: >> * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for >> Windows, libomp.dylib for Mac OSX, libgomp.so for Linux and other UNIX-like >> OSes). Mac OSX users: Run `brew install libomp` to install OpenMP runtime. >> * You are running 32-bit Python on a 64-bit OS >> Error message(s): >> ['dlopen(/Users/mike/opt/miniconda3/lib/python3.8/site-packages/xgboost/lib/libxgboost.dylib, >> 6): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib\n >> Referenced from: >> /Users/mike/opt/miniconda3/lib/python3.8/site-packages/xgboost/lib/libxgboost.dylib\n >> Reason: image not found'] >> >> It seems OpenMP runtime the one I am missing. I can install by running >> > brew install libomp >> >> But, I don't have brew on this computer. Any work around? >> >> Thanks! >> >> On Mon, Apr 5, 2021 at 10:54 AM C W <tmrs...@gmail.com> wrote: >> >>> Hello again, >>> >>> I have 3 follow-up questions. >>> >>> 1) Upon searching, Anaconda website ( >>> https://anaconda.org/anaconda/py-xgboost) says that you can install >>> with, >>> > conda install -c anaconda py-xgboost >>> I have miniconda, not anaconda, I guess I just replace it anaconda with >>> minconda? >>> >>> 2) Using pip3 command, >>> > pip3 install xgboost >>> I don't have pip. >>> >>> 3) From XGBoost website, I now see that you can build XGBoost from >>> source (https://xgboost.readthedocs.io/en/latest/build.html) >>> >>> Question: will all the 3 methods install XGBoost in the same folder? >>> >>> Thanks a lot! >>> >>> On Mon, Apr 5, 2021 at 10:35 AM C W <tmrs...@gmail.com> wrote: >>> >>>> Hello all, >>>> >>>> I can't install pip on this computer. It has conda installed (probably >>>> not helpful). Is there a work around to install XGBoost and packages? >>>> >>>> I remember reading on stackoverflow, there were some simple commands to >>>> do it. I actually used it to install packages without pip. >>>> >>>> I can't find the post anymore, could anyone help? >>>> >>>> Thanks so much! >>>> >>>> Mike >>>> >>> _______________________________________________ >> scikit-learn mailing list >> scikit-learn@python.org >> https://mail.python.org/mailman/listinfo/scikit-learn >> > _______________________________________________ > scikit-learn mailing list > scikit-learn@python.org > https://mail.python.org/mailman/listinfo/scikit-learn >
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn