ERROR: Could not install packages due to an OSError: [ Errno 2] No such file or directory: ***

Source of problem:

        When installing tensorboard in a virtual environment in Anaconda Powershell Prompt, use the following command:

pip install tensorboard

        The following error is generated:

ERROR: Could not install packages due to an OSError: [ Errno 2] No such file or directory: e: anaconda3_2019. 071 ) envs) (density((libl Isite-packages| Inumpy-1. 21. 6. dist-infol IETADATA

        I have been unable to find the cause of the problem, and finally found a solution, which is hereby recorded.

solution:

        Look carefully at the ERROR information, and find that the reason for the inability to download is the abnormality of the operating system. Generally speaking, the abnormality of the operating system is caused by the lack of important files in the file manager. As for where the file is missing in the file management system, you need to read the prompt information and report an error. The specific path is given in (different machines have different installation paths, so the absolute paths given are also different). Open it from the file manager along the given path, and find that the METADATA file is indeed missing, as shown in the following figure:

         Then return to the upper level directory and find a folder with a similar name, as shown in the following figure:

         It may be that I have repeatedly installed two different versions before. Open another folder and find that there is a METADATA file in it. Try to copy a copy to the path specified by the error message, as shown in the figure:

         Then re-type the installation tensorboard command in the Anaconda Powershell Prompt, and it was installed successfully!

 

Guess you like

Origin blog.csdn.net/m0_59705760/article/details/125816810