{"id":217,"date":"2022-10-18T23:36:39","date_gmt":"2022-10-18T15:36:39","guid":{"rendered":"https:\/\/www.yiyuanlt.cn\/?p=217"},"modified":"2022-10-18T23:36:39","modified_gmt":"2022-10-18T15:36:39","slug":"centos7%e4%b8%8b%e9%83%a8%e7%bd%b2mockingbird","status":"publish","type":"post","link":"https:\/\/www.yiyuanlt.cn\/index.php\/2022\/10\/18\/centos7%e4%b8%8b%e9%83%a8%e7%bd%b2mockingbird\/","title":{"rendered":"Centos7\u4e0b\u90e8\u7f72MockingBird"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>\u4e00\u3001\u5148\u5b89\u88c5wget\u548cgit<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>yum install wget git<\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.cnhack6.com\/usr\/uploads\/2022\/10\/1335919292.jpg\" alt=\"Screenshot_2022-10-12-02-05-45-984_com.sonelli.juicessh.jpg\" title=\"Screenshot_2022-10-12-02-05-45-984_com.sonelli.juicessh.jpg\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e8c\u30010.\u521b\u5efa\u5b58\u653epy3\u7684\u6587\u4ef6\u5939<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>mkdir \/usr\/local\/python3<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e8c\u30011.\u7136\u540e\u5b89\u88c5python3<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>cd \/usr\/local\/python3<br>wget&nbsp;<a href=\"https:\/\/www.python.org\/ftp\/python\/3.9.0\/Python-3.9.0.tgz\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/www.python.org\/ftp\/python\/3.9.0\/Python-3.9.0.tgz<\/a><br>tar -zxvf Python-3.9.0.tgz<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e8c\u30012.\u91cd\u8981\uff1a\u5b89\u88c5\u4f9d\u8d56\u53ca\u5f00\u53d1\u5e93\uff08\u5927\u90e8\u5206\u62a5\u9519\u7531\u6b64\u5f15\u8d77\uff09<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel python3-devel libffi-devel<\/p><p>yum -y groupinstall \"Development tools\"<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e09\u30011.\u8fdb\u5165\u6587\u4ef6\u5939<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>cd \/usr\/local\/python3\/Python-3.9.0<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e09\u30012.\u7f16\u8bd1\u53ca\u5b89\u88c5<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>.\/configure prefix=\/usr\/local\/python3 --with-ensurepip=install<br>make -j 4 &amp;&amp; make install<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u56db\u30011.\u5907\u4efd\u53ca\u521b\u5efa\u8f6f\u94fe\u63a5<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>mv \/usr\/bin\/python \/usr\/bin\/python.bak<br>ln -s \/usr\/local\/python3\/bin\/python3.9 \/usr\/bin\/python<br>python -V<br><strong>\u56db\u30012.\u66f4\u6539yum\u914d\u7f6e\uff0c\u4ee5\u514d\u540e\u7eed\u65e0\u6cd5\u6b63\u5e38\u4f7f\u7528<\/strong><br>vi \/usr\/bin\/yum<br>\u539f\uff1a#!\/usr\/bin\/python \u6539\uff1a#!\/usr\/bin\/python2<br>vi \/usr\/libexec\/urlgrabber-ext-down<br>\u539f\uff1a#! \/usr\/bin\/python \u6539\uff1a#! \/usr\/bin\/python2<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u56db\u30013.\u68c0\u6d4bpython2\u548cpython3<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>python2<br>python<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e94\u30011.\u5b89\u88c5Pytorch<\/strong><br><em>\u53ef\u81ea\u884c\u524d\u5f80putorch.org\u9009\u53d6\u5408\u9002\u7248\u672c\uff0c\u8fd9\u91cc\u6211\u91c7\u7528linux-pip-CPU\u7248\u672c<\/em><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>pip3 install torch torchvision torchaudio --extra-index-url&nbsp;<a href=\"https:\/\/download.pytorch.org\/whl\/cpu\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/download.pytorch.org\/whl\/cpu<\/a><\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e94\u30012.\u5347\u7ea7\u4e00\u4e0bpip\uff0c\u63d0\u793a\u91cc\u6709<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u516d\u3001\u5b89\u88c5Nux-Dextop\u6e90\u53caffmpeg<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>yum install epel-release &amp;&amp; rpm --import&nbsp;<a href=\"http:\/\/li.nux.ro\/download\/nux\/RPM-GPG-KEY-nux.ro\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >http:\/\/li.nux.ro\/download\/nux\/RPM-GPG-KEY-nux.ro<\/a>&nbsp;&amp;&amp; rpm -Uvh&nbsp;<a href=\"http:\/\/li.nux.ro\/download\/nux\/dextop\/el7\/x86_64\/nux-dextop-release-0-1.el7.nux.noarch.rpm\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >http:\/\/li.nux.ro\/download\/nux\/dextop\/el7\/x86_64\/nux-dextop-release-0-1.el7.nux.noarch.rpm<\/a><br>yum install ffmpeg ffmpeg-devel<\/p><p>\u9a8c\u8bc1\u4e00\u4e0b\uff1affmpeg -version<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e03\u3001\u8fd4\u56de\u4e0a\u7ea7\u76ee\u5f55\u5e76clone\u9879\u76ee\u5230\u672c\u5730<\/strong><br><em>\u6211\u8fd9\u91cc\u4e0a\u7ea7\u76ee\u5f55\u662f\/usr\/local\uff0c\u6240\u4ee5cd \/usr\/local<\/em><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>git clone&nbsp;<a href=\"https:\/\/github.com\/babysor\/MockingBird.git\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/github.com\/babysor\/MockingBird.git<\/a><br><em>\u7136\u540e\u5b89\u88c5\u4e00\u4e0brequirements<\/em><br>pip install -r requirements.txt<br><em>\u7136\u540e\u5b89\u88c5webrtcvad<\/em><br>pip install webrtcvad-wheels<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ps\uff1a\u5982\u679c\u63d0\u793a\u7f3a\u5c11\u4ec0\u4e48\u5305\uff0c\u8bf7\u8fd9\u6837\u5b89\u88c5<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>sudo python -m pip install xxx<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u516b\u3001\u542f\u52a8Web<\/strong><br><em>\u5148cd\u5230MockingBird\u6839\u76ee\u5f55\uff0c\u6211\u8fd9\u91cc\u662fcd \/usr\/local\/MockingBird<\/em><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>python web.py<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e5d\u3001\u4e00\u4e9b\u4f9d\u8d56\u7684\u5904\u7406<\/strong><br><em>\u6253\u5f00web\u9875\u9762\u540e\u53ef\u80fd\u51fa\u73b0\u5404\u79cd\u7206\u7ea2\uff0c\u4e00\u822c\u90fd\u662f\u7f3a\u5c11\u6a21\u5757\u5bfc\u81f4\u7684\uff0c\u4e0d\u77e5\u9053\u4ec0\u4e48\u539f\u56e0\uff0c\u53ef\u80fd\u662frequirements\u91cc\u6ca1\u7ed9\u5168\uff0c\u6211\u770b\u4e86\u4e00\u4e0b\u81ea\u5df1\u73af\u5883\u91cc\u4e00\u5171\u662f\u7f3a\u8fd9\u4e9b\u6a21\u5757\uff1a<\/em><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>sklearn<br>scipy<br>pandas<br>pillow<br>torch<br>librosa<br>matplotlib<br>unidecode<br>inflect<br>pypinyin<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e0b\u9762\u8fd9\u662fVC\u8bad\u7ec3\u6216\u5176\u4ed6\u9664AI\u62df\u97f3\u5916\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u7684\u5305<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>pyyaml<br>tensorboard<br>torch_complex<br>espnet<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u8fd8\u53ef\u80fd\u62a5\u4e00\u4e2a\u9519\u5c31\u662f\u627e\u4e0d\u5230mb.png\u4e4b\u7c7b\u7684\uff0c\u8def\u5f84\u600e\u4e48\u6539\u6211\u53d1\u73b0\u90fd\u6ca1\u7528\uff0c\u7b80\u5355\u7c97\u66b4\u70b9\uff0c\u76f4\u63a5\u628a\u8def\u5f84\u5220\u4e86\uff0cMockingBird\/mkgui\/base\/ui\/streamlit_ui\u6587\u4ef6\u4e0b\u7684848\u884c\u5220\u9664\u5c31\u884c<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.cnhack6.com\/usr\/uploads\/2022\/10\/588025806.jpg\" alt=\"mmexport1665537493008.jpg\" title=\"mmexport1665537493008.jpg\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u7136\u540e\u5c31\u80fd\u6b63\u5e38\u6253\u5f00\u5566<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.cnhack6.com\/usr\/uploads\/2022\/10\/2160372943.jpg\" alt=\"IMG_20221012_091855.jpg\" title=\"IMG_20221012_091855.jpg\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5341\u3001\u8bad\u7ec3\u6a21\u578b\u7684\u5bfc\u5165<\/strong><br><em>github\u9879\u76ee\u91cc\u4f5c\u8005\u6709\u7ed9\u51fa\u51e0\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u76f4\u63a5\u4ece\u5ea6\u76d8download\u4e0b\u6765\uff0c\u7136\u540e\u4e0a\u4f20\u5230MockingBird\/synthesizer\/saved_models\u6587\u4ef6\u5939\u5c31\u884c\uff0c\u6ca1\u6709saved_models\u53ef\u4ee5\u81ea\u5df1mkdir\u4e00\u4e0b\uff0c\u8fd9\u91cc\u63a8\u8350\u4f7f\u7528finalshell\u8fde\u63a5ssh\uff0c\u53ef\u89c6\u5316\u64cd\u4f5c\u6587\u4ef6\u5939\uff0c\u9002\u5408\u65b0\u4eba\u4f7f\u7528<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.cnhack6.com\/usr\/uploads\/2022\/10\/433680305.jpg\" alt=\"IMG_20221012_092344.jpg\" title=\"IMG_20221012_092344.jpg\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.cnhack6.com\/usr\/uploads\/2022\/10\/3627071912.jpg\" alt=\"mmexport1665539773454.jpg\" title=\"mmexport1665539773454.jpg\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e0b\u7bc7\u6587\u7ae0\u4f1a\u8bb2\u5230\u5982\u4f55\u8bad\u7ec3\u6a21\u578b,\u66f4\u65b0\u65f6\u95f4...\u5927\u6982\u4f1a\u66f4\u65b0\u7684\u5427?<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u5148\u5b89\u88c5wget\u548cgit yum install wget git \u4e8c\u30010.\u521b\u5efa\u5b58\u653epy3\u7684\u6587\u4ef6\u5939 mkdir \/usr\/loc &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-217","post","type-post","status-publish","format-standard","hentry","category-sort"],"_links":{"self":[{"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":1,"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":218,"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/posts\/217\/revisions\/218"}],"wp:attachment":[{"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yiyuanlt.cn\/index.php\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}