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

2024-10-01 19:19:31 发布

您现在位置:Python中文网/ 问答频道 /正文

我用Python3.3创建了一个虚拟环境,我需要它与西门子NX进行接口。 conda create-n nxve python=3.3Python

我想从这个虚拟环境运行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.

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


Tags: installto版本packagecreate虚拟环境笔记本jupyter
1条回答
网友
1楼 · 发布于 2024-10-01 19:19:31

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

alias python=python3

还要确保您的PATH和PYTHONPATH变量没有指向python2相关的任何内容。在

相关问题 更多 >

    热门问题