[英]How can I run jupyter notebook from my virtual environment?
I have created a virtual environment with Python3.3 which I need to interface with Siemens NX. 我已经使用Python3.3创建了一个虚拟环境,需要与Siemens NX进行交互。 conda create -n nxve python=3.3 anaconda
康达创建-n nxve python = 3.3 anaconda
I wan to run jupyter notebook from this virtual environment. 我想从这个虚拟环境中运行jupyter notebook。 When I try to install it, I'm getting version conflicts.
当我尝试安装它时,出现版本冲突。
activate nxev
conda install jupyter
Fetching package metadata ...........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in
conflict:
- jupyter -> ipykernel -> jupyter_client -> jupyter_core -> python 2.7*
- python 3.3*
Use "conda info <package>" to see the dependencies for each package.
How an I get jupyter notebook installed in this virtual environment? 如何在此虚拟环境中安装jupyter笔记本? Alternatively, is it possible to run the virtual environment kernel from the root installation of jupyter notebook?
另外,是否可以从jupyter notebook的根目录安装来运行虚拟环境内核?
The Jupyter stack often spawns other processes. Jupyter堆栈通常会产生其他进程。 My guess is that when you run python on the command line it will resolve to python 2.7.
我的猜测是,当您在命令行上运行python时,它将解析为python 2.7。 Try setting an alias:
尝试设置别名:
alias python=python3
Also make sure that your PATH and PYTHONPATH variables are not pointing to anything python2 related. 还要确保您的PATH和PYTHONPATH变量没有指向与python2相关的任何内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.