V2EX Alfons 的所有回复 第 1 页 / 共 4 页
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX    Alfons    全部回复第 1 页 / 共 4 页
回复总数  62
1  2  3  4  
搬瓦工 + 域名代理
都用手机了,还要写代码,这是什么逻辑
100 天前
回复了 Alfons 创建的主题 程序员 Claude Code 交友群
@illiteracy0001 已经解散了,难管理
114 天前
回复了 Alfons 创建的主题 程序员 Claude Code 交友群
@yankebupt 淘宝买
2024-06-04 17:45:55 +08:00
回复了 k8ser 创建的主题 Python 有没有 Python asyncio 的资料推荐?
2024-01-18 18:36:02 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@Geekerstar 再试一下,更新 docker 镜像再试试
2024-01-18 11:55:08 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@Geekerstar 有些问题,我再看看
2024-01-18 09:41:36 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@Geekerstar 留个邮箱吧,我发你
2024-01-17 21:48:59 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@ruanimal 针对的场景不一样,试了很多 python 虚拟环境打包的方案,确实没办法解决所有的依赖问题,才启动的这个项目
2024-01-17 21:46:52 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@Geekerstar 完整的 requirements.txt 发一下呢
2024-01-17 12:56:24 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@Geekerstar 应该还是网络的问题,我这边是可以的

+++++++++++++++++安装项目第三方依赖包+++++++++++++++++
[ OK ]: Execute cmd -> source /usr/local/python3/3.9.0/alfonstest/bin/activate && export LD_LIBRARY_PATH=/usr/local/python3/3.9.0/alfonstest/main/lib:$LD_LIBRARY_PATH && pip install --upgrade pip && pip install -r /packages/requirements.txt
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pip
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/15/aa/3f4c7bcee2057a76562a5b33ecbd199be08cdb4443a02e26bd2c3cf6fc39/pip-23.3.2-py3-none-any.whl (2.1 MB)
|| 2.1 MB 512 kB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-23.3.2
2024-01-17 12:49:24 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@Etuloser 无外网访问,虚拟环境中的动态库依赖的 glibc ,不同操作系统难以通用
2024-01-17 09:56:35 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@Geekerstar 嗯嗯,不客气。

你应该是机器上的环境问题,刚在我自己环境上是可以打出来的

[root@0d315fcc076b alfonstest]# source /usr/local/python3/3.9.0/alfonstest/bin/activate
(alfonstest) [root@0d315fcc076b alfonstest]# python --version
Python 3.9.0
2024-01-17 09:46:26 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@Geekerstar 是在本地 Docker desktop 里设置 了 容器 proxy 吗
2024-01-17 09:22:47 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@MasterCai 试过很多方案,没办法解决动态库 glibc 依赖的问题
2024-01-17 09:22:05 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
docker run -it --rm --platform linux/amd64 \
-v `pwd`/test/Python:/packages/Python \
-v `pwd`/test/requirements.txt:/packages/requirements.txt \
-v `pwd`/test/build:/packages/build alfonsxh/py-all-in-one:latest --install-dir /usr/local/python_env/ --project alfonstest --python-version 3.8.18


docker 参数:

- --platform linux/amd64 - 平台可以选 linux/amd64 、linux/arm64
- `pwd`/test/Python - Python 安装包位置,打包前需要将 Python 源码下载保存在该目录。源码下载地址: https://www.python.org/ftp/python/ (当前只支持 tgz 包)
- `pwd`/test/requirements.txt - 项目依赖的 Python 模块
- `pwd`/test/build - 打完包后,保存的目录

命令参数:

--install-dir - Python 环境安装的目录,对应在部署机器上的路径
--project - 项目名称,虚拟环境会生成在 {install-dir}/{python_version}/{project} 目录下
--python-version - Python 版本,根据 pwd/test/Python 目录下的 Python 源码包进行选择。暂时只支持先下载 Python 源码的方式
2024-01-17 09:14:34 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@jackOff 可以的,一会补充使用方案
2024-01-17 09:14:16 +08:00
回复了 Alfons 创建的主题 Python Python 虚拟环境 打包 py-all-in-one
@gumuxi 我接触的很多企业用户,还是很保守的,接受不了 docker 这种方案
2019-10-15 09:03:03 +08:00
回复了 peterswan 创建的主题 程序员 想入手一个树霉派 4,但是害怕吃灰。
做个 Android TV,看电视
1  2  3  4  
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1223 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 53ms UTC 17:40 PVG 01:40 LAX 10:40 JFK 13:40
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86