The PyPA recommended tool for installing Python packages.
91
Create a Python script that installs Python packages to custom locations based on user preferences.
Build a command-line utility that wraps package installation functionality to support different installation strategies. The script should allow users to install packages either to a specific target directory or to the user's local site-packages directory.
Install packages to a user-specified target directory.
Install packages to the user's local site-packages directory without requiring administrative privileges.
def install_to_directory(package_name: str, target_dir: str) -> bool:
"""
Install a package to a specific target directory.
Args:
package_name: The name of the package to install
target_dir: The absolute or relative path to the target directory
Returns:
True if installation succeeded, False otherwise
"""
pass
def install_to_user(package_name: str) -> bool:
"""
Install a package to the user's local site-packages directory.
Args:
package_name: The name of the package to install
Returns:
True if installation succeeded, False otherwise
"""
pass@generates
Provides Python package installation functionality.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-pipevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10