![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常处理
匠人_C
软件开发
展开
-
ModuleNotFoundError: No module named 'graphviz'
import graphviz时出现如题的错误,且使用:conda install graphviz安装成功后依然出现上述错误。 解决办法:pip install graphviz原创 2018-04-17 17:41:29 · 22444 阅读 · 14 评论 -
Kernel Restarting
Jupyter Notebook运行过程中, kernel died. 报错信息: The kernel appears to have died. It will restart automatically. 可能原因:安装的一些包现在可能已经不适用了,卸载并重新安装如下包: ipykernel ipython jupyter_client jupyter_core trait...原创 2018-04-09 10:41:35 · 12421 阅读 · 0 评论 -
ImportError: libcublas.so.9.0: cannot open shared object file: no such file or directory.
安装cuda 9.1,cudnn 9.1和tensorflow 1.6后,导入tensorflow时,报如下错误:ImportError: libcublas.so.9.0: cannot open shared object file: no such file or directory Failed to load the native TensorFlow runtime.错误原因...原创 2018-04-09 09:16:13 · 2010 阅读 · 0 评论 -
mnist = tf.keras.datasets.mnist mnist.load_data() ConnectionRefusedError
keras.datasets下载数据集时,由于文件是存储在亚马逊的服务器上,运行代码时一般会报如下错误:Downloading data from https://s3.amazonaws.com/img-datasets/mnist.npz--------------------------------------------------------------------------...原创 2018-08-29 10:20:56 · 15331 阅读 · 6 评论 -
ImportError: cannot import name 'ensure_dir_exists'
jupyter notebook重装或更新后,执行jupyter notebook出现如下错误:Traceback (most recent call last): File "/home/cc/install/anaconda3/bin/jupyter-notebook", line 7, in <module> from notebook.notebookapp im...原创 2018-12-29 17:02:57 · 1971 阅读 · 0 评论 -
jupyter notebook使用的python环境不对
对jupyter notebook进行一些操作后,在打开运行jupyter notebook时,发现我已经安装的一些python包无法导入了,如:import numpy as np报错:ImportError: No module named 'numpy'而我的numpy包是安装过的,比较奇怪。使用如下代码检测python环境:import sysprint(sys.exec...原创 2019-01-15 13:56:23 · 8294 阅读 · 1 评论