Anaconda Navigator will only open Jupyter Notebook using the "base (root)" environment

Viewed 19

Anaconda Navigator will only open Jupyter Notebook using the "base (root)" environment, python 3.9.7. I have created another environment which is on python 2.7.18 as I need this code to be compatible with other people at work. The only problem is that Jupyter Notebook won't open when this environment is selected in Anaconda Navigator, and I can't open Jupyter Notebook in the base (root) environment and switch environment later.

When I try to open Jupyter, a terminal window pops up and gives the following message (I also have attached a screenshot):

File "/Users/ _ /opt/anaconda3/envs/ElectronEnergyCheck/lib/python2.7/site-packages/decorator.py", line 162 print('Error in generated code:', file=sys.stderr) ^ SyntaxError: invalid syntax

Saving session... ...copying shared history... ...saving history...truncating history files... ...completed.

[Process completed]

M1 MacBook Air, macOS 12.4, Anaconda Navigator 2.2.0, Jupyter Notebook 5.7.10

0 Answers
Related