Python3 cannot enter the environment

earlier installed the python3.4 version, packaged through the official website pkg, and then uninstalled without use. Recently, 3.7, which is to be installed through brew install python3 with python, cannot enter the environment with python3, but can be entered with python3.7.

the computer is a mac,sierra system.

Command prompt

/ / python3-- version
-- bash: / Library/Frameworks/Python.framework/Versions/3.4/bin/python3: No such file or directory

feels that the previous uninstall method is incorrect, causing python3 not to "redirect" the link to the new 3.7? Ask for help on how to solve it.

Jul.29,2021

modify the python home directory in ~ / .bash_profile configuration file


delete this folder / Library/Frameworks/Python.framework/Versions/3.4

Menu