0

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?

4

1 回答 1

1

检查是否有python-configpython3-config/opt/anaconda3/bin如果有一个名为 的文件python3-config,则应python3-config改为运行。如果没有python3-config,可能您没有python-config为您的 conda 环境安装。您可以运行pip install python-config(确保您在 anaconda 环境下运行 pip)。

于 2021-03-17T01:55:18.840 回答