简体   繁体   中英

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. conda create -n nxve python=3.3 anaconda

I wan to run jupyter notebook from this virtual environment. 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? Alternatively, is it possible to run the virtual environment kernel from the root installation of jupyter notebook?

The Jupyter stack often spawns other processes. My guess is that when you run python on the command line it will resolve to 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM