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 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 have Python...

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

  4. '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 error: 'python' is not …

  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 config …

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

  7. 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 linear scan …

  8. 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.

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

  10. python - How to create new folder? - Stack Overflow

    I want to put output information of my program to a folder. if given folder does not exist, then the program should create a new folder with folder name as given in the program. Is this possible? I...