Traceback (most recent call last): File "INQ.py", line 3, in <module> from keras import backend as K File "/home/chutz/anaconda3/lib/python3.6/site-packages/keras/__init__.py", line 2, in <module> from . import backend File "/home/chutz/anaconda3/lib/python3.6/site-packages/keras/backend/__init__.py", line 31, in <module> _config = json.load(open(_config_path)) File "/home/chutz/anaconda3/lib/python3.6/json/__init__.py", line 299, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/home/chutz/anaconda3/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/home/chutz/anaconda3/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/home/chutz/anaconda3/lib/python3.6/json/decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 6 column 1 (char 102)
It should be that the way to open the json object is wrong, and the place where you need to use double quotes is useless, but I can't see the wrong place.
The solution is to delete the keras of python3.6 in anaconda and reinstall it again, and it will be solved......
1. Go to /path/to/anaconda/lib/python3.6/site-packages and delete keras related packages
2. Reinstall conda install keras-gpu