anaconda3突然打开不了的问题(python3.8.3)以及无法pip的问题

莫名其妙anaconda打不开了,同时pip也没用了!!!!
耗时半天,终于解决了!!
在百度查找了好多方法

问题报错如下:

点击anaconda,没有反应,通过cmd打开anaconda-navigator,出现了如下的情况

C:\Users\Administrator>anaconda-navigator
Traceback (most recent call last):
File “D:\anaconda\Scripts\anaconda-navigator-script.py”, line 10, in
sys.exit(main())
File “D:\anaconda\lib\site-packages\anaconda_navigator\app\main.py”, line 103, in main
from anaconda_navigator.app.start import start_app
File “D:\anaconda\lib\site-packages\anaconda_navigator\app\start.py”, line 34, in
from anaconda_navigator.widgets.main_window import MainWindow
File “D:\anaconda\lib\site-packages\anaconda_navigator\widgets\main_window.py”, line 37, in
from anaconda_navigator.utils.analytics import GATracker
File “D:\anaconda\lib\site-packages\anaconda_navigator\utils\analytics.py”, line 44, in
from anaconda_navigator.external.UniversalAnalytics import Tracker
File “D:\anaconda\lib\site-packages\anaconda_navigator\external\UniversalAnalytics\Tracker.py”, line 28, in
from six.moves.urllib.request import (HTTPSHandler, Request, build_opener,
ImportError: cannot import name ‘HTTPSHandler’ from ‘six.moves.urllib.request’ (unknown location)
同时,
(base) C:\WINDOWS\system32>conda update anaconda-navigator
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json
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/main/win-64/current_repodata.json (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”))’))
并且并且,
import ssl 出现报错!!!

import ssl
Traceback (most recent call last):
File “”, line 1, in
File “D:\Anaconda\lib\ssl.py”, line 98, in
import _ssl # if we can’t import it, let the error propagate
ModuleNotFoundError: No module named ‘_ssl’

方法一:

出现这种问题,是因为ssl出现了缺失,可以进网站下一个安装就好了

https://slproweb.com/products/Win32OpenSSL.html
没用!!!!!

方法二

只要替换 _ssl.pyd 这个文件就行
anaconda的目录为 D:\Anaconda\DLLs_ssl.pyd
在Python的官网中下载相对应的版本的Python ZIP文件
换完之后,显示不匹配为win32??我明明就是64位的python,明明就是从3.8.3的64位python里复制的!!
又失败!!

方法三

参考博文:https://blog.csdn.net/rippersudo/article/details/102966284?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param
去官网安装对应的python,安装完成后将原python安装目录下的【DLLs】【include】【Lib】【libs】【tcl】【Tools】这六个文件夹的所有内容复制到anaconda文件夹中的对应文件夹里。如果是同名文件选择替换即可。注意,一定要复制到对应的文件夹里,比如DLLs里的内容,就复制到anaconda/DLLs里
anaconda3突然打开不了的问题(python3.8.3)以及无法pip的问题_第1张图片

成功!!!!!

打开anaconda成功!!!

你可能感兴趣的:(python学习)