0
因此,我使用python 3和jupyter(使用pip)设置了我的虚拟局域网。所有工作正常,但如果我尝试导入keras它不会在jupyter工作,并告诉模块找不到。但如果我在终端中执行相同的文件(python3 test.py),它工作正常。无法在Jupyter中导入Keras
which jupyter
/usr/local/bin/jupyter
which python3
/Users/niro273/Desktop/xcorp/bin/python3
如果我做了pip3 list
这些就是结果。
jupyter (1.0.0)
jupyter-client (5.1.0)
jupyter-console (5.2.0)
jupyter-core (4.3.0)
Keras (2.0.8)
注 - 我已经在虚拟env中安装了jupyter(pip3 install jupyter)。那么我需要切换juypter执行路径吗?将不胜感激任何指导。
以前尝试过。问题是,虽然我在虚拟局域网中安装了jupyter,但其中jupyter的结果保持不变。如果我尝试重新安装 –
好了,让我们尝试另一种方式 - 请分享一下命令的结果:“要求已满足:/usr/local/lib/python3.6/site-packages中的jupyter” 'jupyter kernelspec list'? – desertnaut
哦,现在想通了究竟发生了什么。我已经使用这个命令来创建虚拟环境。 “virtualenv --system-site-packages -p python3”。所以这个网站看起来似乎是全球性的。感谢您的指导。 :) –