What is PYTHONPATH?

Submitted 3 years, 4 months ago
Ticket #313
Views 285
Language/Framework Python
Priority Low
Status Closed

I want a full description.

Submitted on Dec 02, 20

Description - Nicky 3 years, 4 months ago

If you are statisfied with the answer , can you please go ahead and update the ticket status!! - Anonymous 3 years, 4 months ago
add a comment

1 Answer

Verified

PYTHONPATH is an environment variable which  can set to add additional directories in Python to add to the sys.path directory list. In short, we can say that it is an environment variable that set before running the Python interpreter. Mostly it is not used to for Python to execute normal programs . PYTHONPATH is used to help in importing the modulesb in  Python scripts, PYTHONPATH is also checked to see which directories might contain the imported module.

Submitted 3 years, 4 months ago


Latest Blogs