当我在终端下面的代码导入时很好
import pokitdok
但是当我在pycharm中尝试时,我得到以下错误
Traceback (most recent call last):
File "/home/rponnapureddy/Desktop/ramnath/pok.py", line 3, in <module>
import pokitdok
File "/home/rponnapureddy/Desktop/ramnath/pokitdok.py", line 30, in <module>
url = json.loads(url)
File "/usr/local/lib/python2.7/dist-packages/simplejson/__init__.py", line 505, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
也已经安装了简单的json sudo pip install simplejson 还有一件事是终端和pycharm都使用相同的python版本2.7.6只有那么为什么会出现错误