I have created a python virtual environment using virtualenv, after activating it, I can see where is Python installed in my shell as following:
This one worked for me.
cd ~/ vim .bashrc export LD_LIBRARY_PATH=~/miniconda/envs/python3.6/lib/