我试图通过创建环境来安装Tensorflow,但由于我的自签名证书而出现错误。我用pip修复了一次,但是我不知道如何用Anaconda做到这一点。
错误是:
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(SSLError("bad handshake: Error([(\'SSL routines\', \'tls_process_server_certificate\', \'certificate verify failed\')])")))'))
我试图找到一个解决此问题的命令,但找不到一个。我应该能够没有任何问题地创建环境。
答案 0 :(得分:1)
我在互联网上进行搜索,发现了与Conda问题有关的内容。 在进行1)和2)步骤之前,只需输入
conda config --set ssl_verify no
然后执行以下操作:
通过键入(可选)创建新环境
conda create -n tensorflow pip python=3.7
activate tensorflow
安装Tensorflow 1.9
pip install --ignore-installed --upgrade tensorflow==1.9
我没有得到任何错误。如果有错误,请在下面进行注释。