close

[Solved] Import: No module named virtualenv

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Import: No module named virtualenv 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 Import: No module named virtualenv Error Occurs?

Today I get the following error Import: No module named virtualenv in python.

How To Solve Import: No module named virtualenv Error ?

  1. How To Solve Import: No module named virtualenv Error ?

    To Solve Import: No module named virtualenv Error I had to install virtualenv with the -H flag to set HOME variable to target user's home dir.

  2. Import: No module named virtualenv

    To Solve Import: No module named virtualenv Error I had to install virtualenv with the -H flag to set HOME variable to target user's home dir.

Solution 1

Install virtualenv using pip install virtualenv. If you have it already installed, try reinstalling it by removing it with pip uninstall virtualenv and then reinstalling it. Good Luck.

Solution 2

I had to install virtualenv with the -H flag to set HOME variable to target user’s home dir.

sudo -H pip install virtualenv

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