Python 如何从虚拟环境中运行jupyter笔记本?

Python 如何从虚拟环境中运行jupyter笔记本?,python,jupyter,conda,nomachine-nx,virtual-environment,Python,Jupyter,Conda,Nomachine Nx,Virtual Environment,我已经用Python3.3创建了一个虚拟环境,我需要与西门子NX进行接口。 condacreate-nxvepython=3.3anaconda 我想从这个虚拟环境中运行jupyter笔记本。当我尝试安装它时,我会遇到版本冲突 activate nxev conda install jupyter Fetching package metadata ........... Solving package specifications: . UnsatisfiableError: The fol

我已经用Python3.3创建了一个虚拟环境,我需要与西门子NX进行接口。 condacreate-nxvepython=3.3anaconda

我想从这个虚拟环境中运行jupyter笔记本。当我尝试安装它时,我会遇到版本冲突

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.
激活nxev
康达安装jupyter
正在获取包元数据。。。。。。。。。。。
正在解决程序包规范:。
不满意错误:发现以下规格不符合要求
冲突:
-jupyter->ipykernel->jupyter_客户端->jupyter_核心->python 2.7*
-python 3.3*
使用“conda info”查看每个包的依赖项。

如何在这个虚拟环境中安装jupyter笔记本?或者,是否可以从jupyter notebook的根安装运行虚拟环境内核?

jupyter堆栈通常会生成其他进程。我的猜测是,当您在命令行上运行python时,它将解析为Python2.7。尝试设置别名:

alias python=python3

还要确保PATH和PYTHONPATH变量没有指向任何与python2相关的东西。

您可以尝试只安装
ipykernel
,它应该安装一个内核,您可以从根环境的
笔记本安装中使用该内核。但是,为什么要将所有的anaconda安装到这个新环境中?为什么不干脆
conda create-n nxve python=3.3
然后只安装您需要的软件包呢?如果没有为Python3.3打包
jupyter
的任何依赖项,我怀疑这会导致一些错误