【问题标题】:How to access main .bash_profile from within an anaconda virtual environment?如何从 anaconda 虚拟环境中访问主 .bash_profile?
【发布时间】:2019-04-02 23:15:40
【问题描述】:

我准备好了一个 .bash_profile 文件。当我激活我的虚拟环境时,我无法访问它。环境 bash_profile 为空白。有没有办法将我的正常 bash_profile “导入”到所有/选择的虚拟环境中

我相信我正在通过 anaconda 发行版创建虚拟环境,这与 .bash_profile 的路径有点混乱。

【问题讨论】:

    标签: python bash shell anaconda


    【解决方案1】:

    原来我只需要从环境中使用source ~/.bash_profile 获取“home”bash_profile。

    【讨论】:

    • 不过,我认为每次启动环境都必须这样做。可能会将该命令放在“它自己的”配置文件中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-05-18
    • 2021-07-09
    • 1970-01-01
    • 2013-05-19
    • 1970-01-01
    • 2015-04-07
    • 2020-04-30
    相关资源
    最近更新 更多