在执行 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, in <module>
File "" , line 34, in <module>
File "C:\Users\ASUS\AppData\Local\Temp\pip-install-2ayr9av4\eos-py_d549ca26f3834db3b8c821ec40a1ff66\setup.py", line 79, in <module>
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, in <module>
File "" , line 34, in <module>
File "C:\Users\ASUS\AppData\Local\Temp\pip-install-2ayr9av4\eos-py_d549ca26f3834db3b8c821ec40a1ff66\setup.py", line 79, in <module>
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)
.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
(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