Import Can';t使用pip或conda安装/更新软件包

Import Can';t使用pip或conda安装/更新软件包,import,anaconda,installation,conda,Import,Anaconda,Installation,Conda,我无法使用pip或conda安装/更新使用终端安装或更新任何软件包。我的水蟒导航器也不会打开 我相信我可能在不知不觉中弄乱了我的康达环境。我已尝试重新启动计算机并更新MacOS 康达信息 错误消息: 康达错误 水蟒开放错误 $anaconda navigtor 回溯(最近一次呼叫最后一次): 文件“/Users/annaberman/anaconda3/bin/anaconda navigator”,第11行,在 sys.exit(main()) 文件“/Users/annaberman/ana

我无法使用pip或conda安装/更新使用终端安装或更新任何软件包。我的水蟒导航器也不会打开

我相信我可能在不知不觉中弄乱了我的康达环境。我已尝试重新启动计算机并更新MacOS

康达信息 错误消息: 康达错误 水蟒开放错误
$anaconda navigtor
回溯(最近一次呼叫最后一次):
文件“/Users/annaberman/anaconda3/bin/anaconda navigator”,第11行,在
sys.exit(main())
文件“/Users/annaberman/anaconda3/lib/python3.6/site packages/anaconda_navigator/app/main.py”,第103行,在main中
从anaconda_navigator.app.start导入开始_应用
文件“/Users/annaberman/anaconda3/lib/python3.6/site packages/anaconda_navigator/app/start.py”,第34行,在
从anaconda_navigator.widgets.main_窗口导入主窗口
文件“/Users/annaberman/anaconda3/lib/python3.6/site packages/anaconda_navigator/widgets/main_window.py”,第37行,在
从anaconda_navigator.utils.analytics导入GATracker
文件“/Users/annaberman/anaconda3/lib/python3.6/site packages/anaconda_navigator/utils/analytics.py”,第44行,在
来自anaconda_navigator.external.UniversalAnalytics导入跟踪器
文件“/Users/annaberman/anaconda3/lib/python3.6/site packages/anaconda_navigator/external/UniversalAnalytics/Tracker.py”,第28行,在
从six.moves.urllib.request导入(HTTPSHandler、request、build_opener、,
ImportError:无法导入名称“HTTPSHandler”

您的基本环境最近有什么变化吗?(检查
/Users/annaberman/anaconda3/conda meta/history
)。我会寻找类似于对
six
请求
openssl
libssl
conda
的更改。此外,您是否在基本环境中使用了
pip
?这肯定是要避免的,因为它通常会使您在其中运行的任何环境不稳定。有关详细信息,请参阅“”。
     active environment : base
    active env location : /Users/annaberman/anaconda3
            shell level : 1
       user config file : /Users/annaberman/.condarc
 populated config files : /Users/annaberman/.condarc
          conda version : 4.6.1
    conda-build version : 3.10.5
         python version : 3.6.5.final.0
       base environment : /Users/annaberman/anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/osx-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/annaberman/anaconda3/pkgs
                          /Users/annaberman/.conda/pkgs
       envs directories : /Users/annaberman/anaconda3/envs
                          /Users/annaberman/.conda/envs
               platform : osx-64
             user-agent : conda/4.6.1 requests/2.18.4 CPython/3.6.5 Darwin/17.7.0 OSX/10.13.6
                UID:GID : 501:20
             netrc file : None
           offline mode : False
$ conda install geopandas

Collecting package metadata: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/r/noarch/repodata.json.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/r/noarch/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.",))',),)
$ pip install geopandas

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting geopandas
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/geopandas/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/geopandas/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/geopandas/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/geopandas/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/geopandas/
  Could not fetch URL https://pypi.org/simple/geopandas/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/geopandas/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
  ERROR: Could not find a version that satisfies the requirement geopandas (from versions: none)
ERROR: No matching distribution found for geopandas
$ anaconda-navigtor

Traceback (most recent call last):
  File "/Users/annaberman/anaconda3/bin/anaconda-navigator", line 11, in <module>
    sys.exit(main())
  File "/Users/annaberman/anaconda3/lib/python3.6/site-packages/anaconda_navigator/app/main.py", line 103, in main
    from anaconda_navigator.app.start import start_app
  File "/Users/annaberman/anaconda3/lib/python3.6/site-packages/anaconda_navigator/app/start.py", line 34, in <module>
    from anaconda_navigator.widgets.main_window import MainWindow
  File "/Users/annaberman/anaconda3/lib/python3.6/site-packages/anaconda_navigator/widgets/main_window.py", line 37, in <module>
    from anaconda_navigator.utils.analytics import GATracker
  File "/Users/annaberman/anaconda3/lib/python3.6/site-packages/anaconda_navigator/utils/analytics.py", line 44, in <module>
    from anaconda_navigator.external.UniversalAnalytics import Tracker
  File "/Users/annaberman/anaconda3/lib/python3.6/site-packages/anaconda_navigator/external/UniversalAnalytics/Tracker.py", line 28, in <module>
    from six.moves.urllib.request import (HTTPSHandler, Request, build_opener,
ImportError: cannot import name 'HTTPSHandler'