5
我想使用scikit-learn。我輸入了ImportError:沒有名爲sklearn的模塊(Python)
pip install -U scikit-learn
pip3 install sklearn
安裝它;但是當我鍵入
$ Python
>>> import sklearn
返回
ImportError: No module named sklearn
我跟着其他教程,但它不工作。此外,我的環境返回此警告:
If you have installed scikit-learn from source, please do not forget to build the package before using it: run
python setup.py install
ormake
in the source directory.
什麼是輸入終端的真實代碼?我試圖在終端輸入python setup.py install
,但它不起作用
我輸入了'$ python3'現在它可以工作。 –
想做如果我想使用python2.7嗎? –
我想如果你想使用python2.7,那麼你需要使用pip2.7 –