Techiio-author
Started by Debarghya DasSep 15, 2021

Open
Setting PYTHONPATH and PYTHONHOME using Heroku

1 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 1 VIEWES SHARE

I'm trying to set my PYTHONPATH and PYTHONHOME variables but can't figure it out!

When trying to run python, I get the error No module named site.

After doing some research, it seems that this is because these PYTHONPATH and PYTHONHOME environment variables are not set correctly.

When I try to run python after unsetting both of these variables, it is able to run properly. But the problem is that this only lasts for the life of my virtualenv. After I stop the virtualenv and run it again, the problem comes back.

Well I'm saying virtualenv, but really it's my environment on Heroku.

How do I unset these variables permanently?

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance