Oct-05-2023, 01:59 PM
(Oct-05-2023, 12:41 PM)zuri Wrote: where should i run it? in cmnd prompt or on ide of pyth3?From command line
cmd
,i use cmder but commands is the same.Could also install 2to3,then if work from anywhere in cmd.
C:\ λ python --version Python 3.11.3 C:\ λ pip -V pip 23.2.1 from C:\python311\Lib\site-packages\pip (python 3.11) C:\ λ pip install 2to3 --upgrade Collecting 2to3 Downloading 2to3-1.0-py3-none-any.whl (1.7 kB) Installing collected packages: 2to3 Successfully installed 2to3-1.0 C:\ λ 2to3 --help Usage: 2to3 [options] file|dir ... Options: -h, --help show this help message and exit -d, --doctests_only Fix up doctests only -f FIX, --fix=FIX Each FIX specifies a transformation; default: all -j PROCESSES, --processes=PROCESSES Run 2to3 concurrently -x NOFIX, --nofix=NOFIX Prevent a transformation from being run -l, --list-fixes List available transformations -p, --print-function Modify the grammar so that print() is a function -e, --exec-function Modify the grammar so that exec() is a function -v, --verbose More verbose logging --no-diffs Don't show diffs of the refactoring -w, --write Write back modified files -n, --nobackups Don't write backups for modified files -o OUTPUT_DIR, --output-dir=OUTPUT_DIR Put output files in this directory instead of overwriting the input files. Requires -n. -W, --write-unchanged-files Also write files even if no changes were required (useful with --output-dir); implies -w. --add-suffix=ADD_SUFFIX Append this string to all output filenames. Requires -n if non-empty. ex: --add- suffix='3' will generate .py3 files.