Package org.bytedeco.embeddedpython
Class Pip
- java.lang.Object
-
- org.bytedeco.embeddedpython.Pip
-
public class Pip extends Object
Pip.JavaCPP presets Python is installed to ~/.javacpp/cache folder. This Pip class will install Python libraries to this folder.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intinstall(String... packages)Install pip packages.static intuninstall(String... packages)Uninstall pip packages.static intupgrade(String... packages)Upgrade pip packages.
-
-
-
Method Detail
-
install
public static int install(String... packages) throws IOException, InterruptedException
Install pip packages.- Parameters:
packages- The package names to install.- Returns:
- 0 on success.
- Throws:
IOException- If an I/O error occurs.InterruptedException- If the current thread is interrupted by another thread.
-
upgrade
public static int upgrade(String... packages) throws IOException, InterruptedException
Upgrade pip packages.- Parameters:
packages- The package names to upgrade.- Returns:
- 0 on success.
- Throws:
IOException- If an I/O error occurs.InterruptedException- If the current thread is interrupted by another thread.
-
uninstall
public static int uninstall(String... packages) throws IOException, InterruptedException
Uninstall pip packages.- Parameters:
packages- The package names to uninstall.- Returns:
- 0 on success.
- Throws:
IOException- If an I/O error occurs.InterruptedException- If the current thread is interrupted by another thread.
-
-