安装Anaconda for OS X w / Python 3.6之后破碎的Conda

时间:2017-02-10 03:44:14

标签: anaconda conda

我为OSX安装了anaconda 4.3.0,Python 3.6。安装的一切似乎都没问题。但是,当我尝试启动jupiter笔记本时,我得到:

  

Traceback (most recent call last): File "/Users/joe/anaconda3/bin/jupyter-notebook", line 4, in <module> import notebook.notebookapp File "/Users/joe/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 63, in <module> from .services.contents.manager import ContentsManager File "/Users/joe/anaconda3/lib/python3.6/site-packages/notebook/services/contents/manager.py", line 16, in <module> from nbformat import sign, validate, ValidationError File "/Users/joe/anaconda3/lib/python3.6/site-packages/nbformat/__init__.py", line 33, in <module> from .validator import validate, ValidationError File "/Users/joe/anaconda3/lib/python3.6/site-packages/nbformat/validator.py", line 12, in <module> from jsonschema import ValidationError File "/Users/joe/anaconda3/lib/python3.6/site-packages/jsonschema/__init__.py", line 18, in <module> from jsonschema.validators import ( File "/Users/joe/anaconda3/lib/python3.6/site-packages/jsonschema/validators.py", line 8, in <module> import requests File "/Users/joe/anaconda3/lib/python3.6/site-packages/requests/__init__.py", line 52, in <module> from .packages.urllib3.contrib import pyopenssl File "/Users/joe/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 47, in <module> import OpenSSL.SSL File "/Users/joe/anaconda3/lib/python3.6/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import rand, crypto, SSL File "/Users/joe/anaconda3/lib/python3.6/site-packages/OpenSSL/crypto.py", line 13, in <module> from cryptography.hazmat.primitives.asymmetric import dsa, rsa File "/Users/joe/anaconda3/lib/python3.6/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py", line 14, in <module> from cryptography.hazmat.backends.interfaces import RSABackend File "/Users/joe/anaconda3/lib/python3.6/site-packages/cryptography/hazmat/backends/__init__.py", line 7, in <module> import pkg_resources File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources.py", line 1423, in <module> register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider) AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'

当我尝试运行conda时,我得到了

  

追踪(最近一次通话):     在conda_exception_handler中输入文件“/Users/joe/anaconda3/lib/python3.6/site-packages/conda/exceptions.py”,第617行       return_value = func(* args,** kwargs)     文件“/Users/joe/anaconda3/lib/python3.6/site-packages/conda/cli/main.py”,第85行,在_main       来自..base.context导入上下文     文件“/Users/joe/anaconda3/lib/python3.6/site-packages/conda/base/context.py”,第17行,in       来自.._ vendor.auxlib.path导入展开     文件“/Users/joe/anaconda3/lib/python3.6/site-packages/conda/_vendor/auxlib/path.py”,第8行,in       import pkg_resources     文件“/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources.py”,第1423行,in       register_loader_type(importlib_bootstrap.SourceFileLoader,DefaultProvider)   AttributeError:模块'importlib._bootstrap'没有属性'SourceFileLoader'

     

在处理上述异常期间,发生了另一个异常:

     

追踪(最近一次通话):     文件“/ Users / joe / anaconda3 / bin / conda”,第6行,in       sys.exit(conda.cli.main())     文件“/Users/joe/anaconda3/lib/python3.6/site-packages/conda/cli/main.py”,第167行,主要       return conda_exception_handler(_main,* args)     在conda_exception_handler中输入文件“/Users/joe/anaconda3/lib/python3.6/site-packages/conda/exceptions.py”,第633行       print_unexpected_error_message(e)中     在print_unexpected_error_message中输入文件“/Users/joe/anaconda3/lib/python3.6/site-packages/conda/exceptions.py”,第543行       来自conda.base.context导入上下文     文件“/Users/joe/anaconda3/lib/python3.6/site-packages/conda/base/context.py”,第17行,in       来自.._ vendor.auxlib.path导入展开     文件“/Users/joe/anaconda3/lib/python3.6/site-packages/conda/_vendor/auxlib/path.py”,第8行,in       import pkg_resources     文件“/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources.py”,第1423行,in       register_loader_type(importlib_bootstrap.SourceFileLoader,DefaultProvider)   AttributeError:模块'importlib._bootstrap'没有属性'SourceFileLoader'

我做了一个简单的删除并重新安装,但重新安装后问题仍然存在。我会尝试运行anaconda-clean,但由于conda不起作用,我无法安装它。有什么建议吗?

0 个答案:

没有答案