{"id":191,"date":"2018-01-07T17:27:27","date_gmt":"2018-01-07T09:27:27","guid":{"rendered":"http:\/\/www.inhhh.com\/blog\/?p=191"},"modified":"2018-01-08T13:46:24","modified_gmt":"2018-01-08T05:46:24","slug":"ubuntu-setup-python-and-tushare","status":"publish","type":"post","link":"http:\/\/www.inhhh.com\/blog\/?p=191","title":{"rendered":"ubuntu setup python and tushare"},"content":{"rendered":"<p>~$sudo apt-get install python-pip<\/p>\n<p>sudo apt-get install python-wheel<\/p>\n<p>~$pip install pandas\u00a0\u00a0 or sudo apt-get install python-pandas<\/p>\n<p>~$pip install lxml or sudo apt-get install python-lxml<\/p>\n<p>pip install tushare-1.1.0.whl<\/p>\n<p>\u56e0\u4e3alxml\u4f9d\u8d56\u7684\u5305\u5982\u4e0b:<\/p>\n<p>libxml2, libxml2-devel, libxlst, libxlst-devel, python-libxml2, python-libxslt<\/p>\n<p>\u6240\u4ee5\u5b89\u88c5\u6b65\u9aa4\u5982\u4e0b:<\/p>\n<p><strong>\u7b2c\u4e00\u6b65: \u5b89\u88c5 libxml2<\/strong><\/p>\n<ul>\n<li>$\u00a0<em>sudo apt-get install libxml2 libxml2-dev<\/em><\/li>\n<\/ul>\n<p><strong>\u7b2c\u4e8c\u6b65: \u5b89\u88c5 libxslt<\/strong><\/p>\n<ul>\n<li>$\u00a0<em>sudo apt-get install libxlst libxslt-dev<\/em><\/li>\n<\/ul>\n<p><strong>\u7b2c\u4e09\u6b65: \u5b89\u88c5 python-libxml2 \u548c python-libxslt<\/strong><\/p>\n<ul>\n<li>$\u00a0<em>sudo apt-get install python-libxml2 python-libxslt<\/em><\/li>\n<\/ul>\n<p><strong>\u7b2c\u56db\u6b65: \u5b89\u88c5 lxml<\/strong><\/p>\n<ul>\n<li>$\u00a0<em>sudo easy_install lxml<\/em><\/li>\n<\/ul>\n<p>~$pip install tushare<\/p>\n<p>http:\/\/www.bvbcode.com\/cn\/oqd0hsgr-2859690<\/p>\n<p>http:\/\/blog.csdn.net\/sxlwzl\/article\/details\/46744335<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>~$sudo apt-get install python-pip sudo apt-get install <\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"http:\/\/www.inhhh.com\/blog\/?p=191\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":8,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":200,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions\/200"}],"wp:attachment":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}