python pip安装pyinstaller报错_PyInstaller 库安装

本文介绍了在Python 3.6.4环境下,使用pip安装PyInstaller遇到的问题及解决方案。首先,由于PyInstaller依赖pywin32,需先手动安装该库。接着,从官网下载PyInstaller源码,解压并执行安装。成功安装后,通过`pyinstaller --version`验证版本,再通过`pyinstaller -h`查看命令帮助,确认安装完成。
摘要由CSDN通过智能技术生成

PyInstaller库能将用python语言写的代码打包可以直接执行的exe文件,便于在windows系统上操作。

1、系统环境:python 版本 Python 3.6.4

2、pip install pyinstaller 报错:

Command "d:\anaconda35\python.exe d:\anaconda35\lib\site-packages\pip_vendor\pe

p517_in_process.py get_requires_for_build_wheel C:\Users\Public\Docu

ments\Wondershare\CreatorTemp\pip-req-build-2jmqy8ou

3、解决方法:

因pyinstaller 依赖pywin32,在安装前,需要先安装该软件包。

D:\python-install\Scripts>pip install pywin32

官网下载安装包 PyInstaller-3.4.tar.gz

http://www.pyinstaller.org/downloads.html

解压,放在 python 安装目录下

到安装目录下执行:python setup.py install

D:\python-install\PyInstaller-3.4>python setup.py install

安装成功后查看相应版本。

D:\python-install\PyInstaller-3.4>pyinstaller --version

3.4

4、cmd 命令行查看该命令

C:\Users\>pyinstaller -h

usage: pyins

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值