python3.5更新版本引发的一系列问题ERROR: Command errored out with exit status 1

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\EL113>pip3 install pyecharts
Fatal error in launcher: Unable to create process using '"d:\software\python38\p
ython.exe"  "D:\Software\Python38\Scripts\pip3.exe" install pyecharts'

C:\Users\EL113>pip install pyecharts
Fatal error in launcher: Unable to create process using '"d:\software\python38\p
ython.exe"  "D:\Software\Python38\Scripts\pip.exe" install pyecharts'

C:\Users\EL113>pip list
Fatal error in launcher: Unable to create process using '"d:\software\python38\p
ython.exe"  "D:\Software\Python38\Scripts\pip.exe" list'

C:\Users\EL113>pip3 lis
Fatal error in launcher: Unable to create process using '"d:\software\python38\p
ython.exe"  "D:\Software\Python38\Scripts\pip3.exe" lis'

C:\Users\EL113>pip3 list
Fatal error in launcher: Unable to create process using '"d:\software\python38\p
ython.exe"  "D:\Software\Python38\Scripts\pip3.exe" list'

C:\Users\EL113>python38
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

C:\Users\EL113>python38 -m pip install -upgrade pip

Usage:
  D:\Software\Python38\python38.exe -m pip install [options] <requirement specif
ier> [package-index-options] ...
  D:\Software\Python38\python38.exe -m pip install [options] -r <requirements fi
le> [package-index-options] ...
  D:\Software\Python38\python38.exe -m pip install [options] [-e] <vcs project u
rl> ...
  D:\Software\Python38\python38.exe -m pip install [options] [-e] <local project
 path> ...
  D:\Software\Python38\python38.exe -m pip install [options] <archive url/path>
...

no such option: -u

C:\Users\EL113>python -m pip install -upgrade pip

Usage:
  D:\Software\auto\SmartTest\Python27\python.exe -m pip install [options] <requi
rement specifier> [package-index-options] ...
  D:\Software\auto\SmartTest\Python27\python.exe -m pip install [options] -r <re
quirements file> [package-index-options] ...
  D:\Software\auto\SmartTest\Python27\python.exe -m pip install [options] [-e] <
vcs project url> ...
  D:\Software\auto\SmartTest\Python27\python.exe -m pip install [options] [-e] <
local project path> ...
  D:\Software\auto\SmartTest\Python27\python.exe -m pip install [options] <archi
ve url/path> ...

no such option: -u

C:\Users\EL113>python38 -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b
0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-19.3.1

C:\Users\EL113>pip3 install pyecharts
Collecting pyecharts
  Using cached https://files.pythonhosted.org/packages/db/cb/338576f944304581844
60d3169794723f696b1fb1b930455561cb741210a/pyecharts-1.6.0-py3-none-any.whl
Collecting jinja2
  Downloading https://files.pythonhosted.org/packages/65/e0/eb35e762802015cab1cc
ee04e8a277b03f1d8e53da3ec3106882ec42558b/Jinja2-2.10.3-py2.py3-none-any.whl (125
kB)
     |████████████████                | 61kB 438kB/s eta 0:00:01
     |██████████████████              | 71kB 511kB/s eta 0:00:
     |█████████████████████           | 81kB 585kB/s eta 0:
     |███████████████████████▌        | 92kB 658kB/s eta
     |██████████████████████████      | 102kB 547kB/s
     |█████████████████████████████   | 112kB 547kB
     |███████████████████████████████▌| 122kB 54
     |████████████████████████████████| 133kB 54
7kB/s
Collecting prettytable
  Using cached https://files.pythonhosted.org/packages/ef/30/4b0746848746ed5941f
052479e7c23d2b56d174b82f4fd34a25e389831f5/prettytable-0.7.2.tar.bz2
Collecting simplejson
  Downloading https://files.pythonhosted.org/packages/98/87/a7b98aa9256c8843f928
78966dc3d8d914c14aad97e2c5ce4798d5743e07/simplejson-3.17.0.tar.gz (83kB)
     |████████████████████            | 51kB 1.1MB/s eta 0:0
     |███████████████████████▌        | 61kB 1.3MB/s eta
     |███████████████████████████▌    | 71kB 1.5MB/s
     |███████████████████████████████▌| 81kB 1.3
     |████████████████████████████████| 92kB 1.2
MB/s
Collecting MarkupSafe>=0.23
  Downloading https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea
71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
Installing collected packages: MarkupSafe, jinja2, prettytable, simplejson, pyec
harts
    Running setup.py install for MarkupSafe ... error
    ERROR: Command errored out with exit status 1:
     command: 'd:\software\python38\python38.exe' -u -c 'import sys, setuptools,
 tokenize; sys.argv[0] = '"'"'C:\\Users\\EL113\\AppData\\Local\\Temp\\pip-instal
l-02mefhj8\\MarkupSafe\\setup.py'"'"'; __file__='"'"'C:\\Users\\EL113\\AppData\\
Local\\Temp\\pip-install-02mefhj8\\MarkupSafe\\setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"
'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record '
C:\Users\EL113\AppData\Local\Temp\pip-record-9ck1zk5g\install-record.txt' --sing
le-version-externally-managed --compile
         cwd: C:\Users\EL113\AppData\Local\Temp\pip-install-02mefhj8\MarkupSafe\

    Complete output (23 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\markupsafe
    copying src\markupsafe\_compat.py -> build\lib.win-amd64-3.8\markupsafe
    copying src\markupsafe\_constants.py -> build\lib.win-amd64-3.8\markupsafe
    copying src\markupsafe\_native.py -> build\lib.win-amd64-3.8\markupsafe
    copying src\markupsafe\__init__.py -> build\lib.win-amd64-3.8\markupsafe
    running egg_info
    writing src\MarkupSafe.egg-info\PKG-INFO
    writing dependency_links to src\MarkupSafe.egg-info\dependency_links.txt
    writing top-level names to src\MarkupSafe.egg-info\top_level.txt
    reading manifest file 'src\MarkupSafe.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs\_build'
    warning: no previously-included files matching '*.py[co]' found anywhere in
distribution
    writing manifest file 'src\MarkupSafe.egg-info\SOURCES.txt'
    copying src\markupsafe\_speedups.c -> build\lib.win-amd64-3.8\markupsafe
    running build_ext
    building 'markupsafe._speedups' extension
    error: [WinError 3] 系统找不到指定的路径。: 'D:\\Program Files (x86)\\Micros
oft Visual Studio 14.0\\VC\\PlatformSDK\\lib'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\software\python38\python38.ex
e' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\EL113\
\AppData\\Local\\Temp\\pip-install-02mefhj8\\MarkupSafe\\setup.py'"'"'; __file__
='"'"'C:\\Users\\EL113\\AppData\\Local\\Temp\\pip-install-02mefhj8\\MarkupSafe\\
setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().
replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'
"'exec'"'"'))' install --record 'C:\Users\EL113\AppData\Local\Temp\pip-record-9c
k1zk5g\install-record.txt' --single-version-externally-managed --compile Check t
he logs for full command output.

C:\Users\EL113>pip3 install pyecharts
'pip3' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Users\EL113>python38 -m pip install -upgrade pip

Usage:
  D:\Software\Python38\python38.exe -m pip install [options] <requirement specif
ier> [package-index-options] ...
  D:\Software\Python38\python38.exe -m pip install [options] -r <requirements fi
le> [package-index-options] ...
  D:\Software\Python38\python38.exe -m pip install [options] [-e] <vcs project u
rl> ...
  D:\Software\Python38\python38.exe -m pip install [options] [-e] <local project
 path> ...
  D:\Software\Python38\python38.exe -m pip install [options] <archive url/path>
...

no such option: -u

C:\Users\EL113>python38 -m pip install --upgrade pip
Requirement already up-to-date: pip in d:\software\python38\lib\site-packages (1
9.3.1)

C:\Users\EL113>python38 -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b
0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-19.3.1

C:\Users\EL113>

问题:python安装第三方库遇到 ERROR: Command errored out with exit status 1:
先打开python看看自己的python是什么版本的,多少位的。像我的就是3.8.0版本64位;去https://www.lfd.uci.edu/~gohlke/pythonlibs/找到对应版本的whl文件,我的话就是找wordcloud-1.6.0-cp38-cp38-win_amd64.whl这一个,其中cp38代表3.8版本,win32代表Windows系统32位机,amd64代表Windows系统64位机。
在这里插入图片描述
将下载下来的包放到D:\Software\Python38下,或者新建一个文件夹whl,放到里面。
cd到whl文件所在的文件路径下,执行命令:pip3 install wordcloud-1.6.0-cp38-cp38-win_amd64.whl
执行结果如下:在这里插入图片描述

问题:cmd 中用pip报的错误为:Fatal error in launcher:Unable to create process using
1、找到D:\Software\Python38\Scripts路径下pip、pip3、pip3.8均删除
在这里插入图片描述
2、找到D:\Software\Python38\Lib\site-packages删除红色框框的文件夹
在这里插入图片描述
3、cmd命令窗口运行:python3 -m pip install --upgrade pip
4、成功解决在cmd命令窗口中运行pip或pip3报错的情况。

问题:报错这个,暂时无能力解决
在这里插入图片描述

处理方案:打开Visual Studio 2015
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
由于占用C盘空间过大,大概为9G,C盘也才剩下9G,无法完成这项更新任务,故中途停止更新。
然后灵感借鉴于安装mysqlconnector包,采取另外的命令来安装:
python38 -m pip install pyecharts
在这里插入图片描述
在这里插入图片描述
运行如下代码,总算没有报错,可是也没有见到有图加载显示。

from pyecharts.charts import Bar
from pyecharts import options as opts

# V1 版本开始支持链式调用
bar = (
    Bar()
    .add_xaxis(["衬衫", "毛衣", "领带", "裤子", "风衣", "高跟鞋", "袜子"])
    .add_yaxis("商家A", [114, 55, 27, 101, 125, 27, 105])
    .add_yaxis("商家B", [57, 134, 137, 129, 145, 60, 49])
    .set_global_opts(title_opts=opts.TitleOpts(title="某商场销售情况"))
)
bar.render()

# 不习惯链式调用的开发者依旧可以单独调用方法
bar = Bar()
bar.add_xaxis(["衬衫", "毛衣", "领带", "裤子", "风衣", "高跟鞋", "袜子"])
bar.add_yaxis("商家A", [114, 55, 27, 101, 125, 27, 105])
bar.add_yaxis("商家B", [57, 134, 137, 129, 145, 60, 49])
bar.set_global_opts(title_opts=opts.TitleOpts(title="某商场销售情况"))
bar.render()

在这里插入图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值