推荐学习书目
› 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
priest2
V2EX  ›  Python

请问 使用 pyinstaller 来打包 Python 成 exe, 却无法把外链的 pickle 文件一起打包进来,该怎么办?

  •  
  •   priest2 · Nov 29, 2017 · 2311 views
    This topic created in 3233 days ago, the information mentioned may be changed or developed.
    代码中, 导入了一个外链的 pickle 腌制文件, 因为需要使用 pickle 文件中的数据, 但是使用 pyinstaller 打包后, 发现如果我 将那个外链的 pickle 文件改了名字, 这个 exe 文件就会失效, 提示找不到 那个 pickle 了.

    我在网上搜索, 没有发现任何人 有这个问题的提出. 不知道该怎么解决了, 只能求助于大家, 怎么把外链导入的文件,一起打包进 exe 中?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2495 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 07:51 · PVG 15:51 · LAX 00:51 · JFK 03:51
    ♥ Do have faith in what you're doing.