{"id":12357,"date":"2025-04-18T19:27:24","date_gmt":"2025-04-18T11:27:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/12357.html"},"modified":"2025-04-18T19:27:24","modified_gmt":"2025-04-18T11:27:24","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%a6%bb%e7%ba%bf%e9%83%a8%e7%bd%b2deepseek","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/12357.html","title":{"rendered":"\u670d\u52a1\u5668\u79bb\u7ebf\u90e8\u7f72DeepSeek"},"content":{"rendered":"<h2>\u76ee\u6807<\/h2>\n<p>\u672c\u6b21\u90e8\u7f72\u7684\u76ee\u6807\u662f\u5728\u672c\u5730\u670d\u52a1\u5668\u4e0a\u90e8\u7f72DeepSeek\u3002\u4f46\u662f\u8be5\u670d\u52a1\u4e0d\u80fd\u8fde\u63a5\u5916\u7f51&#xff0c;\u56e0\u6b64\u53ea\u80fd\u4f7f\u7528\u79bb\u7ebf\u90e8\u7f72\u7684\u65b9\u5f0f\u3002\u4e3a\u4e86\u4e00\u6b21\u5b8c\u6210\u90e8\u7f72\u3002\u73b0\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u8fdb\u884c\u5c1d\u8bd5\u3002<\/p>\n<h2>\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u5c1d\u8bd5<\/h2>\n<p>\u4e91\u670d\u52a1\u5668\u914d\u7f6e<\/p>\n<ul>\n<li>CentOS7<\/li>\n<li>2080Ti 11GB<\/li>\n<\/ul>\n<h3>\u5b89\u88c5\u51c6\u5907<\/h3>\n<p>1\u3001\u4e0a\u4f20iso\u5e76\u914d\u7f6e\u4e3a\u672c\u5730yum\u6e90 \u5b89\u88c5\u524d\u5148\u5c06\u7f51\u76d8\u4e2d\u7684epel\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u5e76\u914d\u7f6e\u6210\u672c\u5730iso \u6587\u4ef6\u540d\u4e3a&#xff1a;centos7-epel.iso \u4e0a\u4f20\u540e&#xff0c;\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55<\/p>\n<p><span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/opt\/epel\/<br \/>\n<span class=\"token function\">mount<\/span> <span class=\"token parameter variable\">-o<\/span> loop \/xxx\/xxx\/centos7-epel.iso \/opt\/epel\/<\/p>\n<p>\u914d\u7f6eepel\u4e3a\u672c\u5730yum\u6e90<\/p>\n<p><span class=\"token function\">touch<\/span> \/etc\/yum.repos.d\/epel.repo<br \/>\n<span class=\"token function\">vim<\/span> \/etc\/yum.repos.d\/epel.repo<\/p>\n<p>\u586b\u5199\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>epel<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token assign-left variable\">name<\/span><span class=\"token operator\">&#061;<\/span>epel<br \/>\n<span class=\"token assign-left variable\">baseurl<\/span><span class=\"token operator\">&#061;<\/span>file:\/\/\/opt\/epel\/<br \/>\n<span class=\"token assign-left variable\">gpgcheck<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><br \/>\n<span class=\"token assign-left variable\">enable<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span><\/p>\n<p>\u4fdd\u5b58<\/p>\n<p>yum clean all<br \/>\nyum repolist<br \/>\nyum makecache<\/p>\n<p>\u6267\u884c\u4ee5\u4e0a\u547d\u4ee4\u6e05\u7406\u5e76\u91cd\u65b0\u914d\u7f6e\u7f13\u5b58\u4fe1\u606f 2\u3001\u5b89\u88c5cuda\u4e0e\u9a71\u52a8 nvidia-smi \u547d\u4ee4 \u663e\u793acuda\u4e0e\u9a71\u52a8\u5373\u53ef<\/p>\n<p>3\u3001\u5b89\u88c5ollama \u4e0b\u8f7d\u767e\u5ea6\u76d8\u4e2d\u6587\u4ef6&#xff0c;\u5176\u4e2d<\/p>\n<p>install.sh<br \/>\nollama-linux-amd64.tgz<\/p>\n<p>\u4e24\u4e2a\u6587\u4ef6\u662follama\u7684\u79bb\u7ebf\u5b89\u88c5\u6587\u4ef6 \u5c06\u4e24\u4e2a\u6587\u4ef6\u653e\u5728\u540c\u4e00\u4e2a\u76ee\u5f55&#xff0c;\u8d4b\u4e88install.sh\u6267\u884c\u6743\u9650\u4e4b\u540e\u8fd0\u884c\u5373\u53ef<\/p>\n<p><span class=\"token function\">chmod<\/span> u&#043;x install.sh<br \/>\n.\/install.sh<\/p>\n<p>\u5b89\u88c5\u597d\u4e4b\u540e&#xff0c;\u6267\u884c\u5982\u4e0b\u547d\u4ee4&#xff0c;\u53ef\u4ee5\u770b\u5230ollama\u7684\u5b89\u88c5\u7248\u672c\u5219\u8868\u793a\u5b89\u88c5\u6210\u529f<\/p>\n<p>ollama serve<br \/>\nollama <span class=\"token parameter variable\">-v<\/span><br \/>\nollama version is <span class=\"token number\">0.5<\/span>.7<\/p>\n<p>ollama\u4e0edocker\u7c7b\u4f3c\u3002\u53ef\u4ee5\u901a\u8fc7\u2013help\u6765\u67e5\u770b\u5e2e\u52a9&#xff0c;\u8fd9\u91cc\u4e0d\u591a\u4ecb\u7ecd<\/p>\n<p>4\u3001\u5b89\u88c5ffmpeg,open-webui\u9700\u8981 \u5c06ffmpeg\u5b89\u88c5\u5305\u4f20\u8f93\u5230\u90e8\u7f72\u670d\u52a1\u5668ffmpeg-5.1.tar.gz \u89e3\u538b\u5b89\u88c5<\/p>\n<p><span class=\"token function\">tar<\/span> zcvf ffmpeg-5.1.tar.gz<br \/>\n<span class=\"token builtin class-name\">cd<\/span> ffmpeg-5.1<br \/>\n.\/configure &#8211;disable-x86asm<br \/>\n<span class=\"token function\">make<\/span> <span class=\"token parameter variable\">-j<\/span> <span class=\"token number\">40<\/span><br \/>\n<span class=\"token function\">make<\/span> <span class=\"token function\">install<\/span><\/p>\n<h3>\u4e0b\u8f7d\u6a21\u578b<\/h3>\n<p>\u7531\u4e8e\u662f\u79bb\u7ebf\u5b89\u88c5&#xff0c;\u65e0\u6cd5\u8054\u7f51&#xff0c;\u56e0\u6b64\u4e5f\u65e0\u6cd5\u901a\u8fc7\u90e8\u7f72\u670d\u52a1\u5668\u76f4\u63a5\u4e0b\u8f7d\u6a21\u578b<\/p>\n<p>\u8fd9\u65f6\u5019&#xff0c;\u6211\u4eec\u9700\u8981\u4f7f\u7528\u53ef\u4ee5\u8054\u7f51\u7684linux\u8bbe\u5907\u4e0b\u8f7d\u6a21\u578b&#xff0c;\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7b14\u8005\u7684\u94fe\u63a5\u63d0\u4f9b\u7684\u4e0b\u8f7d\u597d\u7684\u6a21\u578b\u6587\u4ef6 deepseek-r1-32b-models.tar.gz<\/p>\n<p>1\u3001\u5982\u4f55\u81ea\u5df1\u4e0b\u8f7d\u6a21\u578b(\u5728\u53ef\u8054\u7f51\u7684\u673a\u5668\u4e0a)<\/p>\n<p>\u5148\u4fee\u6539ollama\u7684\u5b58\u50a8\u4f4d\u7f6e&#xff0c;\u7f16\u8f91\u4e0b\u9762\u7684\u6587\u4ef6<\/p>\n<p><span class=\"token function\">vim<\/span> \/etc\/systemd\/system\/ollama.service<\/p>\n<p>\u5728[Service]\u53c2\u6570\u9879\u4e2d\u589e\u52a0\u4e0b\u9762\u4e00\u884c&#xff0c;\u5177\u4f53\u76ee\u5f55\u53ef\u4ee5\u81ea\u5df1\u5b9a\u4e49&#xff0c;\u7b14\u8005\u4f7f\u7528\u7684\u662f\/opt\/ai\/models<\/p>\n<p><span class=\"token assign-left variable\">Environment<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;OLLAMA_MODELS&#061;\/opt\/ai\/models&#034;<\/span><\/p>\n<p>\u5c06models\u76ee\u5f55\u8bbe\u7f6e\u5c5e\u4e3b&#xff0c;\u5fc5\u987b\u505a&#xff0c;\u5426\u5219ollama\u65e0\u6cd5\u542f\u52a8<\/p>\n<p><span class=\"token function\">chown<\/span> ollama:ollama \/opt\/ai\/models <span class=\"token parameter variable\">-R<\/span><\/p>\n<p>\u6216\u8005<\/p>\n<p><span class=\"token function\">chown<\/span> a10:a10 \/opt\/ai\/models <span class=\"token parameter variable\">-R<\/span><\/p>\n<p>\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u5e76\u91cd\u542follama<\/p>\n<p>systemctl daemon-reload<br \/>\nsystemctl restart ollama<\/p>\n<p>\u7136\u540e\u901a\u8fc7<\/p>\n<p>ollama run deepseek-r1:32b<\/p>\n<p>\u4e0b\u8f7d\u6a21\u578b&#xff0c;\u5728\u8fdb\u5ea6\u6761\u8d70\u5b8c\u540e&#xff0c;\u6a21\u578b\u4e0b\u8f7d\u5b8c\u6210&#xff0c;\u5b58\u50a8\u5728\/opt\/ai\/models\u76ee\u5f55\u4e2d<\/p>\n<p>\u6253\u5305models\u76ee\u5f55&#xff0c;\u5e76\u5c06\u6574\u4e2a\u76ee\u5f55\u8fc1\u79fb\u5230\u90e8\u7f72\u7684\u670d\u52a1\u5668\u5373\u53ef<\/p>\n<p>2\u3001\u5982\u4f55\u4f7f\u7528\u7b14\u8005\u63d0\u4f9b\u7684\u5df2\u7ecf\u4e0b\u8f7d\u7684\u6a21\u578b&#xff0c;\u540c\u65f6\u4e5f\u662f1\u7684\u5ef6\u7eed<\/p>\n<p>\u5728\u79bb\u7ebf\u90e8\u7f72\u670d\u52a1\u5668\u4e0a&#xff0c;\u4fee\u6539ollama\u7684service\u6587\u4ef6\u6307\u5b9amodels\u76ee\u5f55<\/p>\n<p>\u7b14\u8005\u4f7f\u7528\u4e86\u548c\u4e0b\u8f7d\u670d\u52a1\u5668\u76f8\u540c\u7684\u76ee\u5f55<\/p>\n<p><span class=\"token assign-left variable\">Environment<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;OLLAMA_MODELS&#061;\/opt\/ai\/models&#034;<\/span><\/p>\n<p>\u5c06models\u6253\u5305\u6587\u4ef6\u4f20\u8f93\u8fc7\u6765&#xff0c;\u89e3\u538b\u8986\u76d6<\/p>\n<p>ollama list<\/p>\n<p>\u5373\u53ef\u770b\u5230\u6a21\u578b \u8fd9\u65f6\u5019&#xff0c;\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5373\u53ef\u8fd0\u884c\u6a21\u578b<\/p>\n<p>ollama run deepseek-r1:32b<\/p>\n<p>\u8fd0\u884c\u547d\u4ee4\u540e\u5904\u4e8eterminal\u72b6\u6001&#xff0c;\u53ef\u76f4\u63a5\u63d0\u95ee&#xff0c;\u6a21\u578b\u4f1a\u53cd\u9988\u5bf9\u5e94\u7ed3\u679c<\/p>\n<h3>\u4f7f\u7528open-webui\u652f\u6301deepseek\u56fe\u5f62\u754c\u9762\u53ca\u4fbf\u6377\u8bbf\u95ee<\/h3>\n<p>1\u3001python<\/p>\n<p>\u5fc5\u987b\u4f7f\u75283.11\u7248\u672c&#xff0c;\u5982\u679c\u4f7f\u7528\u5176\u4ed6\u7248\u672c&#xff0c;\u5219\u4f1a\u51fa\u73b0\u5b89\u88c5\u7f3a\u5305\u7684\u95ee\u9898 2\u3001pip<\/p>\n<p>\u5982\u679c\u6709\u672c\u5730pip\u6e90\u6700\u597d&#xff0c;\u5982\u679c\u6ca1\u6709&#xff0c;\u53ef\u4f7f\u7528\u7b14\u8005\u63d0\u4f9b\u7684\u5df2\u7ecf\u4e0b\u8f7d\u597d\u7684whl\u6587\u4ef6<\/p>\n<p>open-webui-whl-offline.tar.gz<\/p>\n<p>\u81f3\u4e8e\u5982\u4f55\u672c\u5730\u5b89\u88c5\u8fd9\u4e9bwhl\u6587\u4ef6&#xff0c;\u8bf7\u81ea\u884c\u767e\u5ea6\u3002\u8fd9\u91cc\u4e0d\u591a\u4ecb\u7ecd<\/p>\n<p>3\u3001\u5b89\u88c5\u597dopen-webui\u4e4b\u540e\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p>export OLLAMA_BASE_URL&#061;http:\/\/127.0.0.1:11434 export OPENAI_API_BASE_URL&#061;None export OPENAI_API_KEY&#061;None \u4ee5\u4e0a\u4e09\u4e2a\u73af\u5883\u53d8\u91cf\u7684\u610f\u601d\u5206\u522b\u662f \u8bbe\u7f6e\u672c\u5730ollama\u7684\u63a5\u53e3&#xff0c;\u5c06openai\u7684\u4e00\u4e9b\u914d\u7f6e\u53d6\u6d88&#xff0c;\u56e0\u4e3a\u662f\u79bb\u7ebf\u6a21\u5f0f&#xff0c;\u65e0\u6cd5\u8fde\u63a5openai&#xff0c;\u5207\u8bb0\u8bbe\u7f6e&#xff0c;\u5426\u5219open-webui\u5f88\u5bb9\u6613\u767d\u5c4f<\/p>\n<p>4\u3001\u542f\u52a8open-webui \u5982\u679c\u4f60\u5728\u5b89\u88c5python 3.11\u7684\u7248\u672c\u7684\u65f6\u5019&#xff0c;\u5c06python 3.11\u7684bin\u76ee\u5f55\u914d\u7f6e\u5230\u4e86PATH\u4e2d&#xff0c;\u5219 open-webui\u53ef\u76f4\u63a5\u6267\u884c&#xff0c;\u5426\u5219\u9700\u8981\u5230python 3.11 \u7684bin\u76ee\u5f55\u4e0b\u67e5\u627e\u5230open-webui\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6<\/p>\n<p>\u542f\u52a8open-webui<\/p>\n<p>open-webui serve<\/p>\n<p>\u9700\u8981\u7b49\u3002\u7b14\u8005\u4e5f\u4e0d\u662f\u5f88\u6e05\u695a&#xff0c;\u7b49\u4e86\u5927\u6982\u4e00\u5206\u949f\u624d\u542f\u52a8\u6210\u529f&#xff0c;\u5927\u6982\u7387\u8fd8\u662f\u6ca1\u8054\u7f51\u7684\u95ee\u9898<\/p>\n<p>\u770b\u5230\u5982\u4e0binfo\u4fe1\u606f&#xff0c;\u5219\u8868\u793aopen-webui\u542f\u52a8\u6210\u529f <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112723-6802371bab7e2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u672c\u5730\u670d\u52a1\u5668<\/h2>\n<p>\u672c\u5730\u670d\u52a1\u5668\u5df2\u7ecf\u6709CUDA\u4e86&#xff0c;\u5e76\u4e14\u662f12.4&#xff0c;CentOS7\u80fd\u652f\u6301\u7684\u6700\u9ad8\u7248\u672c \u672c\u5730\u5df2\u7ecf\u6709ollama\u4e86\u3002\u4f46\u662f\u5728\u90e8\u7f72\u8fc7\u7a0b\u4e2d\u7531\u4e8eollma\u7248\u672c\u4f4e\u3002\u5e76\u4e0d\u652f\u6301deepseek-r1 70b\u6a21\u578b\u4e86<\/p>\n<p>\u6240\u6709\u6587\u4ef6\u4e0a\u4f20\u5230 \/home\/a10\/Downloads\u4e0b\u4e86<\/p>\n<h3>1\u3001ollma\u5347\u7ea7<\/h3>\n<p>\u4e0b\u8f7d\u767e\u5ea6\u76d8\u4e2d\u6587\u4ef6&#xff0c;\u5176\u4e2d<\/p>\n<p>install.sh<br \/>\nollama-linux-amd64.tgz<\/p>\n<p>\u4e24\u4e2a\u6587\u4ef6\u662follama\u7684\u79bb\u7ebf\u5b89\u88c5\u6587\u4ef6<\/p>\n<p>\u5c06\u4e24\u4e2a\u6587\u4ef6\u653e\u5728\u540c\u4e00\u4e2a\u76ee\u5f55&#xff0c;\u8d4b\u4e88install.sh\u6267\u884c\u6743\u9650\u4e4b\u540e\u8fd0\u884c\u5373\u53ef<\/p>\n<p><span class=\"token function\">chmod<\/span> u&#043;x install.sh<br \/>\n.\/install.sh<\/p>\n<p>\u5b89\u88c5\u597d\u4e4b\u540e&#xff0c;\u6267\u884c\u5982\u4e0b\u547d\u4ee4&#xff0c;\u53ef\u4ee5\u770b\u5230ollama\u7684\u5b89\u88c5\u7248\u672c\u5219\u8868\u793a\u5b89\u88c5\u6210\u529f<\/p>\n<p>ollama serve<br \/>\nollama <span class=\"token parameter variable\">-v<\/span><br \/>\nollama version is <span class=\"token number\">0.5<\/span>.7<\/p>\n<p>ollama\u4e0edocker\u7c7b\u4f3c\u3002\u53ef\u4ee5\u901a\u8fc7\u2013help\u6765\u67e5\u770b\u5e2e\u52a9&#xff0c;\u8fd9\u91cc\u4e0d\u591a\u4ecb\u7ecd<\/p>\n<h3>2\u3001deepseek\u6a21\u578b\u90e8\u7f72<\/h3>\n<p>\/home\/a10\/ \u4e0b\u521b\u5efa deepseek\u6587\u4ef6\u5939<\/p>\n<h4>1\u3001\u4e0a\u4f20 deepseek-r1-70b-models.tar.gz<\/h4>\n<p>\u89e3\u538b\u6587\u4ef6\u5939<\/p>\n<h4>2\u3001\u4fee\u6539ollama\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>vim \/etc\/systemd\/system\/ollama.service<\/p>\n<p>\u4fee\u6539Environment&#061;\u201cOLLAMA_MODELS&#061;\/home\/a10\/deepseek\/models\u201d<\/p>\n<p><span class=\"token punctuation\">[<\/span>Unit<span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token assign-left variable\">Description<\/span><span class=\"token operator\">&#061;<\/span>Ollama Service<\/p>\n<p><span class=\"token assign-left variable\">After<\/span><span class=\"token operator\">&#061;<\/span>network-online.target<\/p>\n<p><span class=\"token punctuation\">[<\/span>Service<span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token assign-left variable\">ExecStart<\/span><span class=\"token operator\">&#061;<\/span>\/usr\/bin\/ollama serve<\/p>\n<p><span class=\"token assign-left variable\">User<\/span><span class=\"token operator\">&#061;<\/span>ollama<\/p>\n<p><span class=\"token assign-left variable\">Group<\/span><span class=\"token operator\">&#061;<\/span>ollama<\/p>\n<p><span class=\"token assign-left variable\">Restart<\/span><span class=\"token operator\">&#061;<\/span>always<\/p>\n<p><span class=\"token assign-left variable\">RestartSec<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">3<\/span><\/p>\n<p><span class=\"token assign-left variable\">Environment<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;OLLAMA_HOST&#061;0.0.0.0:11434&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">Environment<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;OLLAMA_MODELS&#061;\/home\/a10\/deepseek\/models&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">Environment<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;OLLAMA_KEEP_ALIVE&#061;-1&#034;<\/span><br \/>\n<span class=\"token assign-left variable\">Environment<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;CUDA_VISIBLE_DEVICES&#061;0,1,2,3,4,5&#034;<\/span><br \/>\n<span class=\"token comment\">#Environment&#061;&#034;CUDA_VISIBLE_DEVICES&#061;0,1,2,3&#034;<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>Install<span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token assign-left variable\">WantedBy<\/span><span class=\"token operator\">&#061;<\/span>default.target<\/p>\n<p>\u5c06models\u76ee\u5f55\u8bbe\u7f6e\u5c5e\u4e3b&#xff0c;\u5fc5\u987b\u505a&#xff0c;\u5426\u5219ollama\u65e0\u6cd5\u542f\u52a8<\/p>\n<p><span class=\"token function\">chown<\/span> a10:a10 \/home\/a10\/deepseek\/models <span class=\"token parameter variable\">-R<\/span><\/p>\n<p>\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u5e76\u91cd\u542follama<\/p>\n<p>systemctl daemon-reload<br \/>\nsystemctl restart ollama<\/p>\n<p>\u67e5\u770b deepseek\u6a21\u578b\u662f\u5426\u5b58\u5728<\/p>\n<p>ollama list<\/p>\n<p>\u5b58\u5728&#xff0c;\u8fd0\u884c\u5373\u53ef<\/p>\n<p>ollama run deepseek-r1:70b<\/p>\n<p>\u8fd0\u884c\u547d\u4ee4\u540e\u5904\u4e8eterminal\u72b6\u6001&#xff0c;\u53ef\u76f4\u63a5\u63d0\u95ee&#xff0c;\u6a21\u578b\u4f1a\u53cd\u9988\u5bf9\u5e94\u7ed3\u679c<\/p>\n<p>ollama \u53ef\u4ee5\u901a\u8fc7 http:\/\/\u670d\u52a1\u5668ip:11434\/ \u6d4b\u8bd5\u662f\u5426\u542f\u52a8<\/p>\n<h4>3\u3001python\u5347\u7ea73.11.9<\/h4>\n<p>\u6ce8\u610f&#xff1a; \u4e00\u5b9a\u8981\u662f\u7528python 3.11 \u56e0\u4e3a open-webui\u9700\u8981 \u6211\u662f\u7528\u4e0b\u9762\u7684\u65b9\u6cd5\u5b89\u88c5\u76843.11.9\u4f46\u662f\u91cc\u9762\u6709\u5751 \u6bd4\u5982 ssl \u5c31\u6ca1\u6709\u3002\u8fd8\u6709\u8fd9\u4e2a\u6559\u7a0b\u662f \u5c06python\u7684\u7248\u672c\u5347\u7ea7\u62103.11.9\u3002\u800cpython3\u7684\u6ca1\u53d8<\/p>\n<ul>\n<li>Linux\u7cfb\u7edf\u5b89\u88c5python3.11.1<\/li>\n<\/ul>\n<h4>4\u3001\u5b89\u88c5open-webui<\/h4>\n<p>\u4e09\u6b65\u6559\u4f1a\u4f60\u5b8c\u5168\u79bb\u7ebf\u642d\u5efaopenwebui \u8fd9\u4e2a\u4e0d\u597d\u7528 \u53ef\u4ee5\u8ddf\u4e0b\u9762\u7684\u6559\u7a0b&#xff1a;<\/p>\n<ul>\n<li>centos\u90e8\u7f72open-webui<\/li>\n<li>centos\u90e8\u7f72open-webui\u7684\u5b8c\u6574\u6d41\u7a0b\u8bb0\u5f55<\/li>\n<\/ul>\n<p>\u51fa\u73b0\u9519\u8bef&#xff1a; 1&#xff09;\u5728 \/home\/a10\/Downloads\/open-webui-whl-offline\u6587\u4ef6\u5939\u4e0b\u8fd0\u884c\u4e0b\u9762\u4ee3\u7801\u51fa\u9519<\/p>\n<p>pip <span class=\"token function\">install<\/span> &#8211;no-index &#8211;find-links<span class=\"token operator\">&#061;<\/span>. open_webui-0.5.10-py3-none-any.whl<\/p>\n<p>\u51fa\u9519\u539f\u56e0&#xff1a;<\/p>\n<p>Processing .\/nest_asyncio-1.6.0-py3-none-any.whl <span class=\"token punctuation\">(<\/span>from unstructured-client-<span class=\"token operator\">&gt;<\/span>unstructured<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">0.16<\/span>.11-<span class=\"token operator\">&gt;<\/span>open-webui<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">0.5<\/span>.10<span class=\"token punctuation\">)<\/span><br \/>\nINFO: pip is looking at multiple versions of google-api-core<span class=\"token punctuation\">[<\/span>grpc<span class=\"token punctuation\">]<\/span> to determine <span class=\"token function\">which<\/span> version is compatible with other requirements. This could take a while.<br \/>\nERROR: Could not <span class=\"token function\">find<\/span> a version that satisfies the requirement grpcio-status<span class=\"token operator\">&lt;<\/span><span class=\"token number\">2.0<\/span>.dev0,<span class=\"token operator\">&gt;&#061;<\/span><span class=\"token number\">1.33<\/span>.2<span class=\"token punctuation\">;<\/span> extra <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;grpc&#034;<\/span> <span class=\"token punctuation\">(<\/span>from google-api-core<span class=\"token punctuation\">[<\/span>grpc<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">(<\/span>from versions: <span class=\"token number\">1.63<\/span>.0rc1<span class=\"token punctuation\">)<\/span><br \/>\nERROR: No matching distribution found <span class=\"token keyword\">for<\/span> grpcio-status<span class=\"token operator\">&lt;<\/span><span class=\"token number\">2.0<\/span>.dev0,<span class=\"token operator\">&gt;&#061;<\/span><span class=\"token number\">1.33<\/span>.2<span class=\"token punctuation\">;<\/span> extra <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;grpc&#034;<\/span><\/p>\n<p>\u8fd9\u662f\u7531\u4e8e \u5355\u4e2a\u6587\u4ef6\u4ed6\u83b7\u53d6\u4e0d\u5230\u5bfc\u81f4\u7684\u3002\u6bd4\u5982 grpcio_status-1.63.0rc1-py3-none-any.whl \u662f\u5b58\u5728\u7684\u3002\u4f46\u662f\u7531\u4e8erc1\u662f\u9884\u88c5\u7684&#xff0c;pip\u4e0d\u4f1a\u4e3b\u52a8\u5b89\u88c5\u5b83\u3002\u56e0\u6b64\u53ef\u4ee5\u5148\u624b\u52a8\u5b89\u88c5\u3002<\/p>\n<p>pip <span class=\"token function\">install<\/span> &#8211;no-index &#8211;find-links<span class=\"token operator\">&#061;<\/span>. grpcio_status-1.63.0rc1-py3-none-any.whl<\/p>\n<p>\u518d\u8fdb\u884c\u5b89\u88c5<\/p>\n<p>pip <span class=\"token function\">install<\/span> &#8211;no-index &#8211;find-links<span class=\"token operator\">&#061;<\/span>. open_webui-0.5.10-py3-none-any.whl<\/p>\n<p>2&#xff09;\u5982\u679c\u4e2d\u95f4\u9047\u5230\u67d0\u4e00\u4e2atar.gz\u7684\u5305\u65e0\u6cd5\u5b89\u88c5\u6210\u529f&#xff0c;\u53ef\u4ee5\u89e3\u538b\u7f29&#xff0c;\u8fdb\u5165\u5230\u89e3\u538b\u7f29\u540e\u7684\u76ee\u5f55&#xff0c;\u7528\u5305\u4e2d\u7684setup\u5355\u72ec\u5b89\u88c5\u4e0b&#xff1a;<\/p>\n<p>python setup.py <span class=\"token function\">install<\/span><\/p>\n<p>\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5python3.12\u6ca1\u6709ssl\u6a21\u5757&#xff0c;python3.12 ModuleNotFoundError: No module named \u2018_ssl\u2018<\/p>\n<p>3&#xff09;\u8fd0\u884c open-webui serve\u65f6&#xff0c;\u603b\u662f\u63d0\u793aSQLite \u7248\u672c\u4f4e\u3002\u660e\u660e\u5df2\u7ecf\u914d\u7f6e\u4e86\u3002<\/p>\n<p>NotSupportedError: <span class=\"token punctuation\">(<\/span>sqlite3.NotSupportedError<span class=\"token punctuation\">)<\/span> <span class=\"token assign-left variable\">deterministic<\/span><span class=\"token operator\">&#061;<\/span>True requires SQLite <span class=\"token number\">3.8<\/span>.3 or higher<br \/>\n<span class=\"token punctuation\">(<\/span>Background on this error at: https:\/\/sqlalche.me\/e\/20\/tw8g<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>centos\u90e8\u7f72open-webui<\/li>\n<li>centos\u90e8\u7f72open-webui\u7684\u5b8c\u6574\u6d41\u7a0b\u8bb0\u5f55<\/li>\n<\/ul>\n<h2>\u53c2\u8003\u8fde\u63a5<\/h2>\n<ul>\n<li>Centos7\/Redhat7\u4e0b\u79bb\u7ebf\u90e8\u7f72ollama\u4e0edeepseek-R1-32B\u6a21\u578b<\/li>\n<li>centos7\u79bb\u7ebf\u5b89\u88c5cuda,cudnn,torch&#xff08;\u4e00&#xff09;<\/li>\n<li>Linux\u7cfb\u7edf\u5b89\u88c5python3.11.1<\/li>\n<li>\u4e09\u6b65\u6559\u4f1a\u4f60\u5b8c\u5168\u79bb\u7ebf\u642d\u5efaopenwebui \u8fd9\u4e2a\u4e0d\u597d\u7528<\/li>\n<li>\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5python3.12\u6ca1\u6709ssl\u6a21\u5757&#xff0c;python3.12 ModuleNotFoundError: No module named \u2018_ssl\u2018<\/li>\n<li>centos\u90e8\u7f72open-webui<\/li>\n<li>centos\u90e8\u7f72open-webui\u7684\u5b8c\u6574\u6d41\u7a0b\u8bb0\u5f55<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u672c\u6b21\u90e8\u7f72\u7684\u76ee\u6807\u662f\u5728\u672c\u5730\u670d\u52a1\u5668\u4e0a\u90e8\u7f72DeepSeek\u3002\u4f46\u662f\u8be5\u670d\u52a1\u4e0d\u80fd\u8fde\u63a5\u5916\u7f51\uff0c\u56e0\u6b64\u53ea\u80fd\u4f7f\u7528\u79bb\u7ebf\u90e8\u7f72\u7684\u65b9\u5f0f\u3002\u4e3a\u4e86\u4e00\u6b21\u5b8c\u6210\u90e8\u7f72\u3002\u73b0\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u8fdb\u884c\u5c1d\u8bd5\u3002_centos\u79bb\u7ebf\u90e8\u7f72deepseek<\/p>\n","protected":false},"author":2,"featured_media":12356,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-12357","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668\u79bb\u7ebf\u90e8\u7f72DeepSeek - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/12357.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\u79bb\u7ebf\u90e8\u7f72DeepSeek - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u672c\u6b21\u90e8\u7f72\u7684\u76ee\u6807\u662f\u5728\u672c\u5730\u670d\u52a1\u5668\u4e0a\u90e8\u7f72DeepSeek\u3002\u4f46\u662f\u8be5\u670d\u52a1\u4e0d\u80fd\u8fde\u63a5\u5916\u7f51\uff0c\u56e0\u6b64\u53ea\u80fd\u4f7f\u7528\u79bb\u7ebf\u90e8\u7f72\u7684\u65b9\u5f0f\u3002\u4e3a\u4e86\u4e00\u6b21\u5b8c\u6210\u90e8\u7f72\u3002\u73b0\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u8fdb\u884c\u5c1d\u8bd5\u3002_centos\u79bb\u7ebf\u90e8\u7f72deepseek\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/12357.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T11:27:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112723-6802371bab7e2.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/12357.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/12357.html\",\"name\":\"\u670d\u52a1\u5668\u79bb\u7ebf\u90e8\u7f72DeepSeek - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T11:27:24+00:00\",\"dateModified\":\"2025-04-18T11:27:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/12357.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/12357.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/12357.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\u79bb\u7ebf\u90e8\u7f72DeepSeek\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u670d\u52a1\u5668\u79bb\u7ebf\u90e8\u7f72DeepSeek - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/12357.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\u79bb\u7ebf\u90e8\u7f72DeepSeek - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u672c\u6b21\u90e8\u7f72\u7684\u76ee\u6807\u662f\u5728\u672c\u5730\u670d\u52a1\u5668\u4e0a\u90e8\u7f72DeepSeek\u3002\u4f46\u662f\u8be5\u670d\u52a1\u4e0d\u80fd\u8fde\u63a5\u5916\u7f51\uff0c\u56e0\u6b64\u53ea\u80fd\u4f7f\u7528\u79bb\u7ebf\u90e8\u7f72\u7684\u65b9\u5f0f\u3002\u4e3a\u4e86\u4e00\u6b21\u5b8c\u6210\u90e8\u7f72\u3002\u73b0\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u8fdb\u884c\u5c1d\u8bd5\u3002_centos\u79bb\u7ebf\u90e8\u7f72deepseek","og_url":"https:\/\/www.wsisp.com\/helps\/12357.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T11:27:24+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112723-6802371bab7e2.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/12357.html","url":"https:\/\/www.wsisp.com\/helps\/12357.html","name":"\u670d\u52a1\u5668\u79bb\u7ebf\u90e8\u7f72DeepSeek - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T11:27:24+00:00","dateModified":"2025-04-18T11:27:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/12357.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/12357.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/12357.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\u79bb\u7ebf\u90e8\u7f72DeepSeek"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/12357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=12357"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/12357\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/12356"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=12357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=12357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=12357"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=12357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}