官方原文:
Python 3.11 is the development environment. Python 3.12 seems to work but has not been thoroughly tested. Python 3.13 is entirely untested—use at your own risk.
翻译:
Python 3.11 是开发环境。Python 3.12 看起来可以工作,但尚未颠末彻底测试。Python 3.13 完全没有颠末测试——使用需自行承担风险。
究竟上本人win10体系使用python3.12版本下载open-webui都没有成功,所以守旧起见用python3.11版本比力稳妥。
(pyp311) PS C:\Users\39216> open-webui serveLoading WEBUI_SECRET_KEY from file, not provided as an environment variable.Generating a new secret key and saving it to C:\Users\39216\.webui_secret_keyLoading WEBUI_SECRET_KEY from C:\Users\39216\.webui_secret_keyD:\install\miniconda3\envs\pyp311\Lib\site-packages\open_webui
D:\install\miniconda3\envs\pyp311\Lib\site-packagesD:\install\miniconda3\envs\pyp311\LibRunning migrationsINFO [alembic.runtime.migration] Context impl SQLiteImpl.INFO [alembic.runtime.migration] Will assume non-transactional DDL.INFO [alembic.runtime.migration] Running upgrade -> 7e5b5dc7342b, initINFO [alembic.runtime.migration] Running upgrade 7e5b5dc7342b -> ca81bd47c050, Add config tableINFO [alembic.runtime.migration] Running upgrade ca81bd47c050 -> c0fbf31ca0db, Update file tableINFO [alembic.runtime.migration] Running upgrade c0fbf31ca0db -> 6a39f3d8e55c, Add knowledge tableCreating knowledge tableMigrating data from document table to knowledge tableINFO [alembic.runtime.migration] Running upgrade 6a39f3d8e55c -> 242a2047eae0, Update chat tableConverting 'chat' column to JSONRenaming 'chat' column to 'old_chat'Adding new 'chat' column of type JSONDropping 'old_chat' columnINFO [alembic.runtime.migration] Running upgrade 242a2047eae0 -> 1af9b942657b, Migrate tagsINFO [alembic.runtime.migration] Running upgrade 1af9b942657b -> 3ab32c4b8f59, Update tagsPrimary Key: {'name': None, 'constrained_columns': []}Unique Constraints: [{'name': 'uq_id_user_id', 'column_names': ['id', 'user_id']}]Indexes: [{'name': 'tag_id', 'column_names': ['id'], 'unique': 1, 'dialect_options': {}}]Creating new primary key with 'id' and 'user_id'.Dropping unique constraint: uq_id_user_idDropping unique index: tag_idINFO [alembic.runtime.migration] Running upgrade 3ab32c4b8f59 -> c69f45358db4, Add folder tableINFO [alembic.runtime.migration] Running upgrade c69f45358db4 -> c29facfe716b, Update file table pathINFO [alembic.runtime.migration] Running upgrade c29facfe716b -> af906e964978, Add feedback tableINFO [alembic.runtime.migration] Running upgrade af906e964978 -> 4ace53fd72c8, Update folder table and change DateTime to BigInteger for timestamp fieldsINFO [alembic.runtime.migration] Running upgrade 4ace53fd72c8 -> 922e7a387820, Add group tableINFO [alembic.runtime.migration] Running upgrade 922e7a387820 -> 57c599a3cb57, Add channel tableINFO [alembic.runtime.migration] Running upgrade 57c599a3cb57 -> 7826ab40b532, Update file tableINFO [alembic.runtime.migration] Running upgrade 7826ab40b532 -> 3781e22d8b01, Update message & channel tablesINFO [open_webui.env] 'DEFAULT_LOCALE' loaded from the latest database entryINFO [open_webui.env] 'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entryWARNI [open_webui.env]WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS.INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2D:\install\miniconda3\envs\pyp311\Lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests. ___ __ __ _ _ _ ___ / _ \ _ __ ___ _ __ \ \ / /__| |__ | | | |_ _|| | | | '_ \ / _ \ '_ \ \ \ /\ / / _ \ '_ \| | | || || |_| | |_) | __/ | | | \ V V / __/ |_) | |_| || | \___/| .__/ \___|_| |_| \_/\_/ \___|_.__/ \___/|___| |_|v0.5.11 - building the best open-source AI user interface.https://github.com/open-webui/open-webuiERROR [open_webui.retrieval.utils] Cannot determine model snapshot path: An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the specified revision on the local disk. Please check your internet connection and try again.Traceback (most recent call last): File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\connection.py", line 198, in _new_conn sock = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\util\connection.py", line 85, in create_connection raise err File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\util\connection.py", line 73, in create_connection sock.connect(sa)TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确回复或连接的主机没有反应,连接尝试失败。The above exception was the direct cause of the following exception:Traceback (most recent call last): File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\connectionpool.py", line 488, in _make_request raise new_e File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\connectionpool.py", line 464, in _make_request self._validate_conn(conn) File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\connectionpool.py", line 1093, in _validate_conn conn.connect() File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\connection.py", line 704, in connect self.sock = sock = self._new_conn() ^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\connection.py", line 207, in _new_conn raise ConnectTimeoutError(urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x000002C5B2E50410>, 'Connection to huggingface.co timed out. (connect timeout=None)')The above exception was the direct cause of the following exception:Traceback (most recent call last): File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\requests\adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\connectionpool.py", line 841, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\urllib3\util\retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/sentence-transformers/all-MiniLM-L6-v2/revision/main (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002C5B2E50410>, 'Connection to huggingface.co timed out. (connect timeout=None)'))During handling of the above exception, another exception occurred:Traceback (most recent call last): File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\huggingface_hub\_snapshot_download.py", line 155, in snapshot_download repo_info = api.repo_info(repo_id=repo_id, repo_type=repo_type, revision=revision, token=token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\huggingface_hub\hf_api.py", line 2704, in repo_info return method( ^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\huggingface_hub\hf_api.py", line 2488, in model_info r = get_session().get(path, headers=headers, timeout=timeout, params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\requests\sessions.py", line 602, in get return self.request("GET", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\requests\sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\huggingface_hub\utils\_http.py", line 93, in send return super().send(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\requests\adapters.py", line 688, in send raise ConnectTimeout(e, request=request)requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/sentence-transformers/all-MiniLM-L6-v2/revision/main (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002C5B2E50410>, 'Connection to huggingface.co timed out. (connect timeout=None)'))"), '(Request ID: 2a590046-5d8a-4998-a8f9-7fcdce42aa6d)')The above exception was the direct cause of the following exception:Traceback (most recent call last): File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\open_webui
\retrieval\utils.py", line 425, in get_model_path model_repo_path = snapshot_download(**snapshot_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "D:\install\miniconda3\envs\pyp311\Lib\site-packages\huggingface_hub\_snapshot_download.py", line 235, in snapshot_download raise LocalEntryNotFoundError(huggingface_hub.errors.LocalEntryNotFoundError: An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the specified revision on the local disk. Please check your internet connection and try again.WARNI [sentence_transformers.SentenceTransformer] No sentence-transformers model found with name sentence-transformers/all-MiniLM-L6-v2. Creating a new one with mean pooling.