为anaconda2中的python3安装numpy

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012033124/article/details/84000720

jupyter默认的py3是用anaconda2安装的 ,一直提示没有numpy
网上的numpy安装方式都是直接pip3 install numpy,然而对应的并不是anaconda中的py3.
于是使用以下命令:

source activate py36  #激活py3.6,之前将其命名为py36
conda install numpy  #在py3.6中安装numpy

参考:https://stackoverflow.com/questions/30492623/using-both-python-2-x-and-python-3-x-in-ipython-notebook

猜你喜欢

转载自blog.csdn.net/u012033124/article/details/84000720