康达在升级后不会激活任何环境

2024-05-06 19:02:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我更新了康达,现在我有一个错误,不容易在网上或stackoverflow找到。你知道吗

我用的是macOS 10.13.2

我在同一时间更新了conda/hombrew/npm,现在才模模糊糊地记得注意到conda(?)正在更新未来。你知道吗

我提到这一点是因为它是在一个不相关但类似的bug报告中引用的。你知道吗

提前谢谢

加雷斯

futures                   3.2.0            py27h1b80678_0

我的错误:

λ source activate py36
Traceback (most recent call last):
  File "/Users/gyaresu/miniconda2/lib/python2.7/site-packages/conda/gateways/logging.py", line 64, in emit
    msg = self.format(record)
  File "/Users/gyaresu/miniconda2/lib/python2.7/logging/__init__.py", line 734, in format
    return fmt.format(record)
  File "/Users/gyaresu/miniconda2/lib/python2.7/logging/__init__.py", line 465, in format
    record.message = record.getMessage()
  File "/Users/gyaresu/miniconda2/lib/python2.7/logging/__init__.py", line 329, in getMessage
    msg = msg % self.args
  File "/Users/gyaresu/miniconda2/lib/python2.7/site-packages/conda/__init__.py", line 43, in __repr__
    return '%s: %s' % (self.__class__.__name__, text_type(self))
  File "/Users/gyaresu/miniconda2/lib/python2.7/site-packages/conda/__init__.py", line 47, in __str__
    return text_type(self.message % self._kwargs)
ValueError: unsupported format character '{' (0x7b) at index 445
Logged from file exceptions.py, line 724

康达信息:

λ conda info

     active environment : None
            shell level : 0
       user config file : /Users/gyaresu/.condarc
 populated config files : /Users/gyaresu/.condarc
          conda version : 4.4.7
    conda-build version : not installed
         python version : 2.7.14.final.0
       base environment : /Users/gyaresu/miniconda2  (writable)
           channel URLs : https://repo.continuum.io/pkgs/main/osx-64
                          https://repo.continuum.io/pkgs/main/noarch
                          https://repo.continuum.io/pkgs/free/osx-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/osx-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/osx-64
                          https://repo.continuum.io/pkgs/pro/noarch
          package cache : /Users/gyaresu/miniconda2/pkgs
                          /Users/gyaresu/.conda/pkgs
       envs directories : /Users/gyaresu/miniconda2/envs
                          /Users/gyaresu/.conda/envs
               platform : osx-64
             user-agent : conda/4.4.7 requests/2.18.4 CPython/2.7.14 Darwin/17.3.0 OSX/10.13.2
                UID:GID : 502:20
             netrc file : /Users/gyaresu/.netrc
           offline mode : False

系统Python:

λ which python
/usr/local/opt/python/libexec/bin/python

λ python -V
Python 2.7.14

Hombrew信息:

λ brew config
HOMEBREW_VERSION: 1.4.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 987805d3dcd4c8dbc70127399d4ea7aee8e98c21
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: eae0bcacf6aa1592ee0fdc2d424a1c63a0a2d17a
Core tap last commit: 8 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit ivybridge
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.15.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.26.1/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.5.0/bin/ruby
Java: 1.8.0_51, 1.6.0_65-b14-468
macOS: 10.13.2-x86_64
Xcode: N/A
CLT: 9.2.0.0.1.1510905681
X11: 2.7.11 => /opt/X11

Tags: pyhttpsiobinusrlocallinerepo