gpt4 book ai didi

python - SQL iPython Magic 扩展不会加载

转载 作者:太空宇宙 更新时间:2023-11-03 14:14:01 33 4
gpt4 key购买 nike

刚刚安装了 iPython-SQL 扩展,但是当我运行时

%load_ext sql

我收到错误“SQL 模块不是 IPython 扩展”。我是通过 pip 安装的

pip install ipython-sql

当这似乎不起作用时,即使从 Github 下载文件并执行代码也是如此。搜索“sql 模块不是 IPython 扩展”。本身在谷歌中产生了 0 个结果,所以我有点迷失在我可能做错的地方。

我正在运行 OSX El Capitan(禁用 SIS),我的 Python/iPython 版本如下:

Python 2.7.10 |Anaconda 2.4.0 (x86_64)| (default, Oct 19 2015, 18:31:17) 
[GCC 4.2.1 (Apple Inc. build 5577)]

最佳答案

由于您使用的是 Anaconda 的 Python,请确保使用相关的包管理器 conda 安装:

conda install -c conda-forge ipython-sql=0.3.6

来源:https://anaconda.org/conda-forge/ipython-sql

关于python - SQL iPython Magic 扩展不会加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34967288/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com