What is PYTHONPATH?

Submitted 5 years, 1 month ago
Ticket #313
Views 536
Language/Framework Python
Priority Low
Status Closed

I want a full description.

Submitted on Dec 02, 20

Description - Nicky 5 years, 1 month ago

If you are statisfied with the answer , can you please go ahead and update the ticket status!! - Anonymous 5 years, 1 month 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 5 years, 1 month ago


Latest Blogs