1.在ipython下无法使用的解决方案
尝试在Anaconda/lib/site-packages中新建path.pth文件,里面内容为指定的虚拟环境名下的lib/site-packages位置。例如:
D:\ProgramData\Anaconda3\envs\deep_learning\Lib\site-packages
2.jupyter不能使用的处理办法
在conda环境中使用命令安装ipykernel库
pip install ipykernel
通过ipykernel为jupyter添加python2.7环境
python -m ipykernel install --name env_name
此处:env_name指的是你安装深度学习的conda虚拟环境的名称
再次打开jupyter notebook时,菜单kernel中会多出添加的内核,切换到深度学习的python内核就可以正常使用了。