Install PYTHONPATH and PYTHONHOME

I am trying to set the variables PYTHONPATH and PYTHONHOME , but I can not figure it out!

When I try to start python I get a No module named site error message.

After some research, it seems that this is due to the fact that these PYTHONPATH and PYTHONHOME environment variables PYTHONPATH set incorrectly.

When I try to start python after removing both of these variables, it may work correctly. But the problem is that this is only for the life of my virtualenv . After I stopped virtualenv and started it again, the problem will return.

How to disable these variables forever?

+7
source share
1 answer

When I try to start python, I get the error No module named site. After some research, it seems that this is due to the fact that these environment variables PYTHONPATH and PYTHONHOME are set incorrectly.

That sounds like the right answer. You need to find out what values ​​these variables have at the time, what values ​​they should have, and which existing procedure in your environment sets these variables to the wrong values.

All this can be answered only by checking your environment, so good luck :-)

0
source

All Articles