【Anaconda】 报错问题解决

【Anaconda】 command not found: conda

1.确认conda安装成功

要使conda临时生效,可以选择在你的主目录(自己的权限目录)下,使用下面的命令:

export PATH=~/anaconda2/bin:$PATH
conda --v 
如果结果是你的anaconda2的版本号,那就成功了!输入conda list,可以正常执行。

但是,关闭闭终端后重新打开,再执行conda list会发现依然报错。

可以选择用命令把路径写入bashrc文件:

echo "export PATH="~/anaconda2/bin:"$PATH " >> ~/.bashrc
或者,直接在vim修改bashrc文件

4. 使用source ~/.bashrc(或者 . ~/.bashrc)就可以立刻加载修改后的设置,使之生效。

【Anaconda】 找不到keras的包

Install TDM GCC x64.
Install Anaconda x64.
Open the Anaconda prompt
Run conda update conda
Run conda update --all
Run conda install mingw libpython
安装最新版本Theano:
pip install git+git://github.com/Theano/Theano.git
运行pip安装keras:

pip install git+git://github.com/fchollet/keras.git
git安装:http://www.cnblogs.com/sunada2005/archive/2013/06/06/3121098.html

【Anaconda】 conda error: could not found url

修改配置文件condarc:http://stackoverflow.com/questions/36095385/conda-error-could-not-found-url

如果找不到配置文件condarc:http://stackoverflow.com/questions/29896309/how-to-create-a-condarc-file-for-anaconda

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

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官方博客

分享到微信朋友圈

×

扫一扫,手机浏览