遇到了问题。尝试为Python 3.7安装气流,并且在安装Visual Studio 2017之后,由于出现以下错误,我无法完成pip install apache-airflow
:
感谢您的帮助。
请参见以下错误代码:
Running setup.py clean for dumb-init
Failed to build dumb-init
Installing collected packages: dumb-init
Running setup.py install for dumb-init ... error
Complete output from command C:\Users\artur\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\artur\\AppData\\Local\\Temp\\pip-install-2nm35rfq\\dumb-init\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\artur\AppData\Local\Temp\pip-record-g508k70d\install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_cexe
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\artur\AppData\Local\Temp\pip-install-2nm35rfq\dumb-init\setup.py", line 135, in <module>
distclass=ExeDistribution,
File "C:\Users\artur\Anaconda3\lib\site-packages\setuptools\__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "C:\Users\artur\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\artur\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\artur\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\artur\Anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Users\artur\Anaconda3\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\artur\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\artur\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\artur\Anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\artur\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\artur\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\artur\AppData\Local\Temp\pip-install-2nm35rfq\dumb-init\setup.py", line 95, in run
cmd = compiler.linker_exe + [f.name, '-static', '-o', os.devnull]
AttributeError: 'MSVCCompiler' object has no attribute 'linker_exe'
supports -static...
----------------------------------------
Command "C:\Users\artur\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\artur\\AppData\\Local\\Temp\\pip-install-2nm35rfq\\dumb-init\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\artur\AppData\Local\Temp\pip-record-g508k70d\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\artur\AppData\Local\Temp\pip-install-2nm35rfq\dumb-init\```