Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory \\METADATA
TL;DR: Problem: Long install path Solution 1: Install the desired python package (in my case tensorflow) in the folder which has a shorter path (for example C:/my_py_packages/some_package) Solution 2: Set the registry value HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled to 1 as mentioned here. Original answer: I got here by having this kind of error when I tried installing tensorflow … Read more