close

[Solved] Error : No module named ‘psutil’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Error : No module named ‘psutil’ in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Error : No module named ‘psutil’ Error Occurs?

Today I get the following error Error : No module named ‘psutil’ in python.

How To Solve Error : No module named ‘psutil’ Error ?

  1. How To Solve Error : No module named 'psutil' Error ?

    To Solve Error : No module named 'psutil' Error I got in windows 10 while executing a python script ->
    Traceback (most recent call last):
    File “C:\Users\YOUR NAME\Desktop\Sample.py”, line 2, in import psutil
    ImportError: No module named psutil

  2. Error : No module named 'psutil'

    To Solve Error : No module named 'psutil' Error I got in windows 10 while executing a python script ->
    Traceback (most recent call last):
    File “C:\Users\YOUR NAME\Desktop\Sample.py”, line 2, in import psutil
    ImportError: No module named psutil

Solution 1

Error I got in windows 10 while executing a python script ->

Traceback (most recent call last):

File “C:\Users\YOUR NAME\Desktop\Sample.py”, line 2, in import psutil

ImportError: No module named psutil

This is how I resolved the issue ->

C:\python -m pip install --upgrade pip

[Latest pip version got installed successfully]

C:\>python -m pip install psutil

Collecting psutil
  Downloading https://files.pythonhosted.org/packages/50/6a/34525bc4e6e153bf6e849a4c4e936742b365f6819c0462cebfa4f082a3c4/psutil-5.4.7-cp27-none-win_amd64.whl (220kB)
    100% |UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 225kB 696kB/s
Installing collected packages: psutil
Successfully installed psutil-5.4.7

Solution 2

This worked for me..

sudo pip install --upgrade psutil

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read