简体   繁体   中英

Can't install Python 3 / Jupyter on Catalina properly

I'm trying to install python 3 and jupyter on Catalina.
I installed the latest version (3.7) from Anaconda distribution, but if I type python --version in the command line I get "Python 2.7.16"
If I type jupyter notebook , i get zsh: command not found: jupyter
I have also installed python 3.8.2 from python.org, I thought this might help.
What can I do now to get it running?

try use python3 --version to see if you have python3 installed or not

suggest use brew install python to install python3 https://docs.brew.sh/Homebrew-and-Python

This is the solution for the jupyter problem:

  1. cd into your installation directory of anaconda in terminal
  2. Go into bin folder and drag the binary named conda into the terminal and type init zsh

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