
Python-path is a unique environment variable that tells the Python interpreter where to look for different libraries and programmes. Although it has extra directories for Python modules, it is comparable to the PATH environment variable in other languages like C and Java.
By using the Command Prompt, set PYTHONPATH:
Select “Environment Variables” from the menu. To add a new environment variable, select “New” from the “System Variables” menu. PYTHONPATH and c:pathtomy_modules should be entered as the variable names and values, respectively. To save the environment variable, click “OK”.
You can add extra directories where Python will seek for modules and packages by setting the environment variable PYTHONPATH. Since these variables are not required for Python to function in the majority of installs, you shouldn’t set them. Python is aware of the location of its standard library. [url=https://www.iteducationcentre.com/best-python-classes-in-pune.php]Python Course in Pune
[/url]
A path will be established to run Python programmes.
My Computer can be selected with the right click menu.
Select Advanced System Settings by clicking.
On the Environment Variable tab, click.
Select the new user variables tab.
Place the path in the variable name.
Copy the folder path for Python.
Python route is pasted into a variable value.
learn more about python on Python Classes in Pune