使用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).
- Release 4.0: stable, supports Python 3.5–3.7
- PyInstaller 4.0 (tar.gz) (pgp, sha-256: 970beb07115761d5e4ec317c1351b712fd90ae7f23994db914c633281f99bab0)
- Development: unstable, supports Python 3.5–3.7
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.
- Older (obsolete) releases can be found at the full list of releases.
下载 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: