错误
Clownorange
爱学习 爱生活的阿倩
展开
-
No moudle named ‘common‘
解决方法一:使用conda命令去安装未能成功解决方法二:使用pip命令去安装原创 2022-03-07 09:19:44 · 2198 阅读 · 0 评论 -
C++报错
报错:Encoding ChangedThe saved document contained characters which were illegal in the selected encoding.The file’s encoding has been changed to UTF-8 to prevent you from losing data.中文:编码改变保存的文档包含在所选编码中非法的字符。文件的编码已更改为UTF-8,以防止丢失数据。编写C++时程序报错,解决办法是重新原创 2022-02-11 14:38:54 · 537 阅读 · 0 评论 -
解决mobaXterm报错:因网络断开连接
解决mobaXterm报错:1:2:3:参考文章:https://blog.csdn.net/qq_35037684/article/details/112546068原创 2021-12-05 08:38:32 · 11213 阅读 · 0 评论 -
【无标题】
参考:https://zhuanlan.zhihu.com/p/35740229原创 2021-12-02 16:15:44 · 43 阅读 · 0 评论 -
CondaHTTPError: HTTP 000 CONNECTION FAILED for url
(base) C:\Users\86134>conda create -n weatherbench python=3.7Collecting package metadata (current_repodata.json): failedCondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/win-64/current_repodata.json>Ela原创 2021-12-02 08:59:10 · 3030 阅读 · 0 评论 -
fatal: unable to access ‘XXXXXXX‘: OpenSSL SSL_read: Connection was reset, errno 10054
报错内容:报错原因:一般是这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错参考网上解决办法:解除ssl验证后,再次git即可在终端输入 :git config --global http.sslVerify "false"问题解决!参考博客园文章:https://www.cnblogs.com/lvhuayan/p/14538106.html...原创 2021-11-13 09:37:19 · 1812 阅读 · 0 评论 -
raise ReadTimeoutError(self._pool, None, “Read timed out.“) pip._vendor.urllib3.exceptions.ReadTime
在安装第三方库的时候经常会爆出这样的问题: raise ReadTimeoutError(self._pool, None, "Read timed out.")pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.此时,我们如果设置了代理 ,可以通过代理的方式来安装第三方的库,使用方法如下;1:原创 2021-11-11 20:58:06 · 8837 阅读 · 1 评论 -
annaconda安装报错PackagesNotFoundError: The following packages are not available from current channels:
在pytorch环境下安装sklearn报错安装语句conda install sklearnCollecting package metadata (current_repodata.json): doneSolving environment: failed with initial frozen solve. Retrying with flexible solve.Collecting package metadata (repodata.json): doneSolving envi原创 2021-11-08 20:56:43 · 240 阅读 · 0 评论 -
ValueError:optimizer got an empty parameter list 的一个可能错误
ValueError:optimizer got an empty parameter list基本都跟__init__()及其里面的代码有关,比如下划线打错了、init拼错了、没有super、没在__init__函数内定义网络等。import torchimport numpy as npimport matplotlib.pyplot as plt#准备数据集x_data=torch.Tensor([[1.0],[2.0],[3.0]])y_data=torch.Tensor([[0],[原创 2021-11-08 17:25:07 · 2092 阅读 · 0 评论 -
安装Pytorch
安装anaconda参考博客:https://blog.csdn.net/in546/article/details/117400839安装Pytorch:https://pytorch.org/复制到命令行以后运行原创 2021-09-29 18:36:46 · 136 阅读 · 0 评论 -
检验anaconda是否安装成功
检验anaconda是否安装成功1:在cmd中输入 :python(按回车键),——查看是否有Python环境2:退出python(ctrl+z)后,再接着输入:conda --version,——查看是否有conda环境3:更改conda源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.原创 2021-09-29 15:11:21 · 15565 阅读 · 1 评论 -
CondaValueError: Malformed version string ‘~‘: invalid character(s).
以管理员身份运行anaconda prompt报错:CondaValueError: Malformed version string '~': invalid character(s).参考博客:https://www.codenong.com/jsfa0e92c6301e/输入语句:conda upgrade -n base -c defaults --override-channels conda遇到选择就选y都更新安装完成:...原创 2021-09-29 08:47:08 · 24819 阅读 · 32 评论 -
问题:Could not find conda environment
问题描述在安装anaconda环境后,conda activate (evironment name)如:pytorch发现在激活时,显示没有环境,但是使用命令conda info --envs后,发现环境是存在的。然后使用目录的方式进行激活,就可以成功激活,如下: conda activate C:\Users\liuwang\.conda\envs\your_environmentyour_environment 这里换成你的环境但打开jupyter notebook 之后,imp原创 2021-09-28 21:00:36 · 5614 阅读 · 2 评论 -
jupyter新建python时出现An error occurred while creating a new notebook.
使用 anaconda prompt新建python报错破解方法:打开cmd,输入jupyter notebook,这样打开的jupyter就能新建python文件了。原创 2021-09-28 17:45:17 · 826 阅读 · 0 评论 -
第一个jdbc程序
错误:Exception in thread "main" java.sql.SQLException: Can't call commit when autocommit=true所有错误信息:Exception in thread "main" java.sql.SQLException: Can't call commit when autocommit=true at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:869)原创 2021-05-09 19:05:14 · 41 阅读 · 0 评论 -
第一个jdbc程序
错误信息:Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure错误全部信息:Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet原创 2021-05-09 19:01:20 · 66 阅读 · 0 评论 -
mysql创建表
错误:> 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''stuent'( 'id' INT(4) NOT NULL auto_increment COMMENT '学号', 'name' VARCH' at line 1> 时间: 0s出错误代码:原创 2021-05-09 08:52:21 · 101 阅读 · 0 评论 -
The matching wildcard is strict,but no declaration can be found element ‘mvc:resources
spring配置文件报错 :The matching wildcard is strict,but no declaration can be found element 'mvc:resources报错时候的配置文件:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.o原创 2021-04-05 19:18:23 · 119 阅读 · 0 评论 -
android-碎片的使用方法
报错–E/AndroidRuntime: FATAL EXCEPTION: main编译无异常,报错查找出错原因说明是xml布局文件错误。也不是,继续查找,发现这句话:将不需要的配置文件等删除干净,重构项目原创 2021-01-02 11:53:51 · 104 阅读 · 0 评论 -
百分比布局-错误
依赖导入:在app/build.gradle报错:AAPT: error: attribute android:layout_heightPercent not found.报错原因:将android写成app即可原创 2020-12-14 15:47:53 · 1303 阅读 · 3 评论 -
依赖倒转原则案例
Person接收消息的功能运行结果:方式1分析:简单问题:如果获取的对象是微信或者短信,则需要新增类,Person类也要增加相应的方法解决方法:引入一个抽象的接口IReceiver,表示接受者,这样person类与接口发生依赖,而不是与类直接发生依赖运行结果:...原创 2020-11-26 19:13:19 · 244 阅读 · 0 评论 -
设计模式-六大原则Handler is abstract, cannot be instantiated错误
设计模式一、单一职责原则关于如何处理Handler is abstract, cannot be instantiated错误!准备向使用handler,结果居然报错说这是一个抽象接口,我也是醉了,查询了一番,原来是系统导入的库错了,删掉之前导入的handler库,重新导入带有Android前缀的handler库!!...原创 2020-11-21 11:19:06 · 1072 阅读 · 0 评论