i am still new to python and really need some help understanding an issue i am facing.
I have supposedly installed python3 successfully and i have ran a couple of projects with python but my problem is there are 3 different python paths on my machine and i dont know which one i am using.
i first did this:
which -a python3
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
/usr/local/bin/python3
/usr/bin/python3
Then i cd into each one of these files and did this ls -ld python3
lrwxr-xr-x 1 root admin 9 26 Jan 2020 python3 -> python3.8
lrwxr-xr-x 1 ******* admin 40 24 Mar 09:22 python3 -> ../Cellar/[email protected]/3.9.2_2/bin/python3
-rwxr-xr-x 1 root wheel 31488 22 Sep 2020 python3
Can someone explain to me what these mean and also why are they not pointing to the same file?
here is my ~/.bash_profile
# Setting PATH for Python 3.8
# The original version is saved in .bash_profile.pysave
alias python=python3
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export ANDROID_SDK=/Users/*****/Library/Android/sdk
export PATH=/Users/*******/Library/Android/sdk/platform-tools:$PATH
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
I am using a Mac with macOS Catalina as my operating system and bash as my shell.
python3are saved in different locations.bash_profilewon't matter at all. Perhaps also indicate which shell you are using (echo "$SHELL")