My question is that,
if I run
which python
it returns
/opt/anaconda3/bin/python
However, If I run
which python-config
It returns
/usr/bin/python-config
which is the built-in python 2.7 in macbook.
How can I change the config into the current python that I'm using?
Check if there is a
python-configorpython3-configin/opt/anaconda3/bin. If there is a file namedpython3-config, you should runpython3-configinstead. If there is nopython3-config, likely you don't havepython-configinstalled for your conda environment. You can runpip install python-config(make sure you run pip under your anaconda environment).