{"id":2075,"date":"2026-03-12T21:51:36","date_gmt":"2026-03-12T13:51:36","guid":{"rendered":"http:\/\/www.huerpu.cc:7000\/?p=2075"},"modified":"2026-05-02T11:33:31","modified_gmt":"2026-05-02T03:33:31","slug":"jupyter%e5%9f%ba%e7%a1%80%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/www.huerpu.cc:7000\/?p=2075","title":{"rendered":"Jupyter\u57fa\u7840\u73af\u5883\u914d\u7f6e"},"content":{"rendered":"<h1>Jupyter\u57fa\u7840\u73af\u5883\u914d\u7f6e<\/h1>\n<pre><code class=\"language-shell\"># ========== \u57fa\u7840\u73af\u5883\u5b89\u88c5 ==========\n# \u66f4\u65b0apt\u6e90\u5e76\u5b89\u88c5Python3\u57fa\u7840\u7ec4\u4ef6\nsudo apt update && sudo apt install python3 python3-pip python3-venv -y\nsudo apt clean\n\n# ========== \u865a\u62df\u73af\u5883\u521b\u5efa\u4e0e\u6fc0\u6d3b ==========\n# \u521b\u5efa\u865a\u62df\u73af\u5883\uff08\u8def\u5f84\u7edf\u4e00\uff09\npython3 -m venv \/opt\/hep-jupyter\/venv\n# \u6fc0\u6d3b\u865a\u62df\u73af\u5883\nsource \/opt\/hep-jupyter\/venv\/bin\/activate\n\n# ========== pip\u4f18\u5316\u914d\u7f6e\uff08\u7edf\u4e00\u955c\u50cf\uff0c\u65e0\u9700\u91cd\u590d\u52a0-i\u53c2\u6570\uff09 ==========\n# \u5347\u7ea7pip\u5230\u6700\u65b0\u7248\u672c\npip install --upgrade pip\n# \u914d\u7f6epip\u9ed8\u8ba4\u4f7f\u7528\u963f\u91cc\u4e91\u955c\u50cf\uff08\u6c38\u4e45\u751f\u6548\uff0c\u540e\u7eed\u5b89\u88c5\u65e0\u9700\u52a0-i\uff09\npip config set global.index-url https:\/\/mirrors.aliyun.com\/pypi\/simple\/\npip config set global.trusted-host mirrors.aliyun.com\n\n# ========== \u6838\u5fc3\u4f9d\u8d56\u5305\u5b89\u88c5\uff08\u53bb\u91cd+\u5206\u7c7b\uff0c\u907f\u514d\u91cd\u590d\u5b89\u88c5\uff09 ==========\n# \u57fa\u7840\u6570\u636e\u79d1\u5b66\u5305\npip install numpy pandas matplotlib seaborn pillow scipy scikit-learn statsmodels\n# \u529e\u516c\/\u6570\u636e\u5e93\u76f8\u5173\npip install openpyxl pymysql sqlalchemy\n# \u53ef\u89c6\u5316\/\u4ea4\u4e92\u5de5\u5177\npip install pyecharts jupyterlab jupyter-echarts jupyterlab-toc jupyterlab-latex\n# \u56fe\u50cf\u5904\u7406\u76f8\u5173\npip install opencv-python imutils\n# \u53ef\u9009\u5de5\u5177\uff08Kaggle\u6570\u636e\u4e0b\u8f7d\uff09\npip install kaggle\n# \u663e\u793a\u8fdb\u5ea6\u6761\npip install tqdm\n# \u540e\u7aef\u6846\u67b6\npip install flask\n# jieba\u5206\u8bcd\npip install jieba\n# Gensim \u662fPython \u5f00\u6e90\u8f7b\u91cf NLP \u5e93\uff0c\u4e3b\u6253\u9ad8\u6548\u6d41\u5f0f\u5904\u7406\u6d77\u91cf\u6587\u672c\uff0c\u7528\u6765\u505a\u8bcd\u5411\u91cf\u8bad\u7ec3\u3001LDA \u4e3b\u9898\u5efa\u6a21\u548c\u6587\u6863\u8bed\u4e49\u76f8\u4f3c\u5ea6\u68c0\u7d22\npip install gensim\n\n# ========== \u6df1\u5ea6\u5b66\u4e60\u6846\u67b6\uff08\u4e8c\u9009\u4e00\uff0c\u6ce8\u91ca\u6389\u4e0d\u9700\u8981\u7684\u7248\u672c\uff09 ==========\n# --- CPU\u7248\u672c\uff08\u63a8\u8350\u65e0GPU\u73af\u5883\u4f7f\u7528\uff09 ---\npip install tensorflow\npip install torch torchvision torchaudio\n\n# --- GPU\u7248\u672c\uff08\u6709NVIDIA GPU\u4e14\u9700CUDA\u52a0\u901f\u65f6\u542f\u7528\uff0c\u6ce8\u91ca\u6389\u4e0a\u9762CPU\u7248\u672c\uff09 ---\n# pip install tensorflow[and-cuda]\n# pip install torch torchvision torchaudio --index-url https:\/\/download.pytorch.org\/whl\/cu121\n\n# ========== \u9a8c\u8bc1\u5b89\u88c5\uff08\u53ef\u9009\uff09 ==========\npython -c \"import numpy, pandas, tensorflow, torch; print('\u6838\u5fc3\u5305\u5b89\u88c5\u6210\u529f\uff01')\"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Jupyter\u57fa\u7840\u73af\u5883\u914d\u7f6e # ========== \u57fa\u7840\u73af\u5883\u5b89\u88c5 ========== # \u66f4\u65b0apt\u6e90\u5e76\u5b89 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-2075","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/2075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2075"}],"version-history":[{"count":5,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/2075\/revisions"}],"predecessor-version":[{"id":2177,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/2075\/revisions\/2177"}],"wp:attachment":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2075"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}