About 1,310,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 script? …

  5. 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 location …

  6. 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 object can be used …

  7. Check whether a path is valid in Python without creating a file at the ...

    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 if I could …

  8. e pyhow to get python installed path from command line

    I am trying to get the installed path of python? Any idea how to get the python installed path from command line in windows. I don't want to set the environment variable? Thanks,

  9. python - Find the current directory and file's directory - Stack Overflow

    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 the path of …

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

    Now available since Python 3.4, import and instantiate a Path object with the file name, and check the is_file method (note that this returns True for symlinks pointing to regular files as well):