在執(zhí)行pip install eos-py
時(shí)報(bào)錯(cuò)信息如下:
(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)
問(wèn)題解決
下載安裝 GCC.exe
安裝包mingw-get-setup.exe
,點(diǎn)擊Install
:Continue
:All Packages
,然后在里面找到mingw32-gcc-bin
,mingw32-gcc-g++-bin
, 以及mingw32-gdb-bin
,第一個(gè)是c語(yǔ)言文件的編譯器,第二個(gè)是c++的,第三個(gè)是用來(lái)調(diào)試編譯后文件的:Installation->Apply changes
.耐心等待安裝完即可。編輯系統(tǒng)環(huán)境變量
環(huán)境變量
->系統(tǒng)變量中的Path
->編輯
參考鏈接:https://blog.51cto.com/u_15491623/5145577
安裝成功后查看 gcc 版本號(hào)(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海外機(jī)房具備T級(jí)流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級(jí)服務(wù)器適合批量采購(gòu),新人活動(dòng)首月15元起,快前往官網(wǎng)查看詳情吧
分享文章:windows平臺(tái)執(zhí)行pipinstalleos-py命令錯(cuò)誤-創(chuàng)新互聯(lián)
文章URL:http://vcdvsql.cn/article12/dscodc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站、外貿(mào)網(wǎng)站建設(shè)、移動(dòng)網(wǎng)站建設(shè)、用戶體驗(yàn)、自適應(yīng)網(wǎng)站、營(yíng)銷型網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容