Select to view content in your preferred language

Problem installing Jupyter Notebook and ArcGIS Python API after Mac OSX 10.12.5 update, Syntax Errors!

2704
10
07-14-2017 02:43 PM
LarrySpear
New Contributor III

Anaconda Navigator installed OK. Jupyter Notebook Launch from Navigator and Terminal ("Jupyter-notebook") gets syntax errors. Also from Terminal ("conda install -c esri arcgis") gets syntax errors. Is the problem with latest OSX update 10.12.5?

0 Kudos
10 Replies
LarrySpear
New Contributor III

Atma,

I did a uninstalled of anaconda and did a reinstall with the command line this time.

I noticed this message that I Ignored the first time:

WARNING:

   You currently have a PYTHONPATH environment variable set. This may cause

   unexpected behavior when running the Python interpreter in Anaconda3.

   For best results, please verify that your PYTHONPATH only points to

   directories of packages that are compatible with the Python interpreter

   in Anaconda3: /Users/lspear/anaconda3

Do you wish the installer to prepend the Anaconda3 install location

to PATH in your /Users/lspear/.bash_profile ? [yes|no]

[yes] >>> yes

I edited my .bash_profile commenting out and replacing PYTHONPATH:

# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
# export PYTHONPATH="$PYTHONPATH:/Applications/QGIS.app/Contents/Resources/python"
export PYTHONPATH="/Users/lspear/anaconda3/bin:$PATH"
export DYLD_FRAMEWORK_PATH="/Applications/QGIS.app/Contents/Frameworks"
export QGIS_PREFIX="/Applications/QGIS.app/Contents/Resources"
export PATH

# added by Anaconda3 4.4.0 installer
export PATH="/Users/lspear/anaconda3/bin:$PATH"
.bash_profile (END)

This looks like it fixed the problem and Jupyter Notebook and also QGIS start OK plus the

arcgis python api installs and works!

-Thanks very much for your help!

0 Kudos