简体   繁体   English

如何在虚拟环境中运行jupyter notebook?

[英]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.

相关问题 Google CoLab - 如何运行位于我的 CoLab 环境的“文件”选项卡(即 /content/)中的 jupyter notebook 文件 - Google CoLab - How to run a jupyter notebook file that is in the 'Files' tab (i.e. /content/) of my CoLab environment 如何获得 Jupyter Notebook 以查看其打开环境中的模块? - How can I get a Jupyter Notebook to see the modules in the environment that it was opened in? 如何使用 vscode 将 jupyter notebook 连接到 pipenv 虚拟环境? - How can you connect a jupyter notebook to a pipenv virtual environment using vscode? 如何显示 Jupyter Notebook 的版本并在 Jupyter Notebook 中运行单元格? 我收到一个错误:错误的解释器 - How can I display the version of my Jupyter notebook and run cells in Jupyter notebooks? I get an error: bad interpreter 如何从本地环境以编程方式(在 Sagemaker 笔记本内)运行 jupyter 笔记本 - How to run a jupyter notebook programmatically (inside a Sagemaker notebook) from a local environment 如何在jupyter笔记本中运行spark-submit? - How can I run spark-submit in jupyter notebook? 如何跳转到 Jupyter 笔记本中当前正在运行的单元格? - How can I jump to the cell currently being run in a Jupyter notebook? 如何以管理员权限运行Jupyter Notebook? - How can i run Jupyter notebook in admin privilege? 如何跟踪Jupyter笔记本中当前正在运行的单元? - How can I follow the cell currently being run in a Jupyter notebook? 我可以打开 jupyter 笔记本,但无法在 Mac 上运行带有 python 脚本的笔记本 - I can open a jupyter notebook, but I cannot run the notebook with python script in it on my Mac
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM