Now I am not able to run conda or any other programme installed through conda and getting this error : "SyntaxError: invalid syntax"
I have conda installed in my computer(Ubuntu 16.04) with python 2.7 and 3.6.7 (two different virtual environments). Recently I upgraded pip to the latest version. And the the problem began. Initially I faced "Import error". I fixed it by reverting back (uninstall-reinstall) to the older version as suggested here: Error after upgrading pip: cannot import name 'main'
Now I am unable to run pip, conda or anyother programme installed through conda.
This is what I get when I call conda:
(base) mml2@ryzenpc:~$ conda
Traceback (most recent call last):
File "/home/mml2/miniconda2/bin/conda", line 12, in <module>
from conda.cli import main
File "/home/mml2/miniconda2/lib/python3.6/site-packages/conda/__init__.py", line 19, in <module>
from .common.compat import text_type, iteritems
File "/home/mml2/miniconda2/lib/python3.6/site-packages/conda/common/compat.py", line 87, in <module>
from json import JSONDecodeError
File "/home/mml2/miniconda2/lib/python3.6/json/__init__.py", line 106, in <module>
from .decoder import JSONDecoder, JSONDecodeError
File "/home/mml2/miniconda2/lib/python3.6/json/decoder.py", line 3, in <module>
import re
File "/home/mml2/miniconda2/lib/python3.6/re.py", line 122, in <module>
import enum
File "/home/mml2/Libs/LibsDyogen/enum.py", line 66
raise NotImplementedError, \
^
SyntaxError: invalid syntax
(base) mml2@ryzenpc:~$
Can anyone help me to solve this issue? Please let me know if you need any other details regarding this problem.