windows平臺執(zhí)行pipinstalleos-py命令錯誤-創(chuàng)新互聯(lián)

問題描述

在執(zhí)行pip install eos-py時報錯信息如下:

成都創(chuàng)新互聯(lián)公司專注于石嘴山網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供石嘴山營銷型網(wǎng)站建設(shè),石嘴山網(wǎng)站制作、石嘴山網(wǎng)頁設(shè)計、石嘴山網(wǎng)站官網(wǎng)定制、成都微信小程序服務(wù),打造石嘴山網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供石嘴山網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。
(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] 系統(tǒng)找不到指定的文件。
     
      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] 系統(tǒng)找不到指定的文件。
     
      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++的,第三個是用來調(diào)試編譯后文件的:
    在這里插入圖片描述
    然后點Installation->Apply changes.耐心等待安裝完即可。
    在這里插入圖片描述
    在這里插入圖片描述
    如果中間出現(xiàn)報錯,一般都是服務(wù)器終端導(dǎo)致的,重新來一次就可以了,會把我們角色的重新安裝。
    在這里插入圖片描述
  3. 配置環(huán)境變量
    在開始菜單旁邊的搜索欄搜索編輯系統(tǒng)環(huán)境變量
    在這里插入圖片描述
    依次點擊環(huán)境變量->系統(tǒng)變量中的Path->編輯
    在這里插入圖片描述
    將 GCC 的安裝路徑加入到環(huán)境變量中:
    在這里插入圖片描述

參考鏈接: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.
重新執(zhí)行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

你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機房具備T級流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級服務(wù)器適合批量采購,新人活動首月15元起,快前往官網(wǎng)查看詳情吧

分享文章:windows平臺執(zhí)行pipinstalleos-py命令錯誤-創(chuàng)新互聯(lián)
文章URL:http://bm7419.com/article12/dscodc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站、外貿(mào)網(wǎng)站建設(shè)、移動網(wǎng)站建設(shè)、用戶體驗、自適應(yīng)網(wǎng)站、營銷型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名