
python
monissa.J
这个作者很懒,什么都没留下…
展开
-
You are using pip version 10.0.1, however version 20.0.2 is available.的解决方案
在安装第三方库时出现以下提示:You are using pip version 10.0.1, however version 20.0.2 is available.解决方案如下:在Anaconda Prompt中输入命令:conda install pip完成后再输入conda install pip再输入一次conda install pip测试:输入python -m ...原创 2020-03-28 13:19:15 · 22002 阅读 · 1 评论 -
加载MNIST报错: 由于连接方在一段时间后没有正确答复解决办法
ensorflow加载mnist数据集,一些书上和博客中的代码如下:from tensorflow.examples.tutorials.mnist import input_datamnist=input_data.read_data_sets("MNIST_data/",one_hot=True)但是,有些时候报错:TimeoutError ...原创 2020-12-05 19:19:13 · 555 阅读 · 0 评论 -
错误处理-`loss` passed to Optimizer.compute_gradients should be a function when eager execution is enabl
错误解释:`loss '传递给Optimizer.compute_gradients应该是一个启用了立即执行的函数。错误解决:In Tensorflow 2.0, eager execution is enabled by default.在Tensorflow 2.0 中,eager execution 是默认开启的。所以,需要先关闭eager executiontf.compat.v...原创 2020-04-12 10:29:53 · 13295 阅读 · 8 评论 -
jupyter notebook 的代码提示功能
在anaconda prompt下依次进行如下命令:pip install jupyter_contrib_nbextensionsjupyter contrib nbextension install --userpip install --user jupyter_nbextensions_configuratorjupyter nbextensions_configurator...原创 2020-12-05 19:20:32 · 1076 阅读 · 0 评论 -
python matplotlab在jupyter notebook中画图不显示怎么办?
在程序中代码最上方加上:%matplotlib inline # 功能:内嵌绘图。这句写上后可以不写plt.show()原创 2020-12-05 19:20:43 · 709 阅读 · 0 评论 -
tensorflow框架(二)——run()运行出错,显示“图为空”解决方案
run()运行出错,显示“图为空”解决方案:在import tensorflow后加上一句:tf.compat.v1.disable_eager_execution()表示强制禁用即时执行,是tensorflow2.0不同于tensorflow1.0之处...原创 2020-12-05 19:20:54 · 286 阅读 · 0 评论 -
TensorFlow库安装过程中的问题
出现错误提示:ERROR: Cannot uninstall ‘wrapt’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.解决方法:输入pip...原创 2020-12-05 19:21:11 · 159 阅读 · 0 评论 -
pip安装提示ReadTimeoutError的解决方案
ReadTimeoutError原因是pip默认源国外网站访问慢,可以有两种解决方案方案一:设置pip的国内源如果Administrator用户,在C:\Users\Administrator\下新建pip文件夹,在创建pip.ini文件,文件内容为: [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple方案二:设置...原创 2020-12-05 19:21:26 · 352 阅读 · 0 评论