在命令行使用pip包安装python第三方包时出现错误“ Command errored out with exit status 1”的解决方案

在命令行使用pip包安装python第三方包时出现错误“ Command errored out with exit status 1”的解决方案_第1张图片

  1. 查看自己的python版本以及电脑位数
    打开cmd,输入python回车
    在命令行使用pip包安装python第三方包时出现错误“ Command errored out with exit status 1”的解决方案_第2张图片以我的电脑为例,当前版本为python3.7,64位

  2. 在 https://www.lfd.uci.edu/~gohlke/pythonlibs/ 网站下载相应的wheel文件,其中cp37即表示当前版本为python3.7
    在命令行使用pip包安装python第三方包时出现错误“ Command errored out with exit status 1”的解决方案_第3张图片

  3. 将下载好的文件粘贴到命令行所示的目录下
    在这里插入图片描述
    在命令行使用pip包安装python第三方包时出现错误“ Command errored out with exit status 1”的解决方案_第4张图片

  4. 在命令行输入pip install +“wheel文件名称”,等待安装即可

pip install pylzma-0.5.0-cp37-cp37m-win_amd64.whl

安装成功

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing c:\users\33017\pylzma-0.5.0-cp37-cp37m-win_amd64.whl
Installing collected packages: pylzma
Successfully installed pylzma-0.5.0

你可能感兴趣的:(在命令行使用pip包安装python第三方包时出现错误“ Command errored out with exit status 1”的解决方案)