写在前面,如果是用win10系统的用户,一定要先通过管理员模式打开命令窗口,我是直接按 win + x 键,选择 "Windows Powershell(管理员)",否则会提示: [Errno 13] Permission denied:

下面是在管理员模式下通过 pip 命令安装失败

从下面错误来看,是安装build的依赖失败,但具体是哪些也不清楚,网上找也没有类似错误的解决办法,大都都是下载setup.py文件来安装

 Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。 PS C:\Windows\system32> pip install PyInstaller
Collecting PyInstaller
Downloading https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz (3.5MB)
100% |████████████████████████████████| 3.5MB 44kB/s
Installing build dependencies ... error
Complete output from command "c:\program files\python3\python.exe" "c:\program files\python3\lib\site-packages\pip" install --ignore-installed --no-user --prefix C:\Users\S~1.WU\AppData\Local\Temp\pip-build-env-0g2rl8se\overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel:
Traceback (most recent call last):
File "c:\program files\python3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files\python3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\program files\python3\lib\site-packages\pip\__main__.py", line 16, in <module>
from pip._internal import main as _main # isort:skip # noqa
File "c:\program files\python3\lib\site-packages\pip\_internal\__init__.py", line 40, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "c:\program files\python3\lib\site-packages\pip\_internal\cli\autocompletion.py", line 8, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "c:\program files\python3\lib\site-packages\pip\_internal\cli\main_parser.py", line 12, in <module>
from pip._internal.commands import (
File "c:\program files\python3\lib\site-packages\pip\_internal\commands\__init__.py", line 6, in <module>
from pip._internal.commands.completion import CompletionCommand
File "c:\program files\python3\lib\site-packages\pip\_internal\commands\completion.py", line 6, in <module>
from pip._internal.cli.base_command import Command
File "c:\program files\python3\lib\site-packages\pip\_internal\cli\base_command.py", line 25, in <module>
from pip._internal.index import PackageFinder
File "c:\program files\python3\lib\site-packages\pip\_internal\index.py", line 41, in <module>
from pip._internal.wheel import Wheel
File "c:\program files\python3\lib\site-packages\pip\_internal\wheel.py", line 7, in <module>
import compileall
File "c:\program files\python3\lib\compileall.py", line 20, in <module>
from concurrent.futures import ProcessPoolExecutor
File "c:\program files\python3\lib\site-packages\concurrent\futures\__init__.py", line 8, in <module>
from concurrent.futures._base import (FIRST_COMPLETED,
File "c:\program files\python3\lib\site-packages\concurrent\futures\_base.py", line 381
raise exception_type, self._exception, self._traceback
^
SyntaxError: invalid syntax ----------------------------------------
Command ""c:\program files\python3\python.exe" "c:\program files\python3\lib\site-packages\pip" install --ignore-installed --no-user --prefix C:\Users\S~1.WU\AppData\Local\Temp\pip-build-env-0g2rl8se\overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel" failed with error code 1 in None

下面就介绍用setup.py文件进行安装

1、先下载 pyinstaller的安装文件,下载地址:http://www.pyinstaller.org/downloads.html

2、我安装的是3.4版本,直接下载:pyinstaller 3.4

3、下载到本地后,直接解压,然后通过管理员模式打开命令窗口,用 cd 命令切换至 pyinstaller的解压路径,然后运行 python setup.py install

4、安装的过程会花点时间,就耐心等待吧,出现下面的提示表明安装成功

Best match: setuptools 40.8.0
Adding setuptools 40.8.0 to easy-install.pth file
Installing easy_install-script.py script to C:\Program Files\Python3\Scripts
Installing easy_install.exe script to C:\Program Files\Python3\Scripts
Installing easy_install-3.6-script.py script to C:\Program Files\Python3\Scripts
Installing easy_install-3.6.exe script to C:\Program Files\Python3\Scripts Using c:\program files\python3\lib\site-packages
Finished processing dependencies for PyInstaller==3.4

  

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

PS C:\Windows\system32> pip show pyinstaller
Name: pyinstaller
Version: 3.4
Summary: PyInstaller bundles a Python application and all its dependencies into a single package.
Home-page: http://www.pyinstaller.org
Author: Giovanni Bajo, Hartmut Goebel, David Vierra, David Cortesi, Martin Zibricky
Author-email: pyinstaller@googlegroups.com
License: GPL license with a special exception which allows to use PyInstaller to build and distribute non-free programs (including commercial ones)
Location: c:\program files\python3\lib\site-packages\pyinstaller-3.4-py3.6.egg
Requires: setuptools, pefile, macholib, altgraph, pywin32-ctypes
Required-by:

  

pip命令安装 pyinstaller失败解决办法的更多相关文章

  1. 48-Python 安装pyautogui失败解决办法

    转载自:https://www.cnblogs.com/SH170706/p/9809830.html Python 安装pyautogui 在Python中使用PyAutoGui模拟键盘和鼠标操作 ...

  2. adb devices命令链接设备失败 解决办法

    使用adb devices命令链接设备失败 1,检查adb的环境配置是否存在问题 参见我的博客(sdk配置):https://www.cnblogs.com/changpuyi/p/9459025.h ...

  3. Ubuntu Server 上安装pip后pip命令报错的解决办法

    Installation Do I need to install pip? pip is already installed if you are using Python 2 >=2.7.9 ...

  4. Eclipse安装ADT失败解决办法

    Eclipse的版本是3.5.2,配置Android的开发环境时遇到问题…… 按照Android官方文档一步步安装,到了安装Eclipse的ADT插件时,提示“requires 'org.eclips ...

  5. python 安装pytorch 及 安装失败解决办法

    python 安装pytorch 及 安装失败解决办法 [转] pytorch安装失败解决办法 [转] 一分钟在win10终端成功安装pytorch pytorch 的安装方法有2种,一种是pip安装 ...

  6. Ubuntu16.04 RYU pip命令安装

    pip命令安装方法 sudo apt install gcc python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev zlib1g-dev ...

  7. Mysql文件太大导入失败解决办法总结

    Mysql文件太大导入失败解决办法总结 在使用phpmyadmin导入数据库的时候可能会碰到由于数据库文件太大而无法导入的问题! 英文提示如下:File exceeds the maximum all ...

  8. myeclipse2017破解失败解决办法

    最近,笔者安装的myeclipse2017破解出了问题,破解本来是很简单的事,就是几步而已,但是一直出问题,现在安利一波myeclipse2017版破解失败解决办法.诸如下图:()因为笔者已经破解好了 ...

  9. 在windows系统上使用pip命令安装python的第三方库

    在windows系统上使用pip命令安装python的第三方库 通过cmd启动命令行后,直接输入pip命令,有时候命令行会提示我们pip不是一个指令,这个时候我们可以通过python的集成开发环境里面 ...

随机推荐

  1. [转]Sequelize 中文API文档-4. 查询与原始查询

    本文转自:https://itbilu.com/nodejs/npm/VJIR1CjMb.html Sequelize中有两种查询:使用Model(模型)中的方法查询和使用sequelize.quer ...

  2. .Net NPOI 根据excel模板导出excel、直接生成excel

    一.根据Excel模板导出excel 1.导入NPOI.dll  2.DAL中添加类ExportExcel.cs using NPOI.SS.UserModel; using System; usin ...

  3. js实现ctrl+v上传图片

    描述:实现类似QQ截图删上传图片的功能 a.需要的js插件 paste.image.js 地址:https://github.com/iyangyuan/pasteimg b.paste.image. ...

  4. 深入理解SpringCloud与微服务构建

    旭日Follow_24 的CSDN 博客 ,全文地址请点击: https://blog.csdn.net/xuri24/article/details/81742534 目录 一.SpringClou ...

  5. 解密JavaScript闭包

    译者按: 从最简单的计数器开始,按照需求对代码一步步优化,我们可以领会闭包的神奇之处. 原文: Closures are not magic 译者: Fundebug 为了保证可读性,本文采用意译而非 ...

  6. C#如何通过属性名称反射出属性本身

    A a = new A(); Type t = typeof(A); var v1 = t.GetField("n").GetValue(a);//获取字段值,你的类A.n是字段, ...

  7. java ee,包括js,html,jsp等等知识整合

    为了方便修改和后续的包装套路   首先用户访问的页面从web.xml找到 <welcome-file-list> <welcome-file>index.html</we ...

  8. js 每到达5次换一行

    function getYourString(s) { var res = ''; var length = s.length; for (var i = 0, j = 1; i < lengt ...

  9. node+pm2+express+mysql+sequelize来搭建网站和写接口

    前面的话:在这里已经提到了安装node的方法,node是自带npm的.我在技术中会用es6去编写,然后下面会分别介绍node.pm2.express.mysql.sequelize.有少部分是摘抄大佬 ...

  10. 从零开始设计数据大屏—基于Vue ZT

    虽然已经决定这个项目用Wyn来做了,但是,了解一下如何从头开始写一个数据大屏还是挺有好玩的. ------------- 为什么要做数据大屏? 现如今的大数据逐渐发挥出了它的力量,并无形的改变着我们的 ...