赞
踩
记录一下使用天池实验室GPU安装库过程中遇到的问题:
首先想使用sklearn:
from sklearn.metrics import f1_score
但是提示:‘No module named 'sklearn’
新建cell输入:
pip install sklearn
输出报错:
The following command must be run outside of the IPython shell:
$ pip install sklearn
The Python package manager (pip) can only be used from outside of IPython.
Please reissue the `pip` command in a separate terminal or command prompt.
See the Python documentation for more information on how to install packages:
https://docs.python.org/3/installing/
也就是说天池GPU用的是IPython shell,不能在cell里安装库,所以新建一个Terminal:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。