anaconda启动ipython_使用Anaconda安装了Python,启动ipython时出现内核错误

在尝试使用Anaconda启动IPython时,用户遇到了一个错误:'OperationalError: attempt to write a readonly database'。该错误不仅出现在命令行IPython中,使用ipython qtconsole同样会导致内核错误。用户确认已安装了正确的conda包,但问题仍然存在。
摘要由CSDN通过智能技术生成

我安装了Python版本的python,并更改了路径以允许python命令在终端中工作。在

但是,当我输入ipython时,我得到以下错误。在Traceback (most recent call last):

File "/Users/mrbighit/anaconda/bin/ipython", line 6, in

sys.exit(start_ipython())

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/__init__.py", line 120, in start_ipython

return launch_new_instance(argv=argv, **kwargs)

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 563, in launch_instance

app.initialize(argv)

File "", line 2, in initialize

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 92, in catch_config_error

return method(app, *args, **kwargs)

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 332, in initialize

self.init_shell()

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 348, in init_shell

ipython_dir=self.ipython_dir, user_ns=self.user_ns)

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/config/configurable.py", line 354, in instance

inst = cls(*args, **kwargs)

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 328, in __init__

**kwargs

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 465, in __init__

self.init_history()

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 1521, in init_history

self.history_manager = HistoryManager(shell=self, parent=self)

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/core/history.py", line 498, in __init__

self.new_session()

File "", line 2, in new_session

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/core/history.py", line 68, in needs_sqlite

return f(self, *a, **kw)

File "/Users/mrbighit/anaconda/lib/python2.7/site-packages/IPython/core/history.py", line 516, in new_session

NULL, "") """, (datetime.datetime.now(),))

OperationalError: attempt to write a readonly database

打开ipython qtconsole也会导致内核错误。我已经确定我有正确的conda列表包。在

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值