无法在具有Python 3.7.5的Ubuntu 18.04上安装grpcio?

时间:2020-08-25 15:50:48

标签: python-3.x pip ubuntu-18.04

我在Ubuntu 18.04上使用Python 3.7.5。 尝试安装ray和tensorflow软件包,但在安装以下软件包之一时出现错误 依赖包grpcio。

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-i0uwqz32/grpcio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-x6clk2ue-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-i0uwqz32/grpcio/
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 360, in run
    prefix=options.prefix_path,
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 878, in install
    spinner=spinner,
  File "/usr/lib/python3/dist-packages/pip/utils/__init__.py", line 725, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-i0uwqz32/grpcio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-x6clk2ue-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-i0uwqz32/grpcio/

1 个答案:

答案 0 :(得分:0)

我使用了以下命令(用于启用PyProf)

fieldset = LabelFrame(root, text="Here goes the label")  

谢谢