python报错系列(16)--pyinstaller ????????

系列文章目录

文章目录


前言

一、pyinstaller ???

1.报错如下

python 复制代码
PS D:\Users\gxcaoty\Desktop\性能覆盖率> pyinstaller37.exe -F MTF.py
Fatal error in launcher: Unable to create process using '"E:\py\python3.7\Python37\python.exe"  "E:\py\python3.7\Python37\Scripts\pyinstaller37.exe" -F MTF.py': ???????????

2.安装pyinstaller

代码如下(示例):

python 复制代码
python3 -m pip install --upgrade pyinstaller -i https://pypi.mirrors.ustc.edu.cn/simple/

3.报错如下:

python 复制代码
The 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Plea    "E:\py\python3.7\Python37\python3.exe" -m pip uninstall typing
then try again.
python 复制代码
The 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package (located in E:\py\python3.7\Python37\lib\site-packages) using
    "E:\py\python3.7\Python37\python3.exe" -m pip uninstall typing
python 复制代码
The 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package (located in E:\py\python3.7\Python37\lib\site-packages) using
    "E:\py\python3.7\Python37\python3.exe" -m pip uninstall typing

备注:python 'typing'包是一个标准库包的过时的后端,与PyInstaller不兼容

python 复制代码
The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package (located in E:\py\python3.7\Python37\lib\site-packages) using
    "E:\py\python3.7\Python37\python3.exe" -m pip uninstall pathlib

原因分析:

以上安装包与pyinstaller不兼容,需移除!!!

python 复制代码
python3 -m pip uninstall typing
python3 -m pip uninstall pathlib
......

4.封装py文件为exe成功

python 复制代码
PS D:\Users\gxcaoty\Desktop\性能覆盖率> pyinstaller.exe -F MTF.py
3164 INFO: PyInstaller: 5.13.2
3164 INFO: Python: 3.7.0
3165 INFO: Platform: Windows-10-10.0.18362-SP0
3182 INFO: wrote D:\Users\gxcaoty\Desktop\性能覆盖率\MTF.spec
3214 INFO: Extending PYTHONPATH with paths
['D:\\Users\\gxcaoty\\Desktop\\性能覆盖率']
10945 INFO: checking Analysis
10945 INFO: Building Analysis because Analysis-00.toc is non existent
10945 INFO: Initializing module dependency graph...
11023 INFO: Caching module graph hooks...
..................

5.国内源

python 复制代码
1)http://mirrors.aliyun.com/pypi/simple/ 阿里云

2)https://pypi.mirrors.ustc.edu.cn/simple/  中国科技大学

3) http://pypi.douban.com/simple/  豆瓣

4) https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学

总结

分享:

原谅可以驱散那些一直萦绕在我们内心的怨气、憎恨、消极态度和抑郁不安,这些情绪使我们失去了爱的能力,并且破坏了我们内心的平静

相关推荐
CoderCodingNo几秒前
【GESP】C++六级考试大纲知识点梳理, (1) 树的概念与遍历
开发语言·c++
nju_spy1 分钟前
动手学强化学习上交张伟楠(一)导论 + 多臂老虎机 MAB(ε-greedy+上置信界+汤普森采样)
人工智能·python·强化学习·actor-critic·多臂老虎机·汤普森采样·探索与利用
A星空1232 分钟前
3519Hisidv500的QT配置
开发语言·qt
tjjucheng3 分钟前
专业做小程序定制开发的企业
python
阿里嘎多学长4 分钟前
2026-01-12 GitHub 热点项目精选
开发语言·程序员·github·代码托管
ACERT3336 分钟前
6.吴恩达机器学习——TensorFlow与激活函数
人工智能·python·机器学习
KeLin&10 分钟前
讯为iTOP4412-Qt5.7环境搭建
开发语言·arm开发·qt·arm
星火开发设计10 分钟前
C++ multimap 全面解析与实战指南
java·开发语言·数据结构·c++·学习·知识
superman超哥13 分钟前
Rust 异步并发基石:异步锁(Mutex、RwLock)的设计与深度实践
开发语言·后端·rust·编程语言·rust异步并发·rust异步锁·rust mutex