2017-05-31 52 views
0

我试图通过PIP3安装protobuf的安装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无法使用PIP 3

当我克隆来自https://github.com/google/protobuf.git的所有代码并尝试从本地安装,我刚刚得到相同的错误。

回答

0

我已经想通了。 pip install --upgrade --ignore-installed tensorflow