'Can't install tensorflow outside base environment of anaconda

I cannot install tensorflow outside anaconda (base) environment. When I run pip install tensorflow on anaconda prompt I receive a message that tensorflow is already installed.

When I run pip install tensorflow on a normal prompt I receive this message: "WinError 5: Access denied. Check the permission".

I tried also to run prompt as admin but I received the same error: WinError 5 Access denied. Does anyone know how can I solve this problem?

EDIT: I show here the exact error message

Preparing metadata (setup.py) ... ERROR: Error [WinError 5] Accesso negato while executing command python setup.py egg_info error ERROR: Could not install packages due to an OSError: [WinError 5] Accesso negato Check the permissions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source