While installing TensorFlow on Windows having python 3.9 installed using the following command:
pip install tensorflow
Following error occurred with the warning:
WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an OSError: [WinError 2]
The system cannot find the file specified: 'c:\\python39\\Scripts\\pyrsa-decrypt.exe'
-> 'c:\\python39\\Scripts\\pyrsa-decrypt.exe.deleteme'
How this can be resolved?
Run the same command using
--user
pip install --user package_name
or you can try to restart the terminal and run it as admin