重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

windows平台执行pipinstalleos-py命令错误-创新互联

问题描述

在执行pip install eos-py时报错信息如下:

成都创新互联公司专注于石嘴山网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供石嘴山营销型网站建设,石嘴山网站制作、石嘴山网页设计、石嘴山网站官网定制、成都微信小程序服务,打造石嘴山网络公司原创品牌,更为您提供石嘴山网站排名全网营销落地服务。
(gaze) PS C:\gaze\code\faze_preprocess-master>pip install eos-py
WARNING: Ignoring invalid distribution -umpy (c:\users\asus\.conda\envs\gaze\lib\site-packages)
WARNING: Ignoring invalid distribution -orch (c:\users\asus\.conda\envs\gaze\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\users\asus\.conda\envs\gaze\lib\site-packages)    
WARNING: Ignoring invalid distribution -umpy (c:\users\asus\.conda\envs\gaze\lib\site-packages)
WARNING: Ignoring invalid distribution -orch (c:\users\asus\.conda\envs\gaze\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\users\asus\.conda\envs\gaze\lib\site-packages)    
Collecting eos-py
  Using cached eos-py-1.3.0.tar.gz (2.4 MB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: eos-py
  Building wheel for eos-py (setup.py) ... error
  error: subprocess-exited-with-error                    
                                                         
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1                                         
  ╰─>[54 lines of output]
      running bdist_wheel
      running build
      running build_ext
      Traceback (most recent call last):
        File "C:\Users\ASUS\AppData\Local\Temp\pip-install-2ayr9av4\eos-py_d549ca26f3834db3b8c821ec40a1ff66\setup.py", line 22, in run
          out = subprocess.check_output(['cmake', '--version'])
        File "C:\Users\ASUS\.conda\envs\gaze\lib\subprocess.py", line 389, in check_output
          **kwargs).stdout
        File "C:\Users\ASUS\.conda\envs\gaze\lib\subprocess.py", line 466, in run
          with Popen(*popenargs, **kwargs) as process:
        File "C:\Users\ASUS\.conda\envs\gaze\lib\subprocess.py", line 769, in __init__
          restore_signals, start_new_session)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\subprocess.py", line 1172, in _execute_child
          startupinfo)
      FileNotFoundError: [WinError 2] 系统找不到指定的文件。
     
      During handling of the above exception, another exception occurred:
     
      Traceback (most recent call last):
        File "", line 36, inFile "", line 34, inFile "C:\Users\ASUS\AppData\Local\Temp\pip-install-2ayr9av4\eos-py_d549ca26f3834db3b8c821ec40a1ff66\setup.py", line 79, in  zip_safe=False,
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
          self.run_command(cmd)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\dist.py", line 1217, in run_command
          super().run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
          cmd_obj.run()
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
          self.run_command('build')
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\dist.py", line 1217, in run_command
          super().run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
          cmd_obj.run()
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
          self.run_command(cmd_name)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\dist.py", line 1217, in run_command
          super().run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
          cmd_obj.run()
        File "C:\Users\ASUS\AppData\Local\Temp\pip-install-2ayr9av4\eos-py_d549ca26f3834db3b8c821ec40a1ff66\setup.py", line 25, in run
          ", ".join(e.name for e in self.extensions))
      RuntimeError: CMake must be installed to build the following extensions: eos
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for eos-py
  Running setup.py clean for eos-py
Failed to build eos-py
WARNING: Ignoring invalid distribution -umpy (c:\users\asus\.conda\envs\gaze\lib\site-packages)
WARNING: Ignoring invalid distribution -orch (c:\users\asus\.conda\envs\gaze\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\users\asus\.conda\envs\gaze\lib\site-packages)
Installing collected packages: eos-py
  Running setup.py install for eos-py ... error
  error: subprocess-exited-with-error

  × Running setup.py install for eos-py did not run successfully.
  │ exit code: 1
  ╰─>[58 lines of output]
      running install
      C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.     
        setuptools.SetuptoolsDeprecationWarning,
      running build
      running build_ext
      Traceback (most recent call last):
        File "C:\Users\ASUS\AppData\Local\Temp\pip-install-2ayr9av4\eos-py_d549ca26f3834db3b8c821ec40a1ff66\setup.py", line 22, in run
          out = subprocess.check_output(['cmake', '--version'])
        File "C:\Users\ASUS\.conda\envs\gaze\lib\subprocess.py", line 389, in check_output
          **kwargs).stdout
        File "C:\Users\ASUS\.conda\envs\gaze\lib\subprocess.py", line 466, in run
          with Popen(*popenargs, **kwargs) as process:
        File "C:\Users\ASUS\.conda\envs\gaze\lib\subprocess.py", line 769, in __init__
          restore_signals, start_new_session)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\subprocess.py", line 1172, in _execute_child
          startupinfo)
      FileNotFoundError: [WinError 2] 系统找不到指定的文件。
     
      During handling of the above exception, another exception occurred:
     
      Traceback (most recent call last):
        File "", line 36, inFile "", line 34, inFile "C:\Users\ASUS\AppData\Local\Temp\pip-install-2ayr9av4\eos-py_d549ca26f3834db3b8c821ec40a1ff66\setup.py", line 79, in  zip_safe=False,
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
          self.run_command(cmd)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\dist.py", line 1217, in run_command
          super().run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
          cmd_obj.run()
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\command\install.py", line 68, in run
          return orig.install.run(self)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\command\install.py", line 698, in run
          self.run_command('build')
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\dist.py", line 1217, in run_command
          super().run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
          cmd_obj.run()
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
          self.run_command(cmd_name)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\dist.py", line 1217, in run_command
          super().run_command(command)
        File "C:\Users\ASUS\.conda\envs\gaze\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
          cmd_obj.run()
        File "C:\Users\ASUS\AppData\Local\Temp\pip-install-2ayr9av4\eos-py_d549ca26f3834db3b8c821ec40a1ff66\setup.py", line 25, in run
          ", ".join(e.name for e in self.extensions))
      RuntimeError: CMake must be installed to build the following extensions: eos
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─>eos-py

note: This is an issue with the package mentioned above, not pip.
WARNING: Ignoring invalid distribution -umpy (c:\users\asus\.conda\envs\gaze\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\users\asus\.conda\envs\gaze\lib\site-packages)
问题解决 下载安装 GCC
  1. 下载.exe安装包
    为了在 Windows 上安装 GCC,需要到MinGW 的主页,也可以直接打开以下链接进行下载 https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/
  2. 安装 GCC
    运行mingw-get-setup.exe,点击Install
    在这里插入图片描述
    选择安装路径,然后点击Continue
    在这里插入图片描述
    点击All Packages,然后在里面找到mingw32-gcc-bin,mingw32-gcc-g++-bin, 以及mingw32-gdb-bin,第一个是c语言文件的编译器,第二个是c++的,第三个是用来调试编译后文件的:
    在这里插入图片描述
    然后点Installation->Apply changes.耐心等待安装完即可。
    在这里插入图片描述
    在这里插入图片描述
    如果中间出现报错,一般都是服务器终端导致的,重新来一次就可以了,会把我们角色的重新安装。
    在这里插入图片描述
  3. 配置环境变量
    在开始菜单旁边的搜索栏搜索编辑系统环境变量
    在这里插入图片描述
    依次点击环境变量->系统变量中的Path->编辑
    在这里插入图片描述
    将 GCC 的安装路径加入到环境变量中:
    在这里插入图片描述

参考链接:https://blog.51cto.com/u_15491623/5145577

安装成功后查看 gcc 版本号
(base) C:\Windows\system32>gcc --version
gcc (MinGW.org GCC Build-2) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
重新执行pip install eos-py命令:
(base) C:\Windows\system32>pip install eos-py
Collecting eos-py
  Downloading eos_py-1.3.0-cp39-cp39-win_amd64.whl (395 kB)
     |████████████████████████████████| 395 kB 285 kB/s
Installing collected packages: eos-py
Successfully installed eos-py-1.3.0

你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧


本文名称:windows平台执行pipinstalleos-py命令错误-创新互联
本文来源:http://cqcxhl.com/article/dscodc.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP