Search code examples
pythontensorflowpippycharm

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


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

  • 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.