- 博客(12)
- 收藏
- 关注
原创 问题解决——MMCV报错:ImportError: cannot import name ‘print_log‘ from “mmcv “
按照解决方法步骤来一步步解决报错问题
2023-09-19 21:27:10
18266
5
原创 pip安装过慢或出现pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pyth问题
【代码】pip安装过慢或出现pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pyth问题。
2023-04-18 20:25:59
270
原创 ImportError: libXrender.so.1: cannot open shared object file: No such file or directory(无sudo权限解决问题)
无sudo权限,解决ImportError: libXrender.so.1: cannot open shared object file: No such file or directory问题
2022-11-10 12:20:58
4547
原创 成功解决ImportError: cannot import name ‘HTTPError‘ from ‘urllib3.exceptions‘(虚拟环境运行文件出错)
解决ImportError: cannot import name 'HTTPError' from 'urllib3.exceptions'问题的方法
2022-10-26 17:24:35
3747
转载 CentOS 开启端口(最有效的方法)
1.连接CentOS服务器 查看已经开放的端口: `firewall-cmd --list-ports`1 2.查看防火墙的状态: 输入命令 firewall-cmd --state1 3.开启防火墙: 如果上一步处于关闭状态,输入命令开启防火墙: systemctl start firewalld.service...
2022-05-19 15:19:28
10200
原创 django admin页面添加一个自定义控件(以按钮为例)
第一步:查看你的页面网址这是我要添加自定义按钮的页面网址第二步:在templates下创建对应路径的文件夹第三步:copy当前环境下django中的change_list.html到最后一个文件夹中change_list.html的路径为:site-packages/django/contrib/admin/templates/admin/change_list.htm...
2020-04-13 10:56:59
5978
3
原创 Django:上传图片在media文件,点击路径,图片无法显示的问题,解决方法如下:
1.问题描述如上图django后台已经上传了图片,当点击2.jpg想查看图片时,出错,如下图但是我已经配置好了media的路径,为什么无法访问?经过检查和google,由于缺少步骤2的一句代码和步骤3的配置添加后问题解决,以下将从头开始重新描述配置细节,可对照检查自己的代码,是否有缺少其中的步骤。2.解决方法(实现后台上传图片且点击图片名显示图片)步骤一:在项目目录下新建文...
2020-04-10 11:46:59
4262
4
原创 Python 库安装问题-whl is not a supported wheel on this platform.原因及解决办法
出现这种问题应该是因为pip安装版本和下载的whl安装包不兼容!win64 :运行cmd输入python,然后输入一下内容查询>>>import pip._internal>>>print(pip._internal.pep425tags.get_supported())win32:运行cmd输入python,然后输入一下内容查询...
2020-02-20 12:53:17
5898
2
原创 关于java在eclipse 中对断言语句的启用和禁用
在初学java的异常处理时,一定会使用到throws、throw的抛出异常处理异常的语句,同时也会学到一个关键字assert错误与断言语句。但是在eclipse中对assert语句进行测试时会发现assert语句并没有起作用,如下例:import java.util.*;public class ex9 { public static void main(String[]args)...
2018-04-13 09:33:24
1914
原创 eclipse运行Java,错误: the selection cannot be launched,and there are no rece
问题代码:public static void main() { System.out.print("你好:"); }分析原因: 1.main函数缺少参数 2.含有两个以上的public类解决方法: 1.将main函数的格式作为一种固定格式public static void main(String[] args) { } ...
2018-03-10 20:23:01
13583
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人