When anaconda and miniconda are installed in Ubuntu 16.04 with Salome 8.3.0 installed, the environmental variables default provided by anaconda installer might interfere the loading or initialization of Salome , and the error results as follow:
Code: Select all
File "/home/user/salome_version8300/SALOME-8.3.0-UB16.04/./salome", line 26
except Exception, e:
^
SyntaxError: invalid syntax
1.
Code: Select all
# added by Miniconda3 installer
#export PATH="/home/user/miniconda3/bin:$PATH"
#modification made to use both Salome 8.3.0 and miniconda3 related applications
export PATH="$PATH:/home/user/miniconda3/bin"
# added by Anaconda3 installer
#export PATH="/home/user/anaconda3/bin:$PATH"
#modification to use both Salome 8.3.0 and anaconda3 related applications
export PATH="$PATH:/home/user/anaconda3/bin"
2.
or alternatively, alias can be utilized to conda applicationas as provided or given in
http://agilesofttech.com/how-to-activat ... gh-python/
Code: Select all
# added by Miniconda3 installer
#export PATH="/home/user/miniconda3/bin:$PATH"
#use alias
alias myminiconda='export PATH="/home/user/miniconda3/bin:$PATH"'
# added by Anaconda3 installer
#export PATH="/home/user/anaconda3/bin:$PATH"
#use alias
alias myanaconda='export PATH="/home/user/anaconda3/bin:$PATH"'
#For miniconda3
Code: Select all
$ myminiconda
Code: Select all
$ myanaconda
Anil Kunwar