我刚刚使用以下说明创建了一个新的pythong 3.6环境:
conda create -n py36-test python=3.6
source activate py36-test
python -m ipykernel install --name py36-test
source deactivate
确认格式正确且安装正确:
3.6.2 | packaged by conda-forge | (default, Jul 23 2017, 23:01:38)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)]
现在,内核确实出现了,我现在正在尝试将软件包安装到这个内核。
使用pip3 install numpy
,它正在安装,但它会安装到python3.5文件夹而不是python3.6。
Requirement already satisfied (use --upgrade to upgrade): numpy in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
在网上看,我还没有找到任何有关如何做到这一点的好资源。
答案 0 :(得分:1)
首先,您必须使用以下方法激活内核的env:
source activate kernel-name
现在,在该内核中,您将能够使用pip