【发布时间】:2017-06-19 15:16:53
【问题描述】:
如果我在我的 ubuntu 16.04 机器上的 ipython2/3 中执行任何系统命令,我会收到权限被拒绝错误,如下所示:
In [1]: ls
--------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-1-5b21b94dda0e> in <module>()
----> 1 get_ipython().magic('ls ')
我不需要在 ubuntu 14.04 中做任何特别的事情。我已经用
安装了 ipython2 和 ipython3pip2 install ipython --user
pip3 install ipython --user
我还尝试使用 sudo as 在系统范围内安装它
sudo pip2 install ipython
sudo pip3 install ipython
但问题仍然存在。我在 jupyter notebook 中没有遇到这个问题。任何线索将不胜感激。
【问题讨论】:
标签: ipython ipython-notebook ipython-magic