【发布时间】:2021-02-28 05:22:47
【问题描述】:
我的问题是,
如果我跑
which python
返回
/opt/anaconda3/bin/python
但是,如果我运行
which python-config
返回
/usr/bin/python-config
这是macbook内置的python 2.7。
如何将配置更改为我正在使用的当前 python?
【问题讨论】:
标签: python python-3.x python-config
我的问题是,
如果我跑
which python
返回
/opt/anaconda3/bin/python
但是,如果我运行
which python-config
返回
/usr/bin/python-config
这是macbook内置的python 2.7。
如何将配置更改为我正在使用的当前 python?
【问题讨论】:
标签: python python-3.x python-config
检查/opt/anaconda3/bin 中是否有python-config 或python3-config。如果有一个名为python3-config 的文件,您应该运行python3-config。如果没有python3-config,您可能没有为您的 conda 环境安装python-config。你可以运行pip install python-config(确保你在anaconda环境下运行pip)。
【讨论】: