Anaconda之二——Anaconda更新失败解决办法


晚上在自己的电脑上卸载了之前的Python2.X,准备重新安装3.X版,在Python的官网上下载了3.5.X装成功后准备继续安装Anaconda(在官网上要用迅雷下载,速度很快,如果是浏览器下载的话……几十KB/S,(⊙﹏⊙)b)

下载完Anaconda并安装成功后,在cmd中运行 conda install requests,结果却报错了,大概是:conda httperror http none none for url none Anaconda……(忘记截图了。。。),开始度娘~~~

首先是GitHub上的一个回答

于是运行 conda update conda,还是报错,继续寻找答案,之后在http://www.lqkweb.com/blog.php?id=18这篇文章里找到了答案,设置清华的镜像作为下载源就可以完美解决了。

之后,把下载安装的python3.5的环境变量删掉,设置为Anaconda的路径,直接用自带的就可以了,搞定!

发布了23 篇原创文章 · 获赞 23 · 访问量 7万+
展开阅读全文

Anaconda使用conda更新或安装报错

10-10

Win10,Anaconda3,python3.6,使用conda或者pip命令upgrade或者install都会报错 以为是因为版本冲突,Anaconda重装了也没有用,帮忙看看是什么错误啦谢谢~ ``` --conda upgrade conda Fetching package metadata ...An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : win-64 conda version : 4.3.27 conda is private : False conda-env version : 4.3.27 conda-build version : 3.0.22 python version : 3.6.2.final.0 requests version : 2.18.4 root environment : C:\Anaconda3 (writable) default environment : C:\Anaconda3 envs directories : C:\Anaconda3\envs C:\Users\Yvette~1\AppData\Local\conda\conda\envs C:\Users\Yvette\.conda\envs package cache : C:\Anaconda3\pkgs C:\Users\Yvette~1\AppData\Local\conda\conda\pkgs channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch https://repo.continuum.io/pkgs/main/win-64 https://repo.continuum.io/pkgs/main/noarch https://repo.continuum.io/pkgs/free/win-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/win-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/win-64 https://repo.continuum.io/pkgs/pro/noarch https://repo.continuum.io/pkgs/msys2/win-64 https://repo.continuum.io/pkgs/msys2/noarch config file : C:\Users\陈惠宇宝宝\.condarc netrc file : None offline mode : False user-agent : conda/4.3.27 requests/2.18.4 CPython/3.6.2 Windows/10 Windows/10.0.15063 administrator : False `$ C:\Anaconda3\Scripts\conda upgrade conda` Traceback (most recent call last): File "C:\Anaconda3\lib\site-packages\conda\exceptions.py", line 640, in conda_exception_handler return_value = func(*args, **kwargs) File "C:\Anaconda3\lib\site-packages\conda\cli\main.py", line 140, in _main exit_code = args.func(args, p) File "C:\Anaconda3\lib\site-packages\conda\cli\main_update.py", line 65, in execute install(args, parser, 'update') File "C:\Anaconda3\lib\site-packages\conda\cli\install.py", line 231, in install unknown=index_args['unknown'], prefix=prefix) File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 101, in get_index index = fetch_index(channel_priority_map, use_cache=use_cache) File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 120, in fetch_index repodatas = collect_all_repodata(use_cache, tasks) File "C:\Anaconda3\lib\site-packages\conda\core\repodata.py", line 75, in collect_all_repodata repodatas = _collect_repodatas_serial(use_cache, tasks) File "C:\Anaconda3\lib\site-packages\conda\core\repodata.py", line 485, in _collect_repodatas_serial for url, schan, pri in tasks] File "C:\Anaconda3\lib\site-packages\conda\core\repodata.py", line 485, in <listcomp> for url, schan, pri in tasks] File "C:\Anaconda3\lib\site-packages\conda\core\repodata.py", line 115, in func res = f(*args, **kwargs) File "C:\Anaconda3\lib\site-packages\conda\core\repodata.py", line 464, in fetch_repodata mod_etag_headers.get('_mod')) File "C:\Anaconda3\lib\site-packages\conda\core\repodata.py", line 144, in fetch_repodata_remote_request timeout=timeout) File "C:\Anaconda3\lib\site-packages\requests\sessions.py", line 521, in get return self.request('GET', url, **kwargs) File "C:\Anaconda3\lib\site-packages\requests\sessions.py", line 508, in request resp = self.send(prep, **send_kwargs) File "C:\Anaconda3\lib\site-packages\requests\sessions.py", line 618, in send r = adapter.send(request, **kwargs) File "C:\Anaconda3\lib\site-packages\requests\adapters.py", line 440, in send timeout=timeout File "C:\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 595, in urlopen self._prepare_proxy(conn) File "C:\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 816, in _prepare_proxy conn.connect() File "C:\Anaconda3\lib\site-packages\urllib3\connection.py", line 284, in connect conn = self._new_conn() File "C:\Anaconda3\lib\site-packages\urllib3\connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "C:\Anaconda3\lib\site-packages\urllib3\util\connection.py", line 51, in create_connection if host.startswith('['): AttributeError: 'NoneType' object has no attribute 'startswith' ``` 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览