About 413,000 results
Open links in new tab
  1. How can I make a Python script standalone executable to run …

    Jan 24, 2017 · prob1:I was using python2.7 but pyinstaller was talking with python3 python3 setup.py build python3 setup.py install your python3 will get all pkg_resources prob 3:if using …

  2. Activate a virtualenv with a Python script - Stack Overflow

    To run another Python environment according to the official Virtualenv documentation, in the command line you can specify the full path to the executable Python binary, just that (no need …

  3. How can I convert a .py to .exe for Python? - Stack Overflow

    The command I use to create my exe file is: pyinstaller -wF myfile.py. The -wF will create a single EXE file. Because all of my programs have a GUI and I do not want to command window to …

  4. Windows: run python command from clickable icon

    May 13, 2016 · Without the Python launcher installed, Python scripts (files with the extension .py) will be executed by python.exe by default. This executable opens a terminal, which stays open …

  5. Python: pass arguments to a script - Stack Overflow

    Apr 4, 2014 · You can use the sys module like this to pass command line arguments to your Python script. import sys name_of_script = sys.argv[0] position = sys.argv[1] sample = …

  6. Writing a help for python script - Stack Overflow

    Jan 27, 2012 · % python argparse_test.py -h usage: argparse_test.py [-h] This is my help optional arguments: -h, --help show this help message and exit You can define all your arguments with …

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

    Because os.path functions use the local rules of the python installation running the script for path strings. Using os.path.join in all cases assures that your paths will be formed correctly for the …

  8. How to create Python Virtual environment within a python script

    Sep 13, 2019 · To create a virtual env from inside a python script you can use the virtualenv python module. It pretty much comes down to a single line of code. import virtualenv import os …

  9. create a raw python file in jupyter notebook - Stack Overflow

    Oct 26, 2016 · If you created a jupyter notebook (.ipynb), and your goal is to create a python executable file (.py) from it, you can directly use the menu option from "File > Download as > …

  10. Shell Script: Execute a python program from within a shell script

    Method 1 - Create a shell script: Suppose you have a python file hello.py Create a file called job.sh that contains #!/bin/bash python hello.py mark it executable using $ chmod +x job.sh …

Refresh