[英]How can I install a kernel to my Jupyter Notebook to run Python 2.7 (having installed Python 3.6 via Anaconda3)
[英]Why I can not import utils in my Jupyter Notebook (Python 3.6) although it is installed?
我已经使用conda安装了软件包utils,但是当我尝试将其导入Jupyter Notebook时,出现异常:
import utils
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-32411ba4e9a6> in <module>()
----> 1 import utils
ModuleNotFoundError: No module named 'utils'
如果这次我尝试使用pip再次安装,则会收到预期的消息:
(base) C:\Users\Alienware\Documents>pip install python-utils
Requirement already satisfied: python-utils in c:\programdata\anaconda3\lib\site-packages (2.3.0)
Requirement already satisfied: six in c:\programdata\anaconda3\lib\site-packages (from python-utils) (1.10.0)
导入其他模块没有任何问题(例如Featuretools)。
您已经安装了python-utils
但正在导入utils
。 这是两个不同的程序包。 如果要使用utils
软件包,请使用pip install utils
进行pip install utils
。 否则,如果要使用该软件包,请使用import python_utils
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.