Пытаясь установить пакет python fire в Ubuntu 20.04 / Mint 20, я получаю следующие ошибки. Есть ли способ сделать набросок, чтобы все же установить этот пакет? У меня такая же проблема, если я попытаюсь собрать пакет самостоятельно, скомпилировав исходный код.
В этом случае пакет действительно нужен для некоторого другого программного обеспечения, которое я также полностью установил раньше без каких-либо проблем.
Любая помощь будет принята с благодарностью!
pip install fire
Collecting fire
Using cached fire-0.3.1.tar.gz (81 kB)
Requirement already satisfied: six in /home/dan/.virtualenvs/lean_env/lib/python3.8/site-packages (from fire) (1.14.0)
Collecting termcolor
Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Building wheels for collected packages: fire, termcolor
Building wheel for fire (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/dan/.virtualenvs/lean_env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6dsqryo9/fire/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6dsqryo9/fire/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ph0tcd2i
cwd: /tmp/pip-install-6dsqryo9/fire/
Complete output (92 lines):
running bdist_wheel
The [wheel] section is deprecated. Use [bdist_wheel] instead.
running build
running build_py
creating build
creating build/lib
creating build/lib/fire
copying fire/parser_fuzz_test.py -> build/lib/fire
copying fire/__init__.py -> build/lib/fire
... a lot of copying, omitted...
copying fire/interact_test.py -> build/lib/fire
creating build/lib/fire/console
copying fire/console/__init__.py -> build/lib/fire/console
copying fire/console/console_attr.py -> build/lib/fire/console
copying fire/console/console_io.py -> build/lib/fire/console
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-6dsqryo9/fire/setup.py", line 46, in <module>
setup(
File "/home/dan/.virtualenvs/lean_env/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/dan/.virtualenvs/lean_env/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 259, in run
self.run_command('install')
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/dan/.virtualenvs/lean_env/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/command/install.py", line 557, in run
self.run_command(cmd_name)
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/dist.py", line 984, in run_command
cmd_obj.ensure_finalized()
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/home/dan/.virtualenvs/lean_env/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
self.set_undefined_options('install',('install_layout','install_layout'))
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/cmd.py", line 290, in set_undefined_options
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
File "/home/dan/.pyenv/versions/3.8.0/lib/python3.8/distutils/cmd.py", line 103, in __getattr__
raise AttributeError(attr)
AttributeError: install_layout
----------------------------------------
ERROR: Failed building wheel for fire
Running setup.py clean for fire