Juno Added incorrect Path

Discussion in 'Newbie Questions' started by roweder, Mar 13, 2019.

  1. roweder

    roweder Thread Starter
    Expand Collapse
    Member

    Joined:
    Mar 7, 2019
    Messages:
    7
    Likes Received:
    0
    I added an incorrect path after (hopefully) installing Anaconda. I have been googling for an hour and can't figure out how to remove this path.

    At the start of every terminal I open I see two lines:
    bash: /home/derek/.bashrc: line 171: syntax error near unexpected token `added'
    bash: /home/derek/.bashrc: line 171: `esac# added by Anaconda3 2018.12 installer'

    This is the line I accidentally added to the PATH:
    export PATH="/<path to anaconda>/bin:$PATH"

    I was rushing (trying to complete an assignment in python) and did not realize that I needed to change <path to anaconda> to the actual path to anaconda. I have wasted so much time because of this careless mistake and anaconda still doesn't work.
     
  2. roweder

    roweder Thread Starter
    Expand Collapse
    Member

    Joined:
    Mar 7, 2019
    Messages:
    7
    Likes Received:
    0
    hang on a second, I did not read the instructions clearly. I thought I needed to enter "export PATH="/<path to anaconda>/bin:$PATH"" into terminal. What happens if I put that in the terminal? Do I need to fix anything, since I have entered that command in terminal?

    I found what was causing the error in line 171 in the .bashrc file, it was a missing space before a comment.
     

Share This Page

Loading...