
pycharm
wang1zhong1quan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
import debian.deb822 ModuleNotFoundError: No module named ‘debian‘ update-notifier-common E: Sub-pro
Traceback (most recent call last): File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module> import debian.deb822ModuleNotFoundError: No module named 'debian'dpkg: 处理软件包 update-notifier-common (--configure)时出错: 已安装 update-notif原创 2025-05-07 18:03:21 · 354 阅读 · 0 评论 -
ValueError: shapes (1,) and (10,1) not aligned: 1 (dim 0) = 10 (dim 0)
ValueError: shapes (1,) and (10,1) not aligned: 1 (dim 0) != 10 (dim 0)对于上述错误,对应到代码hide_in = np.dot(x[i],W1)-B1x = np.zeros((t_size, 1))hidesize = 10W1 = np.random.random((hidesize, 1)) # 输入层与隐层之间的权重W1_1 = np.random.random((hidesize, 1)) # 输入层与隐层之间的原创 2021-12-05 23:11:07 · 5560 阅读 · 0 评论 -
ValueError: could not broadcast input array from shape (10) into shape (1)
ValueError: could not broadcast input array from shape (10) into shape (1)运行python程序时遇到上述问题,错误定位到下面的代码片 hide_out[j] = sigmoid(hide_in[j])代码中相关内容的定义如下hidesize = 10W1 = np.random.random((hidesize,1)) #输入层与隐层之间的权重B1 = np.random.random((hidesize,1)) #隐原创 2021-12-05 22:49:07 · 4523 阅读 · 0 评论 -
TypeError: ‘classmethod‘ object is not callable
TypeError: 'classmethod' object is not callable的解决办法遇到TypeError: ‘classmethod’ object is not callable问题后,网上查了很多办法,有的说自定义的py文件名与导入的模块名重复了,修改自己定义的py文件名,避免与导入的模块名一致;有的说报错模块是系统自带的,不能在用它的时候自己同时定义一个别的名为报错模块的变量,这样会冲突。但我发现这些没用。然后我把报错的地方的@classmethod直接给注释掉了,就一切正常原创 2021-07-20 08:59:08 · 4845 阅读 · 0 评论 -
Pycharm调试错误:连接 Python 调试器失败 Socket closed
pycharm点击工具栏的调试按钮时出现错误:连接 Python 调试器失败 Socket closed首先采用以下方法:选择左上角工具栏“file”→“setting”,在 Build, Execution, Deployment --> Python Debugger 里的 Settings 内, 取消 “PyQt compatible”.点击右下方OK。但再次点击工具栏的调试按钮时还是出现错误:连接 Python 调试器失败 Socket closed查看报的错里面有module “q原创 2021-04-15 19:47:43 · 19752 阅读 · 3 评论