anaconda配置python2.7 sklearn,python miniconda安装sklearn但未找到i

为了安装sklearn,我在win10计算机中安装了miniconda,并在Anaconda命令行中输入:(C:\Python\Miniconda3) C:\Users\apple>conda install sklearn

显示安装成功

^{pr2}$

我的电脑里有python2.7和python3.6,默认环境是python3.6。但是,当我在python3.6命令行中输入以下命令时,我发现python3.6中没有sklearn:Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64

bit (AMD64)] on win32

Type "copyright", "credits" or "license()" for more information.

>>> import sklearn

Traceback (most recent call last):

File "", line 1, in

import sklearn

ModuleNotFoundError: No module named 'sklearn'

我在python 2.7命令行中输入相同的顺序,还有:>>> import sklearn

Traceback (most recent call last):

File "", line 1, in

import sklearn

ImportError: No module named sklearn

但是在conda命令行中,它显示sklearn已成功安装。在

你能告诉我原因并解决它吗?在

你可能感兴趣的:(sklearn)