gpt4 book ai didi

anaconda - conda 返回 'Solving environment: failed'

转载 作者:行者123 更新时间:2023-12-03 23:34:59 25 4
gpt4 key购买 nike

我不能再使用 conda 实用程序了。多年来我经常使用它,但最近,因为我安装了 python 模块 scp (使用命令 conda install scp ,我不知道这是否重要)没有任何明显异常,只要我使用 conda (conda install ..., conda update ..., conda uninstall ..., ... ,消息总是一样的):

Solving environment: failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/exceptions.py", line 819, in __call__
return func(*args, **kwargs)
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/cli/main.py", line 78, in _main
exit_code = do_call(args, p)
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/cli/conda_argparse.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/cli/main_update.py", line 14, in execute
install(args, parser, 'update')
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/cli/install.py", line 235, in install
force_reinstall=context.force,
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/solve.py", line 506, in solve_for_transaction
force_remove, force_reinstall)
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/solve.py", line 439, in solve_for_diff
final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/solve.py", line 180, in solve_final_state
index, r = self._prepare(prepared_specs)
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/solve.py", line 580, in _prepare
self.subdirs, prepared_specs)
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/index.py", line 215, in get_reduced_index
new_records = query_all(spec)
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/index.py", line 184, in query_all
return tuple(concat(future.result() for future in as_completed(futures)))
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/subdir_data.py", line 94, in query
self.load()
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/subdir_data.py", line 148, in load
_internal_state = self._load()
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/subdir_data.py", line 216, in _load
mod_etag_headers.get('_mod'))
File "/Users/steph/anaconda/lib/python3.5/site-packages/conda/core/subdir_data.py", line 416, in fetch_repodata_remote_request
timeout=timeout)
File "/Users/steph/anaconda/lib/python3.5/site-packages/requests/sessions.py", line 501, in get
return self.request('GET', url, **kwargs)
File "/Users/steph/anaconda/lib/python3.5/site-packages/requests/sessions.py", line 479, in request
prep.url, proxies, stream, verify, cert
File "/Users/steph/anaconda/lib/python3.5/site-packages/requests/sessions.py", line 654, in merge_environment_settings
env_proxies = get_environ_proxies(url) or {}
File "/Users/steph/anaconda/lib/python3.5/site-packages/requests/utils.py", line 617, in get_environ_proxies
if should_bypass_proxies(url):
TypeError: should_bypass_proxies_patched() missing 1 required positional argument: 'no_proxy'

`$ /Users/steph/anaconda/bin/conda update conda`

environment variables:
CIO_TEST=<not set>
CLASSPATH=/Users/steph/workspace
CONDA_ROOT=/Users/steph/anaconda
LD_LIBRARY_PATH=/opt/local/lib:/opt/local/lib/gcc5:/usr/lib:/usr/local/lib:/Users/step
h/anaconda/pkgs/qt-4.8.7-1/lib
PATH=/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Framewo
rks/Python.framework/Versions/3.6/bin:/opt/local/bin:/opt/local/sbin:.
:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Te
X/texbin:/Developer/usr/bin:/Users/steph/anaconda/bin
PYTHONPATH=/Users/steph/python_work:/Users/steph/python_lib
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>

active environment : None
user config file : /Users/steph/.condarc
populated config files :
conda version : 4.5.6
conda-build version : 3.10.5
python version : 3.5.5.final.0
base environment : /Users/steph/anaconda (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/osx-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/osx-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /Users/steph/anaconda/pkgs
/Users/steph/.conda/pkgs
envs directories : /Users/steph/anaconda/envs
/Users/steph/.conda/envs
platform : osx-64
user-agent : conda/4.5.6 requests/2.12.4 CPython/3.5.5 Darwin/15.6.0 OSX/10.11.6
UID:GID : 504:20
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?


我试图查看我的 .condarc文件,甚至删除它,但它不会改变 pb.你知道我能做些什么来回到工作中的 conda 吗?

最佳答案

删除到 C:\Users\<YOUR_USERNAME>\.condarc然后更新 conda 。这将在 Windows 中解决。

conda update conda

关于anaconda - conda 返回 'Solving environment: failed',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51266535/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com