gpt4 book ai didi

python - Jupyter 导入错误 : No module named

转载 作者:可可西里 更新时间:2023-11-01 09:58:20 27 4
gpt4 key购买 nike

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

我的 jupyter 笔记本: enter image description here

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

最佳答案

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

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

关于python - Jupyter 导入错误 : No module named,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35074515/

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