我在 Windows 10 上,我有一个新安装的 Anaconda Python 3.7 64 位,出于某些原因,我想在我的 D: 驱动器上运行我的 jupiter 笔记本。然后我打开我的 jupyter 命令,并在启动 jupyter notebook 之前将自己放在 D: 中。当我想加载 rpy2 时,我遇到了这个问题:
%load_ext rpy2.ipython
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-52-fb23c6edefe4> in <module>
----> 1 get_ipython().run_line_magic('load_ext', 'rpy2.ipython')
~\anaconda3\lib\site-packages\IPython\core\interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
2315 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2316 with self.builtin_trap:
-> 2317 result = fn(*args, **kwargs)
2318 return result
2319
<C:\Users\Romain\anaconda3\lib\site-packages\decorator.py:decorator-gen-65> in load_ext(self, module_str)
~\anaconda3\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
185 # but it's overkill for just that one bit …
Run Code Online (Sandbox Code Playgroud)