推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
WeiJoseph
V2EX  ›  Python

Mac OS 升级 Catalina 后 conda 报错,无法正常 activate 和 deactive 环境。

  •  
  •   WeiJoseph · Oct 15, 2019 · 6820 views
    This topic created in 2425 days ago, the information mentioned may be changed or developed.

    当我想要激活环境的时候,会运行报如下错误 CommandNotFoundError: Your shell has not been properly configured to use 'conda deactivate'. 但是我当我按照要求运行 conda init 的时候,并没有任何修改,提示我已经配置成功。

    问题可能和 Catalina 的升级有关,有知道的大佬吗 QAQ Stack Overflow 翻烂了都没找到解决办法。。

    11 replies    2019-10-30 22:36:47 +08:00
    uxstone
        1
    uxstone  
       Oct 16, 2019
    @WeiJoseph 大佬有解决方法了吗?
    Dustyposa
        2
    Dustyposa  
       Oct 16, 2019
    你 git 能用不
    coderabbit
        4
    coderabbit  
       Oct 16, 2019 via Android
    我最烦的是升级后 休眠唤醒 窗体全给我缩小了
    persistz
        5
    persistz  
       Oct 16, 2019 via Android
    你升级完没有发现 conda 的安装文件被移位了吗? github 有 issue,里面有解决方案,或者参考楼上的链接
    WeiJoseph
        6
    WeiJoseph  
    OP
       Oct 16, 2019
    @bugcoder @persistz 之前被转移到桌面的文件夹早就删了😂没办法恢复了 最后重装了
    WeiJoseph
        7
    WeiJoseph  
    OP
       Oct 16, 2019
    @uxstone 重装吧 也不复杂 提前把 env 拷贝出来 之后不用重新安装 package 直接复制回来就行了
    WeiJoseph
        8
    WeiJoseph  
    OP
       Oct 16, 2019
    统一回复一下,最后的解决办法是直接重装 conda。步骤是:
    1.先把原来的 env 拷贝出来。
    2.删除.conda 和.anaconda 文件夹。删除.zshrc 和.bashrc 之类的之前配置的地址。
    3.删除 anaconda navigator.app
    4.重新安装,官方直接下载 pkg 就行
    5.重新配置环境变量
    6.把 env 文件夹直接拷贝回去新的.anaconda 安装目录
    persistz
        9
    persistz  
       Oct 16, 2019
    @WeiJoseph 心大啊...你不先确认一下里面都有什么文件吗
    WeiJoseph
        10
    WeiJoseph  
    OP
       Oct 16, 2019
    @persistz 我看了。。我感觉这些东西 P 用没有。。你让我放我都不知道放回哪里去。。就直接一把梭哈删掉了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2972 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 04:15 · PVG 12:15 · LAX 21:15 · JFK 00:15
    ♥ Do have faith in what you're doing.