十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
在执行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.exe
安装包mingw-get-setup.exe
,点击Install
:Continue
:All Packages
,然后在里面找到mingw32-gcc-bin
,mingw32-gcc-g++-bin
, 以及mingw32-gdb-bin
,第一个是c语言文件的编译器,第二个是c++的,第三个是用来调试编译后文件的:Installation->Apply changes
.耐心等待安装完即可。编辑系统环境变量
环境变量
->系统变量中的Path
->编辑
参考链接: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元起,快前往官网查看详情吧