anacondaプロンプトで
conda update -n base conda
を実行したのですが以下のエラーが表示されます。
どうしたらアップデートできるのでしょうか。
os:windows10
インストール時にjust meにしたりall usersにしてインストールしたり、add pathなんとかをチェック付けたりなどしてインストールしましたが以下エラーが出ます。
エラー
(base) C:\Windows\system32>conda update -n base conda
Collecting package metadata (current_repodata.json): failed
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last): File "C:\Users\R4A1\anaconda\lib\site-packages\conda\exceptions.py", line 1079, in __call__ return func(*args, **kwargs) File "C:\Users\R4A1\anaconda\lib\site-packages\conda\cli\main.py", line 84, in _main exit_code = do_call(args, p) File "C:\Users\R4A1\anaconda\lib\site-packages\conda\cli\conda_argparse.py", line 83, in do_call return getattr(module, func_name)(args, parser) File "C:\Users\R4A1\anaconda\lib\site-packages\conda\cli\main_update.py", line 20, in execute install(args, parser, 'update') File "C:\Users\R4A1\anaconda\lib\site-packages\conda\cli\install.py", line 261, in install unlink_link_transaction = solver.solve_for_transaction( File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\solve.py", line 114, in solve_for_transaction unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier, File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\solve.py", line 157, in solve_for_diff final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned, File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\solve.py", line 262, in solve_final_state ssc = self._collect_all_metadata(ssc) File "C:\Users\R4A1\anaconda\lib\site-packages\conda\common\io.py", line 88, in decorated return f(*args, **kwds) File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\solve.py", line 425, in _collect_all_metadata index, r = self._prepare(prepared_specs) File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\solve.py", line 1020, in _prepare reduced_index = get_reduced_index(self.prefix, self.channels, File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\index.py", line 288, in get_reduced_index new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs, File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\subdir_data.py", line 140, in query_all result = tuple(concat(executor.map(subdir_query, channel_urls))) File "C:\Users\R4A1\anaconda\lib\concurrent\futures\_base.py", line 611, in result_iterator yield fs.pop().result() File "C:\Users\R4A1\anaconda\lib\concurrent\futures\_base.py", line 439, in result return self.__get_result() File "C:\Users\R4A1\anaconda\lib\concurrent\futures\_base.py", line 388, in __get_result raise self._exception File "C:\Users\R4A1\anaconda\lib\concurrent\futures\thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\subdir_data.py", line 132, in <lambda> subdir_query = lambda url: tuple(SubdirData(Channel(url), repodata_fn=repodata_fn).query( File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\subdir_data.py", line 145, in query self.load() File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\subdir_data.py", line 209, in load _internal_state = self._load() File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\subdir_data.py", line 371, in _load raw_repodata_str = fetch_repodata_remote_request( File "C:\Users\R4A1\anaconda\lib\site-packages\conda\core\subdir_data.py", line 694, in fetch_repodata_remote_request resp = session.get(join_url(url, filename), headers=headers, proxies=session.proxies, File "C:\Users\R4A1\anaconda\lib\site-packages\requests\sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "C:\Users\R4A1\anaconda\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\R4A1\anaconda\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\R4A1\anaconda\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\R4A1\anaconda\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\R4A1\anaconda\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\R4A1\anaconda\lib\site-packages\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\R4A1\anaconda\lib\site-packages\urllib3\connection.py", line 500, in _connect_tls_proxy return ssl_wrap_socket( File "C:\Users\R4A1\anaconda\lib\site-packages\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\R4A1\anaconda\lib\site-packages\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\R4A1\anaconda\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\R4A1\anaconda\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname
$ C:\Users\R4A1\anaconda\Scripts\conda-script.py update -n base conda
environment variables:
CIO_TEST=<not set>
CONDA_DEFAULT_ENV=base
CONDA_EXE=C:\Users\R4A1\anaconda\condabin..\Scripts\conda.exe
CONDA_EXES="C:\Users\R4A1\anaconda\condabin..\Scripts\conda.exe"
CONDA_PREFIX=C:\Users\R4A1\anaconda
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=C:\Users\R4A1\anaconda\python.exe
CONDA_ROOT=C:\Users\R4A1\anaconda
CONDA_SHLVL=1
CURL_CA_BUNDLE=<not set>
HOMEPATH=\Users\R4A1
HTTPS_PROXY=<set>
HTTP_PROXY=<set>
PATH=C:\Users\R4A1\anaconda;C:\Users\R4A1\anaconda\Library\mingw-w64\bin;C:
\Users\R4A1\anaconda\Library\usr\bin;C:\Users\R4A1\anaconda\Library\bi
n;C:\Users\R4A1\anaconda\Scripts;C:\Users\R4A1\anaconda\bin;C:\Users\R
4A1\anaconda;C:\Users\R4A1\anaconda\Library\mingw-w64\bin;C:\Users\R4A
1\anaconda\Library\usr\bin;C:\Users\R4A1\anaconda\Library\bin;C:\Users
\R4A1\anaconda\Scripts;C:\Users\R4A1\anaconda\bin;C:\Users\R4A1\anacon
da\condabin;C:\Users\R4A1\anaconda;C:\Users\R4A1\anaconda\Library\ming
w-w64\bin;C:\Users\R4A1\anaconda\Library\usr\bin;C:\Users\R4A1\anacond
a\Library\bin;C:\Users\R4A1\anaconda\Scripts;C:\Windows\system32;C:\Wi
ndows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v
1.0;C:\Windows\System32\OpenSSH;C:\Usr\pleiades\java\11\bin;C:\Program
Files\dotnet;C:\Users\R4A1\AppData\Local\Microsoft\WindowsApps
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows
PowerShell\v1.0\Modules
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : base active env location : C:\Users\R4A1\anaconda shell level : 1 user config file : C:\Users\R4A1.condarc
populated config files :
conda version : 4.10.1
conda-build version : 3.21.4
python version : 3.8.8.final.0
virtual packages : __win=0=0
__archspec=1=x86_64
base environment : C:\Users\R4A1\anaconda (writable)
conda av data dir : C:\Users\R4A1\anaconda\etc\conda
conda av metadata url : https://repo.anaconda.com/pkgs/main
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\R4A1\anaconda\pkgs
C:\Users\R4A1.conda\pkgs
C:\Users\R4A1\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\R4A1\anaconda\envs
C:\Users\R4A1.conda\envs
C:\Users\R4A1\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.10.1 requests/2.25.1 CPython/3.8.8 Windows/10 Windows/10.0.19041
administrator : True
netrc file : None
offline mode : False