pip install tensorflow cannot find file called client_load_reporting_filter.h

*爱你&永不变心* 提交于 2020-11-25 03:33:10

问题


I keep failing to run pip install on the tensorflow package. First it downloads the .whl file, then goes through a bunch of already satisfied requirements until it gets to installing collected packages: tensorflow, at which point here's the error I get:

ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\Borik\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python38\\site-packages\\tensorflow\\include\\external\\com_github_grpc_grpc\\src\\core\\ext\\filters\\client_channel\\lb_policy\\grpclb\\client_load_reporting_filter.h'

I've never seen anything like this before and can't seem to find anything on the net. I'm using Windows 10 and the latest versions of Pyhton and pip.


回答1:


I hit the same issue on Win10. Rather than renaming my filesystem, I found a good solution in this Python documentation https://docs.python.org/3/using/windows.html. Follow the instructions to update your registry for MAX_PATH, changing it from 0 to 1. This extends path from char(256) to char(32000). After this change, my 'pip install tensorflow' succeeded.



来源:https://stackoverflow.com/questions/63404192/pip-install-tensorflow-cannot-find-file-called-client-load-reporting-filter-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!