4

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

  • https://stackoverflow.com/search?q=%5Bpip%5D+ERROR%3A+Could+not+install+packages+due+to+an+WinError+5+Access+denied – phd Jun 25 '21 at 16:51

1 Answers1

12

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.

Shadab Hussain
  • 708
  • 4
  • 22
PCM
  • 2,692
  • 2
  • 7
  • 29
  • 2
    thx. Ive just startet my pycharm as an administrator and it works. I have succefully installed the packages abd also upgrade to the latest version. –  Jun 25 '21 at 16:13
  • 3
    That didn't work for me. I opened Windows Terminal as an administrator and ran the above command and still got the same error message. Any thoughts? – Joerg Jan 11 '22 at 10:13