conda install 报错(代理问题)

报错

Collecting package metadata (current_repodata.json): failed

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

    Traceback (most recent call last):
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\exceptions.py", line 1129, in __call__
        return func(*args, **kwargs)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\cli\main.py", line 86, in main_subshell
        exit_code = do_call(args, p)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 93, in do_call
        return getattr(module, func_name)(args, parser)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\notices\core.py", line 72, in wrapper
        return_value = func(*args, **kwargs)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\cli\main_install.py", line 22, in execute
        install(args, parser, 'install')
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\cli\install.py", line 261, in install
        unlink_link_transaction = solver.solve_for_transaction(
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\solve.py", line 156, in solve_for_transaction
        unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\solve.py", line 199, in solve_for_diff
        final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\solve.py", line 304, in solve_final_state
        ssc = self._collect_all_metadata(ssc)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\common\io.py", line 86, in decorated
        return f(*args, **kwds)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\solve.py", line 467, in _collect_all_metadata
        index, r = self._prepare(prepared_specs)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\solve.py", line 1061, in _prepare
        reduced_index = get_reduced_index(self.prefix, self.channels,
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\index.py", line 301, in get_reduced_index
        new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs,
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 137, in query_all
        result = tuple(concat(executor.map(subdir_query, channel_urls)))
      File "D:\DesignSoft\Anaconda3\lib\concurrent\futures\_base.py", line 611, in result_iterator
        yield fs.pop().result()
      File "D:\DesignSoft\Anaconda3\lib\concurrent\futures\_base.py", line 439, in result
        return self.__get_result()
      File "D:\DesignSoft\Anaconda3\lib\concurrent\futures\_base.py", line 388, in __get_result
        raise self._exception
      File "D:\DesignSoft\Anaconda3\lib\concurrent\futures\thread.py", line 57, in run
        result = self.fn(*self.args, **self.kwargs)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 129, in <lambda>
        subdir_query = lambda url: tuple(SubdirData(Channel(url), repodata_fn=repodata_fn).query(
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 142, in query
        self.load()
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 207, in load
        _internal_state = self._load()
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 277, in _load
        raw_repodata_str = fetch_repodata_remote_request(
      File "D:\DesignSoft\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 527, in fetch_repodata_remote_request
        resp = session.get(join_url(url, filename), headers=headers, proxies=session.proxies,
      File "D:\DesignSoft\Anaconda3\lib\site-packages\requests\sessions.py", line 555, in get
        return self.request('GET', url, **kwargs)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\requests\sessions.py", line 542, in request
        resp = self.send(prep, **send_kwargs)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\requests\sessions.py", line 655, in send
        r = adapter.send(request, **kwargs)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\requests\adapters.py", line 439, in send
        resp = conn.urlopen(
      File "D:\DesignSoft\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
        self._prepare_proxy(conn)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
        conn.connect()
      File "D:\DesignSoft\Anaconda3\lib\site-packages\urllib3\connection.py", line 359, in connect
        conn = self._connect_tls_proxy(hostname, conn)
      File "D:\DesignSoft\Anaconda3\lib\site-packages\urllib3\connection.py", line 500, in _connect_tls_proxy
        return ssl_wrap_socket(
      File "D:\DesignSoft\Anaconda3\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 "D:\DesignSoft\Anaconda3\lib\site-packages\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl
        return ssl_context.wrap_socket(sock)
      File "D:\DesignSoft\Anaconda3\lib\ssl.py", line 500, in wrap_socket
        return self.sslsocket_class._create(
      File "D:\DesignSoft\Anaconda3\lib\ssl.py", line 997, in _create
        raise ValueError("check_hostname requires server_hostname")
    ValueError: check_hostname requires server_hostname

解决方法

把代理之类的关了

posted @ 2023-03-29 23:19  裏表異体  阅读(130)  评论(0编辑  收藏  举报