【昊鼎王五】pip安装pymssql模块时报错“PEP 517”怎么解决?

背景

在https://blog.csdn.net/haoding205/article/details/103242102中已经讲到了如何安装pip工具,此篇就讲一个典型的安装第三方库时报错的解决方法。

报错信息

如下图:

[root@centos tmp]# pip3 install pymssql
Collecting pymssqlUsing cached https://files.pythonhosted.org/packages/4a/20/bcd4db9e7990b50e85280f0c9488c0a53f7e6bf9048203448d8e0f29a536/pymssql-3.0.3.tar.gzInstalling build dependencies ... doneGetting requirements to build wheel ... doneInstalling backend dependencies ... donePreparing wheel metadata ... done
Building wheels for collected packages: pymssqlBuilding wheel for pymssql (PEP 517) ... errorERROR: Command errored out with exit status 1:command: /usr/local/python3/bin/python3.7 /usr/local/python3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmplktlmv2pcwd: /tmp/pip-install-6x1763de/pymssqlComplete output (42 lines):running bdist_wheelrunning buildinstalling to build/bdist.linux-x86_64/wheelrunning install/tmp/pip-build-env-b2tk6mrs/overlay/lib/python3.7/site-packages/setuptools/dist.py:46: DistDeprecationWarning: Do not call this functionwarnings.warn("Do not call this function", DistDeprecationWarning)...(此处略去1000+字)
File "/usr/local/python3/lib/python3.7/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)File "/usr/local/python3/lib/python3.7/distutils/dist.py", line 985, in run_commandcmd_obj.run()File "setup.py", line 449, in runraise DeprecationWarning(msg)DeprecationWarning: The pymssql project has been discontinued.  To install the last working released version, use aversion specifier like "pymssql<3.0".  For details and alternatives see:https://github.com/pymssql/pymssql/issues/668----------------------------------------ERROR: Failed building wheel for pymssqlRunning setup.py clean for pymssql
Failed to build pymssql
ERROR: Could not build wheels for pymssql which use PEP 517 and cannot be installed directly
[root@centos tmp]

分析

遇到问题不要怕,也不要慌,沉着冷静,总有解决方法。
仔细看报错信息,突然有一条实际上已经告诉了答案。就是版本不匹配,
,那如何才能版本匹配呢?
需要低于3.0版本的pymssql才能安装。

解决命令

命令如下:

pip install "pymssql<3.0"
pip list

如下图:

总结

当报错信息是版本不匹配时,按照提示信息,输入正确的版本限制语法,安装就成功了。

好了,聪明如你,就讲到这里吧,有问题的话可以留言。

【昊鼎王五】pip安装pymssql模块时报错“PEP 517”怎么解决?相关推荐

  1. python pip安装pymssql_pip安装pymssql模块时报错“PEP 517”怎样处理

    pip安装pymssql模块时报错"PEP 517"怎样处理? 报错信息 如下图:[root@centos tmp]# pip3 install pymssqlCollecting ...

  2. python 安装 pymssql 库时报错

    python 安装 pymssql 库时报错 安装第三方库 pip install pymssql Traceback (most recent call last): File "c:\u ...

  3. python pip安装第三方库老是报错_Python使用pip安装第三方库时报错的解决方案

    报错1: PermissionError: [WinError 5] 报错2: Command... failed with error code 1 in .. 以上两种报错,解决较为简单,主要是权 ...

  4. python utils模块怎么安装_安装python模块时报错如何解决

    展开全部 前言: 这几天把python版本升级后,发现pip安装模32313133353236313431303231363533e58685e5aeb931333431356663块好多都报错(暂不 ...

  5. pip安装mysql-python模块报错:cannot find -lmysqlclient_r

    为什么80%的码农都做不了架构师?>>>    1.现象: gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7 ...

  6. Python在使用pip安装某个库时报错 Could not find a version that satisfies the requirement numpy

    问题描述:Python中在使用pip的下述命令安装第三方库numpy pip install -U numpy -i http://mirrors.aliyun.com/pypi/simple 出现警 ...

  7. pip安装第三方库报错Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None))

    pip安装第三方库报错Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) pip安装第三方库时 ...

  8. 昊鼎王五:如何安装蓝鲸智云v3.1.7社区版本之MYSQL?

    #昊鼎王五:如何安装蓝鲸智云v3.1.7社区版本之MYSQL? 安装"蓝鲸智云"社区版-记录-安装蓝鲸智云的MYSQL #Q.前提知识: 实验机器:centos7 bkce_src ...

  9. pip 安装模块时报错:ImportError: cannot import name ‘InvalidSchemeCombination‘ ......

    pip 安装模块时报错:ImportError: cannot import name 'InvalidSchemeCombination' from 'pip._internal.exception ...

最新文章

  1. i2c-tools dected -l
  2. hadoop-2.7.1+zookeeper-3.4.8+hbase-1.2.1+apache-hive-2.0.0完全分布式集群
  3. [CF718C] Sasha and Array
  4. 浅谈Listener、Filter、Servlet初始化顺序
  5. 软件工程工具图(软件开发过程中可能用到的工具图)
  6. 光环PMP 三模模拟题
  7. 我国计算机科学与技术发展历史,计算机科学与技术的发展趋势探析
  8. ArcGIS For Unity3D(一)—— 在Unity3D中开启ArcGIS
  9. 发改委指导意见保障大豆产业安全
  10. phpmywind目录结构
  11. Android视频监控!!!随时随地监控你的家庭
  12. 前缀树TrieNode
  13. LM07丨细聊期货横截面策略
  14. 最短路迪杰斯特拉回炉重造
  15. 跨域请求携带cookie
  16. Sql Server 强制大小写区分方法
  17. atrix 4g linux,这货还是手机?摩托神器Atrix 4G试玩图赏
  18. AMQ 虚拟topic
  19. Visual Studio是蝙蝠车,LINQPad是兰博基尼?这个比喻很秒
  20. python将object转换为float_将pypeas.Series从dtype对象转换为float,将错误转换为nans

热门文章

  1. Matlab按照二进制读写txt文件
  2. 浏览器显示“您与此网站之间建立的连接不安全”的解决方案
  3. 【转载】Aquanaut:水下变形金刚
  4. 第五章 澄清概念意义
  5. 浏览器被360劫持怎么办
  6. 报错:org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for localhos
  7. 数字化发展正在影响服装企业
  8. Struts 1与Struts 2区别
  9. 农村饮用水项目微信支付完整代码
  10. CC2630 7x7 更改为5X5