我的问题是,
如果我跑了
which python 它回来了
/opt/anaconda3/bin/python但是,如果我跑
which python-config它回来了
/usr/bin/python-config这是macbook中内置的python2.7。
如何将配置更改为我正在使用的当前python?
发布于 2021-03-17 01:55:18
检查python-config或python3-config在/opt/anaconda3/bin中是否存在。如果有一个名为python3-config的文件,则应该运行python3-config。如果没有python3-config,则可能没有为您的conda环境安装python-config。您可以运行pip install python-config (确保在您的anaconda环境下运行pip )。
https://stackoverflow.com/questions/66406086
复制相似问题