无法运行蟒蛇

时间:2018-08-27 11:38:52

标签: python anaconda conda

我刚刚安装了anaconda,并且已删除PATH变量。

但是,我无法运行任何与conda相关的命令。

每次我运行以“ conda”开头的命令时,都会出现以下错误。

有人可以帮忙吗?

我正在使用macOS High Sierra 10.13.6。

Traceback (most recent call last):
  File "/anaconda3/lib/python3.6/site-packages/conda/common/path.py", line 18, in <module>
from urllib.request import url2pathname
  File "/anaconda3/lib/python3.6/urllib/request.py", line 2585, in <module>
from _scproxy import _get_proxy_settings, _get_proxies
ImportError: dlopen(/anaconda3/lib/python3.6/lib-dynload/_scproxy.cpython-36m-darwin.so, 2): Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /anaconda3/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/bin/conda", line 11, in <module>
sys.exit(main())
  File "/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 112, in main
from ..exceptions import conda_exception_handler
  File "/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 18, in <module>
from .common.io import timeout
  File "/anaconda3/lib/python3.6/site-packages/conda/common/io.py", line 24, in <module>
from .path import expand
  File "/anaconda3/lib/python3.6/site-packages/conda/common/path.py", line 21, in <module>
from urllib import unquote, url2pathname  # NOQA
ImportError: cannot import name 'unquote'

1 个答案:

答案 0 :(得分:0)

当我第一次在Mac上运行Anaconda时,我似乎还记得类似的东西。我相信我可以通过做两件事来解决它:

  1. 卸载Anaconda(Link
  2. 重新安装Anaconda(可能在用户家下面的其他位置)

我认为在安装过程中,我的PATH最终指向的位置不同于Conda / Python的安装位置。