会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
pythoner_wl
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
12
13
14
15
16
17
18
19
20
···
34
下一页
2020年12月25日
报错:h5文件读取失败-OSError:Unable to open file (file signature not found)
摘要: 转载自腾讯云:https://cloud.tencent.com/developer/article/1451539 报错原因,h5文件不完整,不要相信github和网络!!! 使用keras在加载网络网络参数的时候出现这个问题 File "h5py\h5f.pyx", line 78, in h5
阅读全文
posted @ 2020-12-25 16:13 pythoner_wl
阅读(6730)
评论(0)
推荐(0)
2020年12月23日
算法部署——nginx + uwsgi + flask
摘要: 算法部署:nginx + uwsgi + flask 重复初始化 CUDA 报错:uwsgi lazy-apps参数为true,即可解决 <lazy-apps>true</lazy-apps> 多个线程打开同一个文件,肯定不行,所以,,, import random import time t =
阅读全文
posted @ 2020-12-23 14:41 pythoner_wl
阅读(116)
评论(0)
推荐(0)
Ubuntu——卸载软件
摘要: Ubuntu删除应用 dpkg --list # 查看已安装应用 apt-get --purge remove 包名 # 卸用
阅读全文
posted @ 2020-12-23 14:05 pythoner_wl
阅读(91)
评论(0)
推荐(0)
linux——更新软连接
摘要: 更新软连接 删除当前软连接 rm python 设置软连接 ln -s 目标source python 结果: python → 目标source
阅读全文
posted @ 2020-12-23 14:02 pythoner_wl
阅读(209)
评论(0)
推荐(0)
uwsgi部署请求报错,unavailable modifier requested: 80
摘要: 没有通过nginx访问接口的问题,配置好nginx即可。 docker部署 location /api/v1/carresult/ { include uwsgi_params; uwsgi_pass 192.168.3.174:5002; }
阅读全文
posted @ 2020-12-23 13:23 pythoner_wl
阅读(421)
评论(0)
推荐(0)
Python项目部署Ubuntu:uwsgi——安装及问题解决及配置文件
摘要: uwsgi安装及问题解决 不管在系统环境还是docker内,系统会有自带的uwsgi,显然不能用系统的uwsgi,因为默认python解释器永远是python2.7 部署python项目,安装uwsgi一定要用pip安装,而不是apt-get安装。 正常安装 pip3 install uwsgi 遇
阅读全文
posted @ 2020-12-23 12:14 pythoner_wl
阅读(1367)
评论(0)
推荐(0)
2020年11月25日
os模块——获取上层目录
摘要: import os # 获取当前目录 print(os.getcwd()) print(os.path.abspath(os.path.dirname(__file__))) print(os.path.abspath('.')) # 获取当前文件 print(os.path.abspath(__f
阅读全文
posted @ 2020-11-25 18:12 pythoner_wl
阅读(534)
评论(0)
推荐(0)
启动flask服务:flask run -h 0.0.0.0 -p 5000
摘要: flask run -h 0.0.0.0 -p 5000 这样公网才能访问!!!
阅读全文
posted @ 2020-11-25 14:54 pythoner_wl
阅读(1036)
评论(0)
推荐(1)
2020年11月19日
容器生成镜像并传输到其他服务器
摘要: 容器生成镜像并传输到其他服务器 容器——》镜像——》打包——》传输——》解包为镜像 1、从容器创建一个镜像 使用到的命令: docker commit :从容器创建一个新的镜像 docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] OPTIONS说
阅读全文
posted @ 2020-11-19 18:37 pythoner_wl
阅读(402)
评论(0)
推荐(0)
22端口和3389端口之我竟然用3389连接linux服务器,关键是我之前用22端口连接过linux!!!
摘要: 3389端口 3389端口是Windows 2000(2003) Server远程桌面的服务端口,可以通过这个端口,用"远程桌面"等连接工具来连接到远程的服务器,如果连接上了,输入系统管理员的用户名和密码后,将变得可以像操作本机一样操作远程的电脑,因此远程服务器一般都将这个端口修改数值或者关闭。 中
阅读全文
posted @ 2020-11-19 18:06 pythoner_wl
阅读(3442)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
34
下一页
公告