Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform pip安装后无法在Google AI平台笔记本中导入sklearn_pandas_Google Cloud Platform_Jupyter Notebook_Sklearn Pandas_Gcp Ai Platform Notebook - Fatal编程技术网

Google cloud platform pip安装后无法在Google AI平台笔记本中导入sklearn_pandas

Google cloud platform pip安装后无法在Google AI平台笔记本中导入sklearn_pandas,google-cloud-platform,jupyter-notebook,sklearn-pandas,gcp-ai-platform-notebook,Google Cloud Platform,Jupyter Notebook,Sklearn Pandas,Gcp Ai Platform Notebook,我正在玩谷歌的AI平台笔记本(目前仍处于测试阶段)。我上传了一个依赖于sklearn_pandas的python脚本,出现以下错误: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-4-24f79569b87

我正在玩谷歌的AI平台笔记本(目前仍处于测试阶段)。我上传了一个依赖于sklearn_pandas的python脚本,出现以下错误:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-24f79569b871> in <module>
----> 1 from sklearn_pandas import DataFrameMapper

ImportError: No module named 'sklearn_pandas'
我重新启动了内核,但它仍然得到同样的支持。我这样做是为了确认sklearn pandas确实已安装:

!pip list |grep -i sklearn

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
sklearn-pandas (1.8.0)
有人试过这个吗?在此之前我使用过谷歌colab,我从来没有遇到过这样的困难。如果GoogleColab级别的用户体验可以移植到这个测试版产品中,那将是一件好事。我认为这可能是一个一般的python模块导入问题,而不仅仅是sklearn\u pandas。

我认为可能是

%pip install sklearn-pandas

而不是“!pip”

我在笔记本电脑上证实了这一点,问题解决了。
%pip install sklearn-pandas