Jupyter ImportError:没有名为的模块

时间:2016-01-29 00:00:22

标签: python windows jupyter

我已经下载了peewee并将其放在我当前的目录中,但是jupyter无法找到它。 有什么想法吗?

我的jupyter笔记本: enter image description here

peewee文件的位置: location of the peewee file:

1 个答案:

答案 0 :(得分:4)

由于我的Ipython笔记本位于与Lib文件不同的位置,因此我需要直接指向它:

import sys
sys.path.append('C:\\Python27\\Lib\\site-packages\\MySQLdb')