{"id":93902,"date":"2020-04-19T04:40:43","date_gmt":"2020-04-18T20:40:43","guid":{"rendered":"http:\/\/4563.org\/?p=93902"},"modified":"2020-04-19T04:40:43","modified_gmt":"2020-04-18T20:40:43","slug":"%e8%af%b7%e9%97%ae%ef%bc%8c-import-pymssql-%e5%a6%82%e4%bd%95%e5%86%99%e6%89%8d%e4%b8%8d%e4%bc%9a%e6%8f%90%e7%a4%ba%e9%94%99%e8%af%af%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=93902","title":{"rendered":"\u8bf7\u95ee\uff0c import pymssql \u5982\u4f55\u5199\u624d\u4e0d\u4f1a\u63d0\u793a\u9519\u8bef\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u95ee\uff0c import pymssql \u5982\u4f55\u5199\u624d\u4e0d\u4f1a\u63d0\u793a\u9519\u8bef\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lpd743663 <\/span>  <span><i><\/i> 38<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898\uff1a\u8fd0\u8425\uff0cPython \u65b0\u624b\uff0c\u5728\u5bfc\u5165\u6570\u636e\u7684\u65f6\u5019\u9047\u5230\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u73af\u5883\uff1aPython 3.8 + Windows 10 + Jupyter Notebook (Anaconda3)<\/p>\n<p>\u4f7f\u7528 import pymssql \u7684\u65f6\u5019\uff0c\u51fa\u73b0\u4ee5\u4e0b\u63d0\u793a\uff1a<\/p>\n<pre><code>C:ProgramDataAnaconda3libsite-packagesipykernel_launcher.py:3: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working    This is separate from the ipykernel package so we can avoid doing imports until <\/code><\/pre>\n<p>Google \u7684\u7b54\u6848\uff0c\u8981\u4e48\u8bf4\u53ea\u662f\u63d0\u9192\uff0c\u4e0d\u9700\u8981\u5904\u7406\u3002Github \u4e0a\u7684\u7b54\u6848\u770b\u4e0d\u61c2\uff0c\u4f3c\u4e4e\u662f\u5df2\u7ecf\u89e3\u51b3\u95ee\u9898\u4e86\uff0c\u4f46\u662f\u6211\u5347\u7ea7\u5230\u6700\u65b0\u7248\u4e86\uff0c\u8fd8\u662f\u6709\u63d0\u9192\u3002<\/p>\n<p>\u611f\u8c22<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1177002\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ClericPy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u79cd warning \u5c31\u662f\u5feb\u8fc7\u671f\u7684\u4e0d\u5411\u540e\u517c\u5bb9\u7684\u8bed\u6cd5\u505a\u4e86\u4e2a\u8b66\u544a, pytest \u4ec0\u4e48\u7684\u7ecf\u5e38\u6709\u8fd9\u79cd<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5<br \/>1. \u66f4\u65b0 pymysql \u8fd9\u4e2a\u8b66\u544a\u7684\u5e93, \u4e00\u822c\u6709\u4eba\u7ef4\u62a4\u7684\u8bdd, \u4f5c\u8005\u4f1a\u56e0\u4e3a\u8fd9 issue \u66f4\u65b0\u7248\u672c<br \/>2. \u81ea\u5df1\u53bb\u9b54\u6539\u8fd9\u6bb5\u8bed\u6cd5, \u56e0\u4e3a 3.9 \u7684 abc \u53ea\u80fd\u4ece abc \u8fd9\u4e2a\u5185\u7f6e\u6a21\u5757\u91cc\u5bfc\u5165, collections \u91cc\u4e0d\u518d\u63d0\u4f9b\u4e86, \u4f46\u662f\u4e0d\u5efa\u8bae\u81ea\u5df1\u53bb\u6539, \u9664\u975e\u539f\u4f5c\u8005\u4e0d\u66f4\u65b0\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1177003\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : frostming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f3a\u884c\u4e0d\u8ba9\u5b83\u8b66\u544a\u4e5f\u53ef\u4ee5\u7684<\/p>\n<p>import warnings<br \/>warnings.simplefilter(&#8216;ignore&#8217;, DeprecationWarning)<\/p>\n<p>import pymssql                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1177004\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lpd743663 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ClericPy <\/p>\n<p>\u62b1\u6b49\uff0c\u524d\u9762\u6ca1\u6709\u8868\u8fbe\u6e05\u695a\u3002<\/p>\n<p>\u8bf7\u95ee\uff1a<\/p>\n<p>\u5728 Python 3.9 \u7248\u672c\u4e4b\u540e import pymssql \u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u5417\uff1f\u9700\u4e0d\u9700\u8981\u6362\u4e2a\u8bed\u6cd5\u4e4b\u7c7b\u7684\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1177005\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lpd743663 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @frostming \u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1177006\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ClericPy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lpd743663 #3 \u524d\u9762\u624b\u6b8b\u6253\u4e86\u4e2a pymysql&#8230; \u5b9e\u9645\u4e0a\u662f pymssql<\/p>\n<p>\u53ef\u4ee5\u770b\u5b83\u4eec\u5bb6\u5b98\u65b9<\/p>\n<p>https:\/\/github.com\/pymssql\/pymssql\/issues\/628<\/p>\n<p>\u6709\u4eba\u63d0\u8fc7\u8fd9\u4e2a\u95ee\u9898\u4e86, \u4ee3\u7801\u4e5f\u66f4\u65b0\u5408\u5e76\u4e86, \u6240\u4ee5\u5347\u7ea7\u7248\u672c\u5427<\/p>\n<p>Anaconda3 \u6211\u6ca1\u600e\u4e48\u7528\u8fc7, \u4f60\u770b\u770b\u91cc\u9762\u600e\u4e48\u5347\u7ea7 pymssql \u7248\u672c                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1177007\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lpd743663 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ClericPy \u597d\u7684\uff0c\u6211\u53bb\u8bd5\u4e00\u4e0b\uff0c\u611f\u8c22\u56de\u7b54                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1177008\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : enrolls <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             #2 \u8bc1\u89e3\u3002Flask-admin \u91cc\u9762\u5f88\u591a Fields missing from ruleset                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u95ee\uff0c import pymssq&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93902"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93902"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93902\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93902"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}