1. 报错信息:
Collecting package metadata (current_repodata.json): failed
C:\Users\APandaThief>conda upgrade --all
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."))'))
2. 原因分析:
3. 解决方法:
- 把路径
Anaconda3/Library/bin
下面的文件复制到路径Anaconda3/DLLs
下:
- libcrypto-1_1-x64.dll
- libssl-1_1-x64.dll
再次执行:
C:\Users\APandaThief>conda upgrade --all
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: C:\ProgramData\Anaconda3
The following packages will be downloaded:
package | build
---------------------------|-----------------
backports.functools_lru_cache-1.6.4| pyhd3eb1b0_0 9 KB
backports.tempfile-1.0 | pyhd3eb1b0_1 11 KB
conda-4.10.3 | py37haa95532_0 2.9 MB
conda-build-3.21.5 | py37haa95532_0 549 KB
conda-package-handling-1.7.3| py37h8cc25b3_1 721 KB
future-0.18.2 | py37_1 646 KB
------------------------------------------------------------
Total: 4.8 MB
The following packages will be UPDATED:
backports.functoo~ 1.5-py_2 --> 1.6.4-pyhd3eb1b0_0
conda 4.7.12-py37_0 --> 4.10.3-py37haa95532_0
conda-build 3.18.9-py37_3 --> 3.21.5-py37haa95532_0
conda-package-han~ 1.6.0-py37h62dcd97_0 --> 1.7.3-py37h8cc25b3_1
future 0.17.1-py37_0 --> 0.18.2-py37_1
The following packages will be DOWNGRADED:
backports.tempfile 1.0-py_1 --> 1.0-pyhd3eb1b0_1
Proceed ([y]/n)? y
Downloading and Extracting Packages
future-0.18.2 | 646 KB | ############################################################################ | 100%
conda-4.10.3 | 2.9 MB | ############################################################################ | 100%
conda-package-handli | 721 KB | ############################################################################ | 100%
backports.tempfile-1 | 11 KB | ############################################################################ | 100%
conda-build-3.21.5 | 549 KB | ############################################################################ | 100%
backports.functools_ | 9 KB | ################################################################################################################################################################################################# | 100%
Preparing transaction: done
Verifying transaction: failed
EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
environment location: C:\ProgramData\Anaconda3