JhOOOn's recent timeline updates
JhOOOn

JhOOOn

V2EX member #58071, joined on 2014-03-13 09:54:06 +08:00
docker 离广泛使用交付运维是不是还有一段时间?
Docker  •  JhOOOn  •  Jun 3, 2017  •  Lastly replied by dcoder
5
nginx 搭配 django 自动登出 url
NGINX  •  JhOOOn  •  Dec 15, 2016  •  Lastly replied by JhOOOn
5
vps 总被黑怎么办?
VPS  •  JhOOOn  •  Dec 4, 2016  •  Lastly replied by rakuhin
3
请教 python 如何分日志级别分文件输出?
Python  •  JhOOOn  •  Oct 14, 2016  •  Lastly replied by ryd994
8
支付宝越来越厉害了,能自动查到我的快递信息
支付宝  •  JhOOOn  •  Oct 6, 2016  •  Lastly replied by Balthild
23
运行 python 代码,返回结果,如何实现?
Python  •  JhOOOn  •  Aug 29, 2016  •  Lastly replied by JhOOOn
10
如何跨域传递 cookie?
Python  •  JhOOOn  •  May 30, 2016  •  Lastly replied by JhOOOn
13
https 和 tcp 传输安全的问题
HTTP  •  JhOOOn  •  Apr 28, 2016  •  Lastly replied by paw
8
JhOOOn's recent replies
优秀
Dec 26, 2019
Replied to a topic by BeiTianSoftware 创造者 创业 4 年的苦与甜
牛,这么长,一定有很多感悟,加油
这种方案搭梯子会快吗?到期了,准备转付费用户了
Nov 25, 2019
Replied to a topic by Tarkky 问与答 有什么办法不不用手机号注册 Google
很好
程序员真是欢乐多啊,准备把我的域名续费了
确实会丢失,我每回写完都会保存,今天打开电脑一看 0kb,蛋疼。哎。。。
已举报,您提交举报信息的查询码:14917082517271600083
Apr 10, 2017
Replied to a topic by eightqueen Python python 如何根据环境打包?
有时候, 需要部署 Python 应用的服务器没有网络连接, 这时候, 你就要把整个 Python 应用做成离线安装包.
借助 wheel, 很容易就可以实现.

首先, 你的开发机器上要安装 wheel:

pip install wheel
接下来, 下载依赖包的 wheel 文件:

pip wheel -r requirements.txt
默认情况下, 上述命令会下载 requirements.txt 中每个包的 wheel 包到当前目录的 wheelhouse 文件夹, 包括依赖的依赖.
现在你可以把这个 wheelhouse 文件夹打包到你的安装包中. 在你的安装脚本中执行:

pip install --use-wheel --no-index --find-links=wheelhouse -r requirements.txt
就可以实现离线安装了. 当然, 还要考虑 pip 以及 wheel 自身的安装.

参考: http://guoqiao.me/post/2015/1212-pip-install-offline-via-wheels
Dec 15, 2016
Replied to a topic by JhOOOn NGINX nginx 搭配 django 自动登出 url
狂躁了一天, 发现 js 的跳转代码少加了一个反斜杠(前后端分离), 把 a.a.com/bbb 改为 a.a.com/bbb/就好了。。。。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6050 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 118ms · UTC 01:58 · PVG 09:58 · LAX 18:58 · JFK 21:58
♥ Do have faith in what you're doing.