SQL iPython Magic Extension无法加载 [英] SQL iPython Magic Extension won't load
问题描述
只是安装了iPython-SQL扩展,但是当我运行时
Just installed the iPython-SQL extenson, but when I run
%load_ext sql
我收到一个错误"sql模块不是IPython扩展." 我是通过pip通过
I get an error "The sql module is not an IPython extension." I installed it via pip by
pip install ipython-sql
,即使从Github下载文件并执行代码,这似乎也不起作用. 搜索"sql模块不是IPython扩展."本身在Google中产生了0个结果,所以我对自己可能做错的事情有些迷茫.
and when that didn't seem to work, even by downloading the file from Github and executing the code. Searching "The sql module is not an IPython extension." itself yielded 0 results in Google, so I am a little lost on what I might be doing wrong.
我正在运行OSX El Capitan(禁用SIS),并且我的Python/iPython版本如下:
I am running OSX El Capitan (with SIS disabled), and my Python/iPython version is as below:
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进行安装:
Since you're using Anaconda's Python, make sure you install with the associated package manager conda:
conda install -c conda-forge ipython-sql=0.3.6
来源: https://anaconda.org/conda-forge/ipython-sql
这篇关于SQL iPython Magic Extension无法加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!