V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2017-11-29 15:26:19 +08:00 · 1447 次点击
    这是一个创建于 2333 天前的主题,其中的信息可能已经有所发展或是发生改变。
    代码中, 导入了一个外链的 pickle 腌制文件, 因为需要使用 pickle 文件中的数据, 但是使用 pyinstaller 打包后, 发现如果我 将那个外链的 pickle 文件改了名字, 这个 exe 文件就会失效, 提示找不到 那个 pickle 了.

    我在网上搜索, 没有发现任何人 有这个问题的提出. 不知道该怎么解决了, 只能求助于大家, 怎么把外链导入的文件,一起打包进 exe 中?
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1125 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:35 · PVG 07:35 · LAX 16:35 · JFK 19:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.