Jason Collis
Jason Collis

Reputation: 17

Bash PATH is not a valid identifier

I'm on a Mac, when I open my shell, it displays the following:

-bash: export: `/Users/jasoncollis/torch/install/bin/torch-activate:/usr/local/bin:/Users/jasoncollis/Library/Enthought/Canopy_64bit/User/bin:/Users/jasoncollis/anaconda/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin': not a valid identifier

This is my #.bash_profile# file:

# Setting PATH for Python 3.5
# The original version is saved in .bash_profile.pysave
PATH=":/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH

# added by Anaconda3 4.2.0 installer
export PATH=":/Users/jasoncollis/anaconda/bin:$PATH"


# Added by Canopy installer on 2016-11-10
# VIRTUAL_ENV_DISABLE_PROMPT can be set to '' to make the bash prompt show that Canopy is active, otherwise 1
alias activate_canopy="source '/Users/jasoncollis/Library/Enthought/Canopy_64bit/User/bin/activate'"
VIRTUAL_ENV_DISABLE_PROMPT=1 source '/Users/jasoncollis/Library/Enthought/Canopy_64bit/User/bin/activate'
export PATH=":/usr/local/bin:$PATH"

export LC_CTYPE=en_US.UTF-8

export PATH=":/Users/jasoncollis/torch/install/bin/torch-activate:$PATH"

export PATH=":/Users/jasoncollis/torch/install/bin:$PATH"

I've been trying to search for a solution but nothing I've tried has worked so far. Would be really grateful for any help!

Upvotes: 0

Views: 800

Answers (1)

afrischke
afrischke

Reputation: 3866

Make sure that you edit the right file. For login shells Bash executes .bash_profile and not #.bash_profile#. The later looks like a backup file created by a text editor or script.

Upvotes: 1

Related Questions