diff --git a/bleMD/__init__.py b/bleMD/__init__.py index 3bc5541..b1f8fc5 100644 --- a/bleMD/__init__.py +++ b/bleMD/__init__.py @@ -255,8 +255,13 @@ def draw(self, context): def installOvito(): - import pip - pip.main(['install', 'ovito']) + import sys + import subprocess + exe = sys.executable + subprocess.check_call([exe,'-m','pip','install','ovito']) + + #import pip + #pip.main(['install', 'ovito']) import ovito print('FINISHED')