【问题标题】:how to run the command pip3 install tensorflow on linux mint如何在 linux mint 上运行命令 pip3 install tensorflow
【发布时间】:2020-07-14 15:53:30
【问题描述】:

我在 linux mint 和 python3 上运行上面的命令。 我得到错误:

Failed building wheel for grpcio

还有

命令

/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lm1pg4la/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-r4j8ens0-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-lm1pg4la/grpcio/

请帮帮我

【问题讨论】:

    标签: python-3.x tensorflow linux-mint


    【解决方案1】:

    我用这个命令解决了这个问题

    pip3 install --upgrade pip3
    
    sudo apt update && apt install -qy python3-pip time
    
    sudo time pip3 install grpcio == 1.31.0
    

    或使用降级到 49.6.0 并尝试安装它会工作。

    pip install setuptools==49.6.0 
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-21
    • 2016-07-08
    • 1970-01-01
    • 1970-01-01
    • 2021-08-12
    • 2017-07-06
    • 2017-03-23
    • 2022-08-11
    相关资源
    最近更新 更多