[Corrective Measures] error: [WinError 2] The specified file cannot be found. ERROR: Command errored out with exit status 1

What you can see in this article

When installing a module from pip in Python, you can see what to do if you get an error like the title. I will write from the conclusion.

Conclusion

Here I was able to install normally by executing the method of cause 4 of the article.

Cause

Occurs when trying to install a specific module in Python 3.9 (Windows version) released on October 05, 2020 </ b>. It seems that an error occurs because there is no environment (Microsoft Visual C ++ 14.0) that can be built on this computer. It happened when I installed "pypinfo".

approach

  1. Enable Microsoft Visual C ++ 14.0
  2. Specify Python version to install

Regarding 1 Download Like this from Microsoft Download Page And get the C ++ Build Tool. Method 1 is heavy and cumbersome.

Regarding 2

$ py -3.6 -m pip install "module"

It is possible to install by specifying the Python version from the terminal as shown in. This time, I was able to install with ver3.6.

Recommended Posts

[Corrective Measures] error: [WinError 2] The specified file cannot be found. ERROR: Command errored out with exit status 1
pip install ○○○ error Command errored out with exit status 1:
Solution memo when "ERROR: Command errored out with exit status 1:" is displayed in pip install hogehoge
What to do when "OS Error: [WinError 126] The specified module cannot be found" appears in import torch
Problem that pip install cannot be done with pyenv + Yosemite (error: command'clang' failed with exit status 1)
When I import TensorFlow to Python, I get "Import Error: DLL load failed: The specified module cannot be found."
Error in deep learning "ImportError: DLL load failed: The specified module cannot be found. How to know the "specified module" in.
Ll load failed in Anaconda environment construction: The specified module cannot be found. (import numpyas np file ....) Note that the error has been resolved.
The --security option cannot be used with the dnf command on CentOS Linux
Try rewriting the file with the less command