help for opendf removepython (opendf_removepython) version 2.0.2 (28 August 2024)

opendf removepython -- Removes portable Python installation(s) from the ado/plus folder or a specified folder.

Syntax

opendf removepython
[, version() location()]

options

version(string) specifies a Python version. eg. "3.12"

location(string) specifies a path where to delete Python

Description

opendf removepython Removes portable Python installation(s) from some directory on your computer.

The command only works for Windows and does not require administrator privileges. But the user needs writing permission for the folder where Python is saved.

version Specifies the version of Python to be removed.

location Specifies the location where the Python folder should be deleted. Default is the Stata ado/plus folder, where opendf installpython deploys portable Python installation(s).

Remarks

This command from the opendf package is part of the Open Data Format Project bundle, written to assist with survey data files in the open data format(.zip).

If this command is not working, restarting Stata and executing the command before running any other functions from the opendf package can fix the issue.

Examples

Install Python v3.12 (default) to the folder python3.12 in the ado\plus folder

. opendf installpython

Deletes Python v3.12 from the ado\plus folder

. opendf removepython, version("3.12")

Deletes all folders which contain "python" in the name in C:\Program Files\python

. opendf removepython, location("C:\Program Files\python")

Deletes a folder "python3.12" in C:\Program Files\python if it exists

. opendf removepython, version("3.12") location("C:\Program Files\python")

Author

Tom Hartl (thartl@diw.de), Deutsches Institut für Wirtschaftsforschung Berlin.

Also see

Help: opendf read, opendf write, opendf docu, opendf removepython, opendf installpython