About 12,300,000 results
Open links in new tab
  1. Local functions in Python - Stack Overflow

    Local functions in Python [duplicate] Asked 16 years, 3 months ago Modified 3 years, 3 months ago Viewed 64k times

  2. python - What is the purpose of $HOME/.local - Stack Overflow

    May 16, 2015 · It is not directly connected to Python, but Pip uses it. Let's start from the beginning. First you should understand, what the /usr directory is used for: In current Unices, …

  3. python - How can I fix "UnboundLocalError: local variable …

    The Python interpreter sees this at module load time and decides (correctly so) that the global scope's Var1 should not be used inside the local scope, which leads to a problem when you …

  4. Global and local variables in Python - Stack Overflow

    Jan 20, 2013 · While the duplicate answers your question, the simplest answer is that you can add global myvar at the start of the function if you want to treat it as a global variable. If you …

  5. python - How can I create a local own PyPI repository index …

    This repository I want to create for local only without any mirrors due to security reason, and it will be put under Apache 's control. The command pypimirror looks has to be initialized once, …

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

  7. How do I get the current time in Python? - Stack Overflow

    Use the below sample script to get the current date and time in a Python script and print results on the screen. Create file getDateTime1.py with the below content.

  8. Can't import my own modules in Python - Stack Overflow

    Local module is used by other local module you need to install your local module first and make it part of your import list for other module. Easy but took long time for me to grasp the module …

  9. Import python package from local directory into interpreter

    6 A simple way to make it work is to run your script from the parent directory using python's -m flag, e.g. python -m packagename.scriptname. Obviously in this situation you need an …

  10. Installing Python packages from local file system folder to …

    Is it possible to install packages using pip from the local filesystem? I have run python setup.py sdist for my package, which has created the appropriate tar.gz file. This file is stored on my sy...