I'm trying to open Jupyter Notebook with Anaconda navigator (on Mac OSX) and I cannot open it properly. I keep getting this message in my terminal.
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/dateutil/parser.py", line 158
l.append("%s=%s" % (attr, `value`))
^
SyntaxError: invalid syntax
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
I tried checking my default version of python and it says my default version is python 3.6. However when I got to pip and try to install dateutil it says
pip install python-dateutil
Requirement already satisfied: python-dateutil in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
I am having trouble since I have multiple versions of python on my computer. What can I do?
I was having the same problem with anconda 4.5.1 python 3.6. Reinstalling the package solved the problem for me.
pip uninstall python-dateutil
pip install python-dateutil
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With