About 1,230,000 results
Open links in new tab
  1. 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?

  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. python - How to get the PYTHONPATH in shell? - Stack Overflow

    Apr 29, 2013 · In other words, sys.path will include all the paths in PYTHONPATH, but also additional paths, like the path to the Python standard library and the path to installed packages.

  4. Find full path of the Python interpreter (Python executable)?

    Apr 7, 2010 · How do I find the full path of the currently running Python interpreter from within the currently executing Python script? See How do I check which version of Python is running my …

  5. How do I check if a directory exists in Python? - Stack Overflow

    133 Python 3.4 introduced the pathlib module into the standard library, which provides an object oriented approach to handle filesystem paths. The is_dir() and exists() methods of a Path …

  6. Adding Python to PATH on Windows - Stack Overflow

    Whilst not valid to you, with the Python 3.6 Windows Installer (and potentially earlier versions) you can choose to "Customise" your installation and there is a checkbox to add Python to your path.

  7. python - How do I check whether a file exists without exceptions ...

    How do I check whether a file exists or not, without using the try statement?

  8. Check whether a path is valid in Python without creating a file at …

    Mar 2, 2012 · Here is the catch. There may (or may not) already be a file at the target of the path. I need to keep that file if it does exist, and not create a file if it does not. Basically I want to check …

  9. Find where python is installed (if it isn't default dir)

    May 17, 2017 · 243 Python is on my machine, I just don't know where, if I type python in terminal it will open Python 2.6.4, this isn't in it's default directory, there surely is a way of finding it's install …

  10. python - Find the current directory and file's directory - Stack …

    393 Current working directory: os.getcwd() And the __file__ attribute can help you find out where the file you are executing is located. This Stack Overflow post explains everything: How do I get …