无法使用pip3

时间:2017-05-31 07:40:35

标签: python pip protocol-buffers

我试图通过pip3安装protobuf并且我遇到了错误: Failed building wheel for protobuf Running setup.py clean for protobuf Failed to build protobuf Installing collected packages: protobuf Running setup.py install for protobuf ... error Complete output from command c:\users\python350\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\AppData\\Local\\Temp\\pip-build-3z6exhcv\\protobuf\\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\CL57586\AppData\Local\Temp\pip-mza8nb7f-record\install-record.txt --single-version-externally-managed --compile: running install running build running build_py Generating google/protobuf/descriptor_pb2.py... Can't find required file: ../src/google/protobuf/descriptor.proto python版本是3.5.0 使用这样的命令: pip3 install protobuf

当我从https://github.com/google/protobuf.git克隆所有代码并尝试从本地安装时,我遇到了同样的错误。

1 个答案:

答案 0 :(得分:0)

我已经弄明白了。 pip install --upgrade --ignore-installed tensorflow