【问题标题】:python: how to change python-config into my current python versionpython:如何将 python-config 更改为我当前的 python 版本
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-18
      • 1970-01-01
      • 1970-01-01
      • 2016-01-25
      • 2011-02-04
      • 1970-01-01
      • 2021-08-13
      • 2011-06-14
      相关资源
      最近更新 更多