13 #ifndef QmitkSetupVirtualEnvUtil_h_Included
14 #define QmitkSetupVirtualEnvUtil_h_Included
21 #include <QApplication>
37 virtual bool SetupVirtualEnv(
const QString& venvName) = 0;
45 virtual QString GetVirtualEnvPath();
57 void PipInstall(
const std::string &library,
58 const std::string &workingDir,
59 void (*callback)(itk::Object *,
const itk::EventObject &,
void *),
60 const std::string &command =
"pip3");
69 void PipInstall(
const std::string &library,
70 void (*callback)(itk::Object *,
const itk::EventObject &,
void *),
71 const std::string &command =
"pip3");
83 void ExecutePython(
const std::string &args,
84 const std::string &pythonPath,
85 void (*callback)(itk::Object *,
const itk::EventObject &,
void *),
86 const std::string &command =
"python");
96 void ExecutePython(
const std::string &args,
97 void (*callback)(itk::Object *,
const itk::EventObject &,
void *),
98 const std::string &command =
"python");
108 void InstallPytorch(
const std::string &workingDir,
void (*callback)(itk::Object *,
const itk::EventObject &,
void *));
114 void InstallPytorch();
121 QString& GetBaseDir();
128 QString& GetSystemPythonPath();
135 QString& GetPythonPath();
142 QString& GetPipPath();
149 void SetSystemPythonPath(
const QString& path);
156 void SetPythonPath(
const QString& path);
163 void SetPipPath(
const QString& path);
170 void SetVirtualEnvPath(
const QString &path);
179 bool IsPythonPath(
const QString &pythonPath);
186 static void PrintProcessEvent(itk::Object *,
const itk::EventObject &e,
void *);
189 QString m_PythonPath;
193 QString m_SysPythonPath;