{"id":1999,"date":"2021-11-09T18:40:28","date_gmt":"2021-11-09T10:40:28","guid":{"rendered":"https:\/\/199604.com\/?p=1999"},"modified":"2021-11-09T18:40:28","modified_gmt":"2021-11-09T10:40:28","slug":"python%e7%a6%bb%e7%ba%bf%e6%96%ad%e7%bd%91%e6%83%85%e5%86%b5%e4%b8%8b%e5%ae%89%e8%a3%85numpy%e3%80%81pandas","status":"publish","type":"post","link":"https:\/\/199604.com\/1999","title":{"rendered":"Python\u79bb\u7ebf\u65ad\u7f51\u60c5\u51b5\u4e0b\u5b89\u88c5numpy\u3001pandas"},"content":{"rendered":"<h1>Python\u79bb\u7ebf\u65ad\u7f51\u60c5\u51b5\u4e0b\u5b89\u88c5numpy\u3001pandas<\/h1>\n<p><strong>\u8054\u7f51\u60c5\u51b5\u4e0b\u5728\u547d\u4ee4\u7ec8\u7aefCMD\u4e2d\u8f93\u5165<code>pip install numpy<\/code>\u5373\u53ef\u81ea\u52a8\u5b89\u88c5\uff0cpandas\u548cmatplotlib\u540c\u7406\u4e00\u6837\u65b9\u6cd5\u8fdb\u884c\u81ea\u52a8\u5b89\u88c5\u3002<\/strong><\/p>\n<p>\u4f46\u662f\u5462,\u96c6\u56e2\u670d\u52a1\u5668\u90fd\u662f\u4e0d\u901a\u5916\u7f51\u7684.\u56e0\u4e3apip\u662f\u884c\u4e0d\u901a\u53ea\u80fd\u901a\u8fc7\u79bb\u7ebf\u5b89\u88c5(\u4eca\u5929\u4e00\u4f4d\u540c\u4e8b\u6298\u817e\u4e00\u5929\u90fd\u6ca1\u90e8\u7f72\u4e0a\u53bb..\u53ea\u80fd\u8fd9\u8fb9\u5199\u4e2a\u6559\u7a0b\u544a\u8bc9\u4ed6\u4eec\u4e86&#8230;)<\/p>\n<blockquote><p>\n  PS : \u73af\u5883\u670d\u52a1\u5668\u4e0a\u5df2\u7ecf\u5b89\u88c5\u4e86Python\n<\/p><\/blockquote>\n<h3>1\u3001\u8f93\u5165python\u547d\u4ee4\u67e5\u770b\u672c\u5730Python\u7248\u672c\u3002<\/h3>\n<p><code>python -V<\/code><\/p>\n<pre><code class=\"language-shell line-numbers\">(base) [python_dev@mdw60 ~]$ python -V\nPython 3.8.5\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u5230\u670d\u52a1\u5668\u4e2d\u7684<strong>Python\u7248\u672c\u662f3.8.5<\/strong>\u3002<\/p>\n<p>\u4e14\u68c0\u67e5\u4e00\u4e0b\u670d\u52a1\u5668\u7cfb\u7edf\u7248\u672c\u53ca\u5176\u4f4d\u6570<\/p>\n<p><code>uname -a<\/code>\u548c<code>cat \/etc\/redhat-release<\/code><\/p>\n<pre><code class=\"language-shell line-numbers\">(base) [python_dev@mdw60 ~]$ uname -a\nLinux mdw60 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU\/Linux\n(base) [python_dev@mdw60 ~]$ cat \/etc\/redhat-release \nCentOS Linux release 7.5.1804 (Core) \n(base) [python_dev@mdw60 ~]$ \n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u51fa\u7cfb\u7edf\u662f<strong>Centos 7.5 + 64\u4f4d<\/strong><\/p>\n<h3>2.\u5f00\u59cb\u79bb\u7ebf\u5b89\u88c5numpy\u3001pandas<\/h3>\n<p>\u8fd9\u5728\u7740\u4e0b\u8f7d:https:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#pandas<\/p>\n<p>\u6216\u8005fq\u4e86\u7684\u53ef\u4ee5\u5728\u8fd9\u67e5\u8be2\u4e0b\u8f7d:https:\/\/pypi.org\/project (\u63a8\u8350\u4f7f\u7528\u8fd9\u4e2a&#8230;)<\/p>\n<h4>\u5b89\u88c5\u987a\u5e8f:<\/h4>\n<p>\u5b89\u88c5Pandas\u6240\u9700\u7684\u5305\u6709\uff1a<code>numpy, dateutil, pytz, setuptools<\/code>\uff0c\u8fd9\u4e9b\u4e5f\u90fd\u9700\u8981\u4e0b\u8f7d\u3002<\/p>\n<p>\u5176\u4e2d\u5b89\u88c5<code>python_dateutil<\/code>\u8fd8\u9700\u8981\u63d0\u524d\u5b89\u88c5<code>six<\/code>\u5305:<\/p>\n<ol>\n<li>numpy<\/li>\n<li>pytz<\/li>\n<li>setuptools<\/li>\n<li>six<\/li>\n<li>python_dateutil<\/li>\n<li>pandas<\/li>\n<\/ol>\n<p>\u6e05\u5355\u5982\u4e0b:<\/p>\n<pre><code class=\"language-txt line-numbers\">numpy-1.21.4-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl\npandas-1.3.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\npython_dateutil-2.8.2-py2.py3-none-any.whl\npytz-2021.3.tar.gz\nsetuptools-58.5.3.tar.gz\nsix-1.16.0.tar.gz\n<\/code><\/pre>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/qn.199604.com\/typoraImg\/image-20211109183602539.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/qn.199604.com\/typoraImg\/image-20211109183602539.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image-20211109183602539\" \/><\/div><\/p>\n<h3>3.\u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u6210\u529f:<\/h3>\n<p>\u4f7f\u7528<code>pip list<\/code>\u67e5\u770b\u5217\u8868:<\/p>\n<pre><code class=\"language-shell line-numbers\">(base) [python_dev@mdw60 pandas]$ pip list\nPackage                Version\n---------------------- -------------------\nbcrypt                 3.2.0\nbrotlipy               0.7.0\ncertifi                2020.6.20\ncffi                   1.14.3\nchardet                3.0.4\nconda                  4.9.2\nconda-package-handling 1.7.2\ncryptography           3.2.1\nidna                   2.10\nnumpy                  1.21.4\npandas                 1.3.4\nparamiko               2.7.2\npip                    20.2.4\nprettytable            2.1.0\npsycopg2-binary        2.8.6\npycosat                0.6.3\npycparser              2.20\nPyMySQL                1.0.2\nPyNaCl                 1.4.0\npyOpenSSL              19.1.0\nPySocks                1.7.1\npython-dateutil        2.8.2\npytz                   2021.3\nrequests               2.22.0\nruamel-yaml            0.15.87\nsetuptools             50.3.1.post20201107\nsix                    1.15.0\ntqdm                   4.51.0\nurllib3                1.25.11\nwcwidth                0.2.5\nwheel                  0.35.1\n(base) [python_dev@mdw60 pandas]$ \n<\/code><\/pre>\n<p>\u6216\u8005\u542f\u52a8python\uff1a<code>python<\/code><\/p>\n<p><code>import pandas as pds<\/code><\/p>\n<p>\u6ca1\u63d0\u793a\u51fa\u9519\uff0c\u5b89\u88c5\u6210\u529f,\u5982:<\/p>\n<pre><code class=\"language-shell line-numbers\">(base) [python_dev@mdw60 pandas]$ python \nPython 3.8.5 (default, Sep  4 2020, 07:30:14) \n[GCC 7.3.0] :: Anaconda, Inc. on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n&gt;&gt;&gt; import pandas as pds\n&gt;&gt;&gt; \n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Python\u79bb\u7ebf\u65ad\u7f51\u60c5\u51b5\u4e0b\u5b89\u88c5numpy\u3001pandas \u8054\u7f51\u60c5\u51b5\u4e0b\u5728\u547d\u4ee4\u7ec8\u7aefCMD\u4e2d\u8f93\u5165pip install [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[279],"tags":[328,329,236],"class_list":["post-1999","post","type-post","status-publish","format-standard","hentry","category-pyhton","tag-numpy","tag-pandas","tag-python"],"_links":{"self":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/1999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/comments?post=1999"}],"version-history":[{"count":1,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/1999\/revisions"}],"predecessor-version":[{"id":2000,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/1999\/revisions\/2000"}],"wp:attachment":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/media?parent=1999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/categories?post=1999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/tags?post=1999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}