Python 安装pyinstaller失败的解决方法

使用pip 安装总是失败,不管怎么捣鼓,一直不能成功,浪费了很长时间,去pyinstaller官网看了一下,没有显示支持python3.8的版本,以为是pyinstaller不知3.8 的版本,重新下载3.7的版本,依然安装不了,

pip install pyinstaller  以为是命令行的问题,改Pycharm安装,问题依旧。

错误信息如下:

ERROR: Command errored out with exit status 1:

'c:\users\ritchie.li\appdata\local\programs\python\python38\python.exe'

'c:\users\ritchie.li\appdata\local\programs\python\python38\lib\site-packages\pip' install --ignore-installed --no-user --prefix

'C:\Users\ritchie.li\AppData\Local\Temp\pip-build-env-x1cah2y4\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.

我有2台电脑,都是win10的环境,一台是公司的办公电脑,一台是自己的学习电脑,自己电脑安装OK,打包也OK。

所以选择官网下载安装文件安装,测试验证OK。

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

The latest stable release of PyInstaller is 4.0 (Change Log).

If you want to motify the source, you may better clone the git repository using git clone https://github.com/pyinstaller/pyinstaller and may want to refer to the Development Guide in the manual.

 

下载 Pyinstaller4.0(tar.gz)解压缩文件,然后使用管理员模式打开命令,切换到解压缩的目录,执行:

python setup.py install 

安装过程需要点时间,最终安装成功。

通过 pip show pyinstaller 查看详细信息进一步确认安装情况

C:\Users\ritchie.li>pip show pyinstaller

Name: pyinstaller

Version: 4.0

Summary: PyInstaller bundles a Python application and all its dependencies into a single package.

Home-page: http://www.pyinstaller.org/

Author: Hartmut Goebel, Giovanni Bajo, David Vierra, David Cortesi, Martin Zibricky

Author-email: None

License: GPLv2-or-later with a special exception which allows to use PyInstaller to build and distribute non-free programs (including commercial ones)

Location:

c:\users\ritchie.li\appdata\local\programs\python\python38\lib\site-packages\pyinstaller-4.0-py3.8.egg

Requires: setuptools, altgraph, pyinstaller-hooks-contrib, pefile, pywin32-ctypes

Required-by:

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

flysh05

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值