推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
justincnn
V2EX  ›  Python

Python 程序在没有 Python 环境的 pc 上除了打包成 exe,还有其他办法可以执行么?

  •  
  •   justincnn · Mar 5, 2020 · 5840 views
    This topic created in 2446 days ago, the information mentioned may be changed or developed.
    该死的诺顿把这种 exe 全部隔离了,实在没办法了,

    本来想做 django,但是又无法上外网,有其他解决方案么?
    20 replies  •  2020-04-19 18:49:41 +08:00
    jinliming2
    jinliming2
    Mar 5, 2020
    1
    配个 python 解压版本,然后写个 cmd 启动
    est
    est
    Mar 5, 2020
    2
    winrar 自解压+自运行 试试。。
    justincnn
    justincnn
    OP
    Mar 5, 2020 via Android
    3
    @jinliming2 这方法感觉不错,试试看,谢谢
    ClericPy
    ClericPy
    Mar 5, 2020
    4
    shiv 打包成一个 zip app, 然后用官网那个嵌入式绿色版的解释器做个 bat 调用就好了, 以前用过, 还挺好使
    justincnn
    justincnn
    OP
    Mar 5, 2020 via Android
    5
    @ClericPy 好的,谢谢指导
    Vegetable
    Vegetable
    Mar 6, 2020
    6
    @jinliming2 解压出来的 python 不也是 exe 吗?有什么区别
    mayx
    mayx
    Mar 6, 2020 via Android
    7
    套壳
    Vegetable
    Vegetable
    Mar 6, 2020
    8
    理解错了,是不能用 pyinstaller 打包的程序啊,那就是其他人说的打包一份 python 了。
    wangyzj
    wangyzj
    Mar 6, 2020
    9
    应该干的不是干掉诺顿吗
    lc7029
    lc7029
    Mar 6, 2020
    10
    @wangyzj 估计是商用或生产之类环境,应该有严格的内控策略,比如没诺顿不能接入网络,虽说有也不能访问公网。。。
    sunwei0325
    sunwei0325
    Mar 6, 2020
    12
    我之前用的是 pex
    https://github.com/pantsbuild/pex
    LokiSharp
    LokiSharp
    Mar 6, 2020 via iPhone
    13
    整个签名就能跑了
    justincnn
    justincnn
    OP
    Mar 6, 2020 via Android
    14
    @LokiSharp 这个怎么弄啊?可以给个方向么?
    justincnn
    justincnn
    OP
    Mar 6, 2020
    15
    @sunwei0325 pex 不能在 win 下运行么?
    zysidea
    zysidea
    Mar 6, 2020
    16
    简单,用 go 重写
    scriptB0y
    scriptB0y
    Mar 6, 2020
    17
    不知道这样行不行: https://www.v2ex.com/t/648946

    你可以试试
    jinliming2
    jinliming2
    Mar 6, 2020 via iPhone
    18
    @Vegetable 解压出来的 python 虽说是 exe,但是算是已知程序,并且有可信的数字签名啊
    Vegetable
    Vegetable
    Mar 6, 2020
    19
    @jinliming2 我理解错了,还以为有一个白名单,白名单之外的 exe 都不行。
    xcstream
    xcstream
    Apr 19, 2020
    20
    直接用 python.exe 跑
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3145 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 00:54 · PVG 08:54 · LAX 16:54 · JFK 19:54
    ♥ Do have faith in what you're doing.