Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
757586b2
Commit
757586b2
authored
Oct 03, 2018
by
Nikita Titov
Committed by
Guolin Ke
Oct 03, 2018
Browse files
[python] updated warning (#1728)
parent
4394aaa4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
python-package/lightgbm/__init__.py
python-package/lightgbm/__init__.py
+5
-4
No files found.
python-package/lightgbm/__init__.py
View file @
757586b2
...
...
@@ -35,11 +35,12 @@ __all__ = ['Dataset', 'Booster',
'print_evaluation'
,
'record_evaluation'
,
'reset_parameter'
,
'early_stopping'
,
'plot_importance'
,
'plot_metric'
,
'plot_tree'
,
'create_tree_digraph'
]
# REMOVEME: remove warning after 2.3.0 version release
if
system
()
==
'Darwin'
:
warnings
.
warn
(
"Starting from version 2.2.1, the library file in distribution wheels for macOS "
"
will be
built by the Apple Clang compiler.
\n
"
"
is
built by the Apple Clang
(Xcode_9.4.1)
compiler.
\n
"
"This means that in case of installing LightGBM from PyPI via the ``pip install lightgbm`` command, "
"you
w
on't need to install the gcc compiler anymore.
\n
"
"Instead of that, you
'll
need to install the OpenMP library, "
"you
d
on't need to install the gcc compiler anymore.
\n
"
"Instead of that, you need to install the OpenMP library, "
"which is required for running LightGBM on the system with the Apple Clang compiler.
\n
"
"You can install the OpenMP library by the following command: ``brew install libomp``."
,
Future
Warning
)
"You can install the OpenMP library by the following command: ``brew install libomp``."
,
User
Warning
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment