I am running Windows 10. Today I installed lightgbm through anaconda using
conda install -c conda-forge lightgbm
However, when I tried to import lightgbm (running Jupyter Notebook), I got the following error trace:
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
<ipython-input-2-5dacb4a27011> in <module>
----> 1 import lightgbm as lgb
D:\RI\0Teaching Materials\QTDM-II\P30 LGBM\lightgbm.py in <module>
10
11 from subprocess import check_output
---> 12 print(check_output(["ls", "../input"]).decode("utf8"))
13
14 # Any results you write to the current directory are saved as output.
~\Anaconda3\lib\subprocess.py in check_output(timeout, *popenargs, **kwargs)
334
335 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
--> 336 **kwargs).stdout
337
338
~\Anaconda3\lib\subprocess.py in run(input, timeout, check, *popenargs, **kwargs)
416 if check and retcode:
417 raise CalledProcessError(retcode, process.args,
--> 418 output=stdout, stderr=stderr)
419 return CompletedProcess(process.args, retcode, stdout, stderr)
420
CalledProcessError:Command '['ls', '../input']' returned non-zero exit status 2.
What is preventing me from importing lightgbm?
Update:- Thinking that this is a Windows issue, I installed Anaconda on Ubuntu (Oracle VB) and tried import. Unfortunately, same error occurred in this environment too. What could be behind this?
from import lightgbm returned non-zero exit status 2
No comments:
Post a Comment