VimbaPython icon indicating copy to clipboard operation
VimbaPython copied to clipboard

Update Install.sh to detect and handle Conda env

Open gb96 opened this issue 3 years ago • 2 comments

Check for virtual env as previously, if no virtual env add a check to see if we have an active conda env. If there is no virtual env but we have a conda env, treat the conda env like a virtual env.

Tested using conda 4.12.0 on Ubuntu 20.04.4 LTS

gb96 avatar Aug 16 '22 02:08 gb96

I have proposed this change to assist other developers that use a conda virtual environment (comes with Anaconda or Miniconda). Without this change the Install.sh does not detect a conda environment and will instead ask the user to run Install.sh as root. With this change, an active conda env is detected and treated the same as for a virtual env, which produces the desired result.

gb96 avatar Aug 16 '22 03:08 gb96

Thank you very much for your suggestion! I will see when I can schedule some time to look into this and test the changes.