Fix installation issues in virtual environment
Fixes installation issues in a normal python virtual environment when conda is also present on the same system. Also remove double negation.

# What does this PR do ?

This primarily resolves an issue when we are working in a standard python virtual environment and conda environment is also present but not used. Basically check if $CONDA_PREFIX is set instead of checking if conda is present.


