[scikit-learn] Can I install Python ML library such as XGBoost without pip?
nicholdav at gmail.com
Mon Apr 5 12:04:14 EDT 2021
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.
David Nicholson, Ph.D.
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 <tmrsg11 at gmail.com> wrote:
> It seems I've already installed XGBoost before. But, I get the following
> >>> import xgboost
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> line 9, in <module>
> from .core import DMatrix, DeviceQuantileDMatrix, Booster
> line 174, in <module>
> _LIB = _load_lib()
> line 157, in _load_lib
> raise XGBoostError(
> xgboost.core.XGBoostError: XGBoost Library (libxgboost.dylib) could not be
> 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):
> 6): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib\n
> Referenced from:
> 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?
> On Mon, Apr 5, 2021 at 10:54 AM C W <tmrsg11 at 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
>> 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
>> 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 <tmrsg11 at 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!
> scikit-learn mailing list
> scikit-learn at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the scikit-learn