I'm still figuring out how to set environment variables and paths and such, so this was bound to happen I suppose, But before trying to get started with python, I didn't know it already came installed on Ubuntu 20.04. So I tried installing it more than once. Consequently, my pythonpath is completely messed up and even with help (from someone unfamiliar with ubuntu) I couldn't get it untangled. I'm not really sure what to do now and would appreciate some help!
Here is what the output from my terminal gives me using various commands to find my pythonpath: terminal window
I've tried fixing it in the past but with no luck, and honestly can't remember what I've tried.
Here is my /etc/environment
paths: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
My ~/.bashrc
:
case $- in
*i*) ;;
*) return;;
esac
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
shopt -s checkwinsize
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s>
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
alias njson-start='json-server -H 0.0.0.0 --watch db.json -p 3001 -d 2000'
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
export PATH="/home/mark/.local/bin:$PATH"
export PATH="/home/user/.local/bin:$PATH"
export PYTHONPATH="/home/user/.local/lib/python3.8"
export ANDROID_HOME="/home/user/Android/Sdk"
export PATH=$PATH:$ANDROID_HOME
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export REACT_EDITOR=atom
You can see the commented lines at the bottom here where I previously tried to fix the path with no luck.
My ~/.bash_profile
:
export ANDROID_SDK=/home/user/Android/Sdk
export PATH=/home/user/Android/Sdk/platform-tools:/home/user/Android/Sdk:/home/user/.local/bin:/home/mark/.local/bin:/home/user/.nvm/version>
export PATH=$PATH:$(yarn global bin)
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:/home/user/Android/Sdk/platform-tools
Please let me know what I should do, I'm really eager to fix this asap. And if it comes to wiping my system, I'll do that. That just seems risky and I'd rather not. Thank you!