python
运气好到爆
点点滴滴记录成长从2022年1月4日起,每周更新三篇文章
展开
-
pip已经安装,但是/usr/bin/pip: No such file or directory
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip'原创 2022-09-13 11:08:01 · 356 阅读 · 0 评论 -
Fatal Python error: initfsencoding: Unable to get the locale encoding
pip 无法使用原创 2022-09-02 19:45:42 · 2456 阅读 · 0 评论 -
运行pytorch TSM模型问题记录
运行pytorch TSM 模型原创 2022-08-17 20:16:47 · 555 阅读 · 0 评论 -
python装饰器 静态成员函数无法使用
先介绍一下背景,开始的时候我们给一个类添加装饰器,各种测试都OK,但是最终进行完成测试的时候发现之前调这个类的静态成员会报错。主要原因是在给类加装饰器的时候会返回一个一个对象。但是静态函数的使用是可以直接通过类进行调用的,这也就冲突了。后来就尝试在init函数中加一个函数调用,将装饰器改成了普通的函数调用,这样就能保证静态函数也能调用啦。......原创 2022-04-22 15:51:33 · 1100 阅读 · 0 评论 -
ubuntu20.04缺少libssl.so.1.0.0的解决方法
Index of /ubuntu/pool/main/o/opensslwget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.debsudo dpkg -i libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb原创 2021-11-24 12:51:25 · 10671 阅读 · 5 评论 -
解决FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated; in a future ver...
参考链接:https://www.jianshu.com/p/945290726335方法: 执行pip install numpy==1.16.4原创 2021-05-24 17:21:44 · 127 阅读 · 0 评论 -
python pip无法使用,或者是没有pip linux
python pip无法使用,或者是没有pip参考:https://blog.csdn.net/yu757371316/article/details/54962305?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control&dist_request_id=8a2dc7e5-361f-4970-afa0-19c3fed6c449&depth_1-utm_sour.原创 2021-02-26 10:46:20 · 340 阅读 · 0 评论