在新电脑装Anaconda,创建新环境的时候,conda create -n tensorflow pip python=3.6
Solving enviroment \ 一直转圈圈,不能完成。上网搜索了一大圈方法,于是尝试:
conda update conda
还是转圈圈,不过转了一会出现了以下提示:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url
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.
ConnectionError(ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out."))
上网搜索后解决办法如下:
在C:\Users\Amber 这一homepath路径下找到.condarc文件。
以记事本方式打开,将所有的https:// 改成http,一定要去掉s,再删除-defaults 和里面的东西
保存退出就可以了。
再试一下conda update conda 就成功了。
然后继续创建新环境:conda create -n tensorflow pip python=3.6
就成功了。