Closed Bleach665 closed 3 years ago
try to use Anaconda3-2020.11
Same error with Anaconda3-2020.11-Windows-x86_64.exe
and tensorflow-2.4.0-cp38-cp38-win_amd64.whl
.
Did you install the tf on base env?
Did you install the tf on base env?
No, I tried in coda created environment
conda create -n env python=3.8
and
python -m venv env
The same error occurs.
In the near future I will try to reproduce this error on a pure virtual machine.
If you use a new conda virtual environment, maybe you can try to install protobuf form conda instead of pip.
Or you can try to use tf on base env first to see if it work or not.
If you use a new conda virtual environment, maybe you can try to install protobuf form conda instead of pip. Or you can try to use tf on base env first to see if it work or not.
It didn't help.
I couldn't reproduce this error on a clean virtual machine, so I'm closing this issue.
@fo40225 , thanks for your participation and advice.
For those who come here through the search: Currently, the error described above occurs if an environment variable 'PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION' is set to 'cpp'. Earlier, this variable fixed same issue. Now it on the contrary causes it.
Windows 10 Enterprise, Python 3.8.7, CUDA 11.1,
tensorflow-2.4.0-cp38-cp38-win_amd64.whl
. CPU 2x Xeon 5660.Step to reproduce:
Received errors:
I tried to fix this with
setx PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION cpp
pip install --upgrade --force-reinstall protobuf
, but it didn't help.Also tried
tensorflow-2.3.0-cp38-cp38-win_amd64.whl
, but the same error occurred