About 725,000 results
Open links in new tab
  1. python - Importing files from different folder - Stack Overflow

    I have this folder structure: application ├── app │ └── folder │ └── file.py └── app2 └── some_folder └── some_file.py How can I import a function from file.py, from within som...

  2. 'python' is not recognized as an internal or external command

    Closed 5 years ago. So I have recently installed Python Version 2.7.5 and I have made a little loop thing with it but the problem is, when I go to cmd and type python testloop.py I get the …

  3. Python command not working in command prompt [duplicate]

    When I type python into the command line, the command prompt says python is not recognized as an internal or external command, operable program, or batch file. What should I do? Note: I …

  4. python - pip install returning invalid syntax - Stack Overflow

    Dec 4, 2017 · I've just installed python 3.6 which comes with pip However, in Windows command prompt, when I do: 'pip install bs4' it returns 'SyntaxError: invalid syntax' under the install word. …

  5. python - Using global variables between files? - Stack Overflow

    See Python's document on sharing global variables across modules: The canonical way to share information across modules within a single program is to create a special module (often called …

  6. 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 …

  7. python - How to use multiprocessing pool.map with multiple …

    For earlier versions of Python, you'll need to write a helper function to unpack the arguments explicitly. If you want to use with, you'll also need to write a wrapper to turn Pool into a context …

  8. python - How to check if a value exists in a dictionary ... - Stack ...

    In Python 3, you can use "one" in d.values() to test if "one" is among the values of your dictionary. In Python 2, it's more efficient to use "one" in d.itervalues() instead. Note that this triggers a …

  9. How to send an email with Python? - Stack Overflow

    The Python email library does this reasonably well (particularly since 3.6) though it still requires some understanding of what you're doing.

  10. 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?