如何将jupyter-notebook指向anaconda ased python3,而不是先前安装的python 2.7(不是基于anaconda)

时间:2019-01-14 23:47:02

标签: python anaconda jupyter-notebook

jupyter笔记本随anaconda一起安装,但我在Windows机器上安装了python 2.7。 ** jupyter kernelspec list命令显示以下结果

Available kernels:
  python3    D:\anaconda3\share\jupyter\kernels\python3**

但是当我使用 将pandas作为pd命令导入时出现以下错误

ImportError                               Traceback (most recent call last)
<ipython-input-1-7dd3504c366f> in <module>
----> 1 import pandas as pd
c:\python27\lib\site-packages\pandas\__init__.py in <module>
     17 if missing_dependencies:
     18     raise ImportError(
---> 19         "Missing required dependencies {0}".format(missing_dependencies))
     20 del hard_dependencies, dependency, missing_dependencies
     21 
ImportError: Missing required dependencies ['numpy']

我的问题是为什么jupyter笔记本在基于anaconda的python3上指向python2.7。如何将其更改为指向python3?

0 个答案:

没有答案