Could not install packages due to an OSError: [Errno2] No such file or directory
13,122
Solution 1
Try following this tutorial: https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/.
Solution 2
In my case, only deleting manually the "leftovers" of the package in the environment directory fixed this problem. path : ... "\venv\Lib\site-packages\ {package name}" make sure you backup before deleting any file.
Related videos on Youtube
Author by
project394
Updated on May 30, 2022Comments
-
project394 almost 2 years
When I try to install Tensorflow this message appears. I use the latest version of python and pip.
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\julia\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\tensorflow\\include\\external\\com_github_grpc_grpc\\src\\core\\ext\\filters\\client_channel\\lb_policy\\grpclb\\client_load_reporting_filter.h'
It appears on all the older versions of Tensorflow. On the newest release appears this:
ERROR: Could not find a version that satisfies the requirement tensorflow==1.2.0 ERROR: No matching distribution found for tensorflow==1.2.0
-
project394 about 3 yearsThe issue is fixed.