'ERROR: Could not install packages due to an OSError: [WinError 5] [duplicate]

i was trying to install tensorflow-gpu on my pycharm (pip install tensorflow-gpu), but unfortunately im getting a Error Message. How can i install this package on my pycharm? What is wrong here? Should i install it directly with cmd? How can I install them with pycharm? However, I was able to install the tenserflow Version 2.5.0 without any problems. Only the Tenserflow gpu I cannot install. Im using python Version 3.7.9



Solution 1:[1]

You need to run the command prompt or terminal as an administrator. This will permit you to install packages. And also, you need to upgrade pip to the latest version - python -m pip install –-upgrade pip in cmd or terminal.

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 Shadab Hussain