Pycharm的pip命令报错_子推推的博客-程序员宅基地_pycharm使用pip

技术标签: python  人工智能  

pycharm的pip命令报错一大堆
可能是使用了中文路径
也可能是使用了VPN,需要关闭代理

ERROR: Exception:
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in _main
    status = self.run(options, args)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\cli\req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\commands\install.py", line 318, in run
    requirement_set = resolver.resolve(
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 127, in resolve
    result = self._result = resolver.resolve(
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 473, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 341, in resolve
    name, crit = self._merge_into_criterion(r, parent=None)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 172, in _merge_into_criterion
    if not criterion.candidates:
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 139, in __bool__
    return bool(self._sequence)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in __bool__
    return any(self)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 129, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 30, in _iter_built
    for version, func in infos:
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 269, in iter_index_candidate_infos
    result = self._finder.find_best_candidate(
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\index\package_finder.py", line 879, in find_best_candidate
    candidates = self.find_all_candidates(project_name)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\index\package_finder.py", line 824, in find_all_candidates
    page_candidates = list(page_candidates_it)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\index\sources.py", line 134, in page_candidates
    yield from self._candidates_from_page(self._link)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\index\package_finder.py", line 783, in process_project_url
    html_page = self._link_collector.fetch_page(project_url)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\index\collector.py", line 512, in fetch_page
    return _get_html_page(location, session=self.session)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\index\collector.py", line 422, in _get_html_page
    resp = _get_html_response(url, session=session)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\index\collector.py", line 120, in _get_html_response
    resp = session.get(
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\requests\sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_internal\network\session.py", line 449, in request
    return super().request(method, url, *args, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\cachecontrol\adapter.py", line 53, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 696, in urlopen
    self._prepare_proxy(conn)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy
    conn.connect()
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\urllib3\connection.py", line 359, in connect
    conn = self._connect_tls_proxy(hostname, conn)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\urllib3\connection.py", line 500, in _connect_tls_proxy
    return ssl_wrap_socket(
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\ProgramData\Anaconda3\envs\clustering\lib\ssl.py", line 997, in _create
    raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_46606829/article/details/123738867

智能推荐

渲染流程_小伏羲的博客-程序员宅基地

(注:【D3D11游戏编程】学习笔记系列由CSDN作者BonChoix所写,转载请注明出处:http://blog.csdn.net/BonChoix,谢谢~)        3D图形学研究的基本内容,即给定场景的描述,包括各个物体的材质、纹理、坐标等,照相机的位置及朝向,光源等信息,计算其最终在二维的光栅化显示器上对应的显示结果。从最初的场景描述到最终的显示结果,这整个过程就是在

接口测试理论_Tester_Qin的博客-程序员宅基地_接口测试理论

1.接口测试的内容–系统现状快速迭代,快速发布版本多种系统架构共存敏捷开发模式与传统开发模式交替共存–服务要求更高效的测试手段更完善的服务保证2.软件接口–API应用程序编程接口:硬件的驱动程序,数据库系统的访问接口–GUI用户图形界面(人与软件之间的交互界面)–Http request接口(get,post,put delete等)–Webservice接口(soup,r...

手势识别方法收集_hukai7190的博客-程序员宅基地

参考自 https://github.com/xinghaochen/awesome-hand-pose-estimation1、Deep Hand Pose 2014年caffe框架Provides the source code for the deep learning components mentioned in “Depth-based hand pose estimation:...

SequoiaDB 与 Hive 集成_SequoiaDB2013的博客-程序员宅基地

SequoiaDB与Hadoop部署 SequoiaDB与Hadoop在物理上部署方案如下图所示,部署建议如下: l  SequoiaDB与Hadoop部署在相同的物理设备上,以减少Hadoop与SequoiaDB之间的网络数据传输; l  每个物理设备上都部署一个协调节点和多个数据节点,编目节点可选在任意三台物理设备各部署一个编目节点; SequoiaDB支持的Hiv

进击的雨燕-----------类型转换_dongchuangzhi1998的博客-程序员宅基地

详情转自:http://wiki.jikexueyuan.com/project/swift/chapter2/07_Closures.html类型转换可以判断实例的类型,也可以将实例看做是其父类或者子类的实例。类型转换在 Swift 中使用is和as操作符实现。这两个操作符提供了一种简单达意的方式去检查值的类型或者转换它的类型。你也可以用它来检查一个类是否实现了...

京东测开笔试题_qq_38131333的博客-程序员宅基地

1. 给定一个字符串s, 请计算输出含有连续两个s作为子串的最短字符串。 注意两个s可能有重叠部分。例如,&quot;ababa&quot;含有两个&quot;aba&quot;.输入描述 :输入包括一个字符串s,字符串长度length(1 ≤ length ≤ 50),s中每个字符都是小写字母.输出描述:输出一个字符串,即含有连续两个s作为子串的最短字符串。输入例子1:abracadabra输出例子2...

随便推点

Linux下Jmeter接口测试_画雪jiayou的博客-程序员宅基地

Linux环境下使用Jmeter,要使用到上篇文章中,最后保存的.jmx文件。首先在Linux环境下安装Jmeter环境,在进行下面的操作。一、修改.jmx文件,按照下图的描述,修改相应的参数 1、线程的设置 2、接口参数设置 3、结果查看设置...

Linux——基本命令介绍(2)_ddm01的博客-程序员宅基地

1.  绝对路径和相对路径1)  绝对路径:从根目录开始的路径【例如】    /etc/inittab        #根目录下的etc子目录中的inittab文件2)  相对路径:不以根目录开始,以相对于当前目录的路径指定一个文件【例如】    etc/inittab         #当前目录下etc子目录中的inittab文件2.  文件和目录的读写权限使用ls –l命令,前十位表示文件/目...

实现android wifi语音通话功能吗,Android下自写类似系统wifi管理功能的实现_tyotakuki的博客-程序员宅基地

经常有人问到关于Android下WIFI管理的问题,询问个中归于wifi的操作,下面我就写写如何在Android下实现类似Android系统自带wifi管理功能的步骤,通过这个的学习,相信关于android下wifi的操作,我们基本都能掌握了:第一、说说界面布局界面很简单: 顶部一个刷新按钮和一个WIFI开关下部一个listview,每一行就是一个扫描到的wifi信息,显示它的SSID、加密类型,...

windows下Mavlink Generator的安装_咆哮的蘑菇的博客-程序员宅基地_mavlink安装

Mavlink Generator的安装想要在stm32板子上移植mavlink协议,首先要安装Mavlink Generator,然后才能自定义mavlink协议,以下为在windows下Mavlink Generator的安装过程,按照该流程一步一步操作,一定可以成功。1、Windows系统安装python直接去python官网下载对应的安装包,双击运行安装包,一定要勾选“Add python to PATH”加入到环境变量中,其他默认下一步。安装完成后,进入CMD中,运行python -V或

LeetCode 热题 HOT 100 ------- 22. 括号生成(回溯,dfs)394. 字符串解码(回溯) 105. 从前序与中序遍历序列构造二叉树(递归)_slow is fast.的博客-程序员宅基地

题目105:从前序与中序遍历序列构造二叉树根据一棵树的前序遍历与中序遍历构造二叉树。注意:你可以假设树中没有重复的元素。/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeNode(int val) { this.val = val

【学习笔记】字符串算法汇总(待更新)_weixin_38166905的博客-程序员宅基地

【学习笔记】字符串算法汇总【大前言】\(To\) \(be\) \(continued...\)\[QAQ\]一.【字符串哈希(Hash)】\(To\) \(be\) \(continued...\)\[QAQ\]二.【最小表示法】\(To\) \(be\) \(continued...\)\[QAQ\]三.【Kmp】看毛片。\(To\) ...

推荐文章

热门文章

相关标签