Traceback (most recent call last):
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 819, in __call__
return func(*args, **kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 78, in _main
exit_code = do_call(args, p)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/cli/main_create.py", line 11, in execute
install(args, parser, 'create')
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 235, in install
force_reinstall=context.force,
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 518, in solve_for_transaction
force_remove, force_reinstall)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 451, in solve_for_diff
final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 180, in solve_final_state
index, r = self._prepare(prepared_specs)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 592, in _prepare
self.subdirs, prepared_specs)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 215, in get_reduced_index
new_records = query_all(spec)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 184, in query_all
return tuple(concat(future.result() for future in as_completed(futures)))
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 95, in query
self.load()
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 149, in load
_internal_state = self._load()
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 227, in _load
mod_etag_headers.get('_mod'))
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 437, in fetch_repodata_remote_request
timeout=timeout)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 412, in send
conn = self.get_connection(request.url, proxies)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 309, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 189, in proxy_manager_for
**proxy_kwargs
File "/home/user/anaconda3/lib/python3.7/site-packages/urllib3/contrib/socks.py", line 173, in __init__
"Unable to determine SOCKS version from %s" % proxy_url
ValueError: Unable to determine SOCKS version from socks://127.0.0.1:1080/
`$ /home/user/anaconda3/bin/conda create --name tf python=3.6`
environment variables:
ALL_PROXY=
CIO_TEST=
CONDA_DEFAULT_ENV=base
CONDA_EXE=/home/user/anaconda3/bin/conda
CONDA_PREFIX=/home/user/anaconda3
CONDA_PROMPT_MODIFIER=
CONDA_PYTHON_EXE=/home/user/anaconda3/bin/python
CONDA_ROOT=/home/user/anaconda3
CONDA_SHLVL=1
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
NO_PROXY=
PATH=/home/user/anaconda3/bin:/home/user/bin:/home/user/.local/bin:/usr/loc
al/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/l
ocal/games:/snap/bin:/usr/local/cuda-9.0/bin
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
all_proxy=
no_proxy=
socks_proxy=
active environment : base
active env location : /home/user/anaconda3
shell level : 1
user config file : /home/user/.condarc
populated config files :
conda version : 4.5.12
conda-build version : 3.17.6
python version : 3.7.1.final.0
base environment : /home/user/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /home/user/anaconda3/pkgs
/home/user/.conda/pkgs
envs directories : /home/user/anaconda3/envs
/home/user/.conda/envs
platform : linux-64
user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Linux/4.15.0-48-generic ubuntu/16.04 glibc/2.23
UID:GID : 1000:1000
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]:
No report sent. To permanently opt-out, use
$ conda config --set report_errors false
如上所示,无论怎么都是出现这个错误,结果发现是挂了(V–P--n)的原因,关了软件,并且关闭网路代理,并应用到这个系统就好了。
本文主要介绍了
Sol
ving
environment
:
failed
Conda
HTTPError: HTTP 000 CONNECTION
FAILED
解决方案,希望能对
使用
Python的同学们有所帮助。
1. 问题描述
2. 解决方案
报错如下:
Collecting package metadata (current_repodata.json): done
Sol
ving
environment
:
failed
with initial frozen
sol
ve. Retrying with flexible
sol
ve.
Sol
ving
environment
:
failed
with repodata from current_repodata.json, will retry with next repodata source.
conda
install -c https://
conda
.ana
conda
.org/menpo opencv3
Collecting package metadata (current_repodata.json): done
Sol
ving
environment
:
failed
with initial frozen
sol
ve. Retrying with flexible
sol
ve.
Sol
ving
environment
:
failed
with repodata from curren.
已解决:
conda
install报错
Sol
ving
environment
:
failed
with initial frozen
sol
ve. Retrying with fle
Ubuntu20.04安装
conda
出错
成功解决
conda
安装 Pytorch 时
提示
:
sol
ving
environment
:
failed
with initial frozen
sol
ve.Retrying with flexible
sol
ve
遇到的问题
Sol
ving
environment
:
failed
with initial frozen
sol
ve. Retrying with flexible
sol
ve.
这是我在安装 Pytorch 过程中遇到的,
总是
环境不对,所以就查阅了
(已解决)
Sol
ving
environment
:
failed
with initial frozen
sol
ve. Retrying with flexible
sol
ve.
第一个查看了镜像源文件:
conda
config --show-sources
按照百度上的一些结果改来改去,结果没什么用。
问题2:
Sol
ving
environment
:
failed
这是在解决问题1的时候
出现
的问题,结果还是和问题一一样的答案,然后就找
Conda
HTTPError: HTTP 000 CONNECTION
FAILED
for url这个问题,找来找去,`**
参考:https://blog.csdn.net/weixin_44448148/article/details/88112783
多方寻找,终于找到一篇报错一样,通过挂V-P-.n解决,但是由于没有,放弃
参考:https://blog.csdn.net/qq_.
在
使用
conda
安装扩展包时,提醒
failed
with initial frozen
sol
ve
Collecting package metadata (current_repodata.json): done
Sol
ving
environment
:
failed
with initial frozen
sol
ve. Retrying with flexible
sol
ve.
Sol
ving
environment
:
failed
with repodata from curren
在
Linux
环境下,当你尝试
使用
Ana
conda
(一种Python包管理工具)更新环境时,可能会遇到"
Sol
ving
environment
:
failed
with initial frozen
sol
ve. Retrying with flexible
sol
ve." 这样的错误
提示
。这通常意味着
conda
在尝试创建一个新的依赖解决方案(即确定哪些包需要安装或升级以及它们之间的依赖关系)时遇到了问题,可能是由于包版本间的兼容性冲突、网络连接问题或者是环境文件损坏。
这里有几个可能的原因和解决步骤:
1. **版本或依赖冲突**:检查是否有两个包有相同的名称但版本不兼容。你可以尝试手动指定版本或者清理现有的环境,然后重新创建。
2. **网络问题**:如果网络连接不稳定,可以试着断开并重新连接,或者
使用
离线模式(`
conda
config --set ana
conda
_upload no`)进行更新。
3. **环境文件损坏**:删除当前环境文件 `.
conda
rc` 或者 `.envs/<env_name>/
environment
.yml`,然后再重建环境。
4. **灵活解法**:如错误
提示
所述,
conda
会尝试“flexible
sol
ve”,这是当常规解决策略失败时的一种策略。如果这个也不成功,你可能需要手动编辑解决方案文件 `.
conda
-meta/pinned`,或者从源头下载对应版本的包。
5. **更新
conda
本身**:有时候
conda
版本过旧也可能导致这类问题,确保你
使用
的
conda
是最新的。
尝试以上方法后,再运行 `
conda
update` 看看是否能解决问题。如果问题持续存在,建议查看
conda
日志以获取更详细的错误信息。