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()

在這裏插入圖片描述

發佈了20 篇原創文章 · 獲贊 3 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章