About 2,950,000 results
Open links in new tab
  1. python - What exactly should be set in PYTHONPATH? - Stack …

    Here is what I learned: PYTHONPATH is a directory to add to the Python import search path "sys.path", which is made up of current dir. CWD, PYTHONPATH, standard and shared …

  2. How do I find out my PYTHONPATH using Python? - Stack Overflow

    Sep 28, 2009 · How do I find out which directories are listed in my system’s PYTHONPATH variable, from within a Python script (or the interactive shell)?

  3. How can I find where Python is installed on Windows?

    Mar 15, 2009 · I want to find out my Python installation path on Windows. For example: C:\\Python25 How can I find where Python is installed?

  4. Adding Python to PATH on Windows - Stack Overflow

    I've been trying to add the Python path to the command line on Windows, yet no matter the method I try, nothing seems to work. I've used the set command, I've tried adding it through …

  5. How should I write a Windows path in a Python string literal?

    Apr 9, 2023 · Path takes a path-like string and adjusts everything for the current OS, either Windows or Linux. For example, on Linux it would convert all backslashes to forward slashes, …

  6. How do I add Python to the Windows PATH? - Super User

    16 For anyone trying to achieve this with Python 3.3+, the Windows installer now includes an option to add python.exe to the system search path. Read more in the docs.

  7. python - Is `PYTHONPATH` really an environment variable

    May 6, 2023 · The docs for sys.path state the following: A list of strings that specifies the search path for modules. Initialized from the environment variable PYTHONPATH, plus an installation …

  8. python - How to add to the PYTHONPATH in Windows, so it finds …

    Sep 13, 2010 · For anyone trying to achieve this with Python 3.3+, the Windows installer now includes an option to add python.exe to the system search path. Read more in the docs.

  9. How can I delete a file or folder in Python? - Stack Overflow

    5035 Use one of these methods: pathlib.Path.unlink() removes a file or symbolic link. pathlib.Path.rmdir() removes an empty directory. shutil.rmtree() deletes a directory and all its …

  10. 'Python not found' despite having been installed [duplicate]

    Feb 28, 2021 · The Python application path, which is the folder where you originally installed Python; and The Python Scripts path. The Scripts folder should be located within the Python …