|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
(base) C:\Users\Administrator>conda env list
Traceback (most recent call last):
File "D:\Anaconda3\Scripts\conda-env-script.py", line 5, in <module>
from conda_env.cli.main import main
File "D:\Anaconda3\lib\site-packages\conda_env\cli\main.py", line 42, in <module>
from . import main_create
File "D:\Anaconda3\lib\site-packages\conda_env\cli\main_create.py", line 20, in <module>
from .. import specs
File "D:\Anaconda3\lib\site-packages\conda_env\specs\__init__.py", line 14, in <module>
from .notebook import NotebookSpec
File "D:\Anaconda3\lib\site-packages\conda_env\specs\notebook.py", line 4, in <module>
import nbformat
File "D:\Anaconda3\lib\site-packages\nbformat\__init__.py", line 12, in <module>
from ._version import __version__, version_info
File "D:\Anaconda3\lib\site-packages\nbformat\_version.py", line 28, in <module>
_version_fields = _version_regex.match(__version__).groupdict() # type:ignore
TypeError: expected string or bytes-like object
(base) C:\Users\Administrator>
请问如何解决?
具体情况具体分析,这个可能跟版本有关,猜测是这个版本的 __version__ 不是一个字符串或字节串,
而 match 需要一个字符串或类似字节串的对象
|
|