目前共有13篇帖子。
字体大小:较小 - 100% (默认)  内容转换:不转换
 
点击 回复
22 12
Ray不支持最新的Python3.14,换Python3.12.13就可以用pip安装Ray了。
巨大八爪鱼
武林盟主 二十一级
回复
1楼 发表于:2026-8-10 10:23
巨大八爪鱼
武林盟主 二十一级
回复
2楼 发表于:2026-8-10 10:24
巨大八爪鱼
武林盟主 二十一级
回复
3楼 发表于:2026-8-10 10:45
巨大八爪鱼
武林盟主 二十一级
回复
4楼 发表于:2026-8-10 10:47
装好了。
巨大八爪鱼
武林盟主 二十一级
回复
5楼 发表于:2026-8-10 10:53
但是ray start启动失败。
 
巨大八爪鱼:Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\oct1158>ray start
'ray' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Users\oct1158>C:\Users\oct1158\AppData\Roaming\Python\Python312\Scripts\ray.e
xe start
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\Scripts\ray.exe\__main
__.py", line 4, in <module>
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\ray\__in
it__.py", line 114, in <module>
    from ray._private.worker import (  # noqa: E402,F401
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\ray\_pri
vate\worker.py", line 55, in <module>
    import ray.actor
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\ray\acto
r.py", line 57, in <module>
    from ray.util.tracing.tracing_helper import (
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\ray\util
\tracing\tracing_helper.py", line 29, in <module>
    from ray.runtime_context import get_runtime_context
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\ray\runt
ime_context.py", line 10, in <module>
    from ray.runtime_env import RuntimeEnv
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\ray\runt
ime_env\__init__.py", line 1, in <module>
    from ray.runtime_env.runtime_env import RuntimeEnv, RuntimeEnvConfig  # noqa
: E402,F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\ray\runt
ime_env\runtime_env.py", line 13, in <module>
    from ray._private.runtime_env.plugin_schema_manager import RuntimeEnvPluginS
chemaManager
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\ray\_pri
vate\runtime_env\plugin_schema_manager.py", line 6, in <module>
    import jsonschema
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\jsonsche
ma\__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\jsonsche
ma\_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\jsonsche
ma\exceptions.py", line 15, in <module>
    from referencing.exceptions import Unresolvable as _Unresolvable
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\referenc
ing\__init__.py", line 5, in <module>
    from referencing._core import Anchor, Registry, Resource, Specification
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\referenc
ing\_core.py", line 9, in <module>
    from rpds import HashTrieMap, HashTrieSet, List
  File "C:\Users\oct1158\AppData\Roaming\Python\Python312\site-packages\rpds\__i
nit__.py", line 1, in <module>
    from .rpds import *
ImportError: DLL load failed while importing rpds: 找不到指定的程序。

C:\Users\oct1158>
  2026-8-10 10:53 回复
巨大八爪鱼
武林盟主 二十一级
回复
6楼 发表于:2026-8-10 10:54
Collecting virtualenv!=20.21.1,>=20.0.24 (from ray[data,serve,train,tune])
  Downloading virtualenv-21.7.3-py3-none-any.whl.metadata (3.5 kB)
Collecting opentelemetry-exporter-prometheus (from ray[data,serve,train,tune])
  Downloading opentelemetry_exporter_prometheus-0.65b0-py3-none-any.whl.metadata
 (2.1 kB)
Collecting opentelemetry-proto (from ray[data,serve,train,tune])
  Downloading opentelemetry_proto-1.44.0-py3-none-any.whl.metadata (2.3 kB)
Collecting tensorboardX>=1.9 (from ray[data,serve,train,tune])
  Downloading tensorboardx-2.6.5-py3-none-any.whl.metadata (6.6 kB)
Collecting aiohappyeyeballs>=2.5.0 (from aiohttp>=3.13.3->ray[data,serve,train,t
une])
  Downloading aiohappyeyeballs-2.7.1-py3-none-any.whl.metadata (5.9 kB)
Collecting aiosignal>=1.4.0 (from aiohttp>=3.13.3->ray[data,serve,train,tune])
  Downloading aiosignal-1.4.0-py3-none-any.whl.metadata (3.7 kB)
Collecting attrs>=17.3.0 (from aiohttp>=3.13.3->ray[data,serve,train,tune])
  Downloading attrs-26.1.0-py3-none-any.whl.metadata (8.8 kB)
Collecting frozenlist>=1.1.1 (from aiohttp>=3.13.3->ray[data,serve,train,tune])
  Downloading frozenlist-1.8.0-cp312-cp312-win_amd64.whl.metadata (21 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp>=3.13.3->ray[data,serve,train,tune]
)
  Downloading multidict-6.7.1-cp312-cp312-win_amd64.whl.metadata (5.5 kB)
Collecting propcache>=0.2.0 (from aiohttp>=3.13.3->ray[data,serve,train,tune])
  Downloading propcache-0.5.2-cp312-cp312-win_amd64.whl.metadata (17 kB)
Collecting typing_extensions>=4.4 (from aiohttp>=3.13.3->ray[data,serve,train,tu
ne])
  Downloading typing_extensions-4.16.0-py3-none-any.whl.metadata (3.3 kB)
Collecting yarl<2.0,>=1.17.0 (from aiohttp>=3.13.3->ray[data,serve,train,tune])
  Downloading yarl-1.24.5-cp312-cp312-win_amd64.whl.metadata (107 kB)
Collecting colorama (from click>=7.0->ray[data,serve,train,tune])
  Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting typing-inspection>=0.4.2 (from fastapi>=0.133.0->ray[data,serve,train
,tune])
  Downloading typing_inspection-0.4.2-py3-none-any.whl.metadata (2.6 kB)
Collecting annotated-doc>=0.0.2 (from fastapi>=0.133.0->ray[data,serve,train,tun
e])
  Downloading annotated_doc-0.0.5-py3-none-any.whl.metadata (6.5 kB)
Collecting opentelemetry-api==1.44.0 (from opentelemetry-sdk>=1.30.0->ray[data,s
erve,train,tune])
  Downloading opentelemetry_api-1.44.0-py3-none-any.whl.metadata (1.4 kB)
Collecting opentelemetry-semantic-conventions==0.65b0 (from opentelemetry-sdk>=1
.30.0->ray[data,serve,train,tune])
  Downloading opentelemetry_semantic_conventions-0.65b0-py3-none-any.whl.metadat
a (2.4 kB)
Collecting python-dateutil>=2.8.2 (from pandas>=2.2.3->ray[data,serve,train,tune
])
  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)

Collecting tzdata (from pandas>=2.2.3->ray[data,serve,train,tune])
  Downloading tzdata-2026.3-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting annotated-types>=0.6.0 (from pydantic<3,>=2.5.0->ray[data,serve,train
,tune])
  Downloading annotated_types-0.8.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.46.4 (from pydantic<3,>=2.5.0->ray[data,serve,train,
tune])
  Downloading pydantic_core-2.46.4-cp312-cp312-win_amd64.whl.metadata (6.7 kB)
Collecting anyio<5,>=3.6.2 (from starlette>=1.0.1->ray[data,serve,train,tune])
  Downloading anyio-4.14.2-py3-none-any.whl.metadata (4.6 kB)
Collecting distlib<1,>=0.3.7 (from virtualenv!=20.21.1,>=20.0.24->ray[data,serve
,train,tune])
  Downloading distlib-0.4.3-py2.py3-none-any.whl.metadata (5.3 kB)
Collecting platformdirs<5,>=3.9.1 (from virtualenv!=20.21.1,>=20.0.24->ray[data,
serve,train,tune])
  Downloading platformdirs-4.11.1-py3-none-any.whl.metadata (5.5 kB)
Collecting python-discovery>=1.4.2 (from virtualenv!=20.21.1,>=20.0.24->ray[data
,serve,train,tune])
  Downloading python_discovery-1.5.1-py3-none-any.whl.metadata (5.0 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema->ray[data,serve
,train,tune])
  Downloading jsonschema_specifications-2025.9.1-py3-none-any.whl.metadata (2.9
kB)
Collecting referencing>=0.28.4 (from jsonschema->ray[data,serve,train,tune])
  Downloading referencing-0.37.0-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.25.0 (from jsonschema->ray[data,serve,train,tune])
  Downloading rpds_py-2026.6.3-cp312-cp312-win_amd64.whl.metadata (4.2 kB)
Collecting opencensus-context>=0.1.3 (from opencensus->ray[data,serve,train,tune
])
  Downloading opencensus_context-0.1.3-py2.py3-none-any.whl.metadata (3.3 kB)
Collecting six~=1.16 (from opencensus->ray[data,serve,train,tune])
  Downloading six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting google-api-core<3.0.0,>=1.0.0 (from opencensus->ray[data,serve,train,
tune])
  Downloading google_api_core-2.34.0-py3-none-any.whl.metadata (2.9 kB)
Collecting charset_normalizer<4,>=2 (from requests->ray[data,serve,train,tune])
  Downloading charset_normalizer-3.4.9-cp312-cp312-win_amd64.whl.metadata (42 kB
)
Collecting idna<4,>=2.5 (from requests->ray[data,serve,train,tune])
  Downloading idna-3.18-py3-none-any.whl.metadata (6.1 kB)
Collecting urllib3<3,>=1.26 (from requests->ray[data,serve,train,tune])
  Downloading urllib3-2.7.0-py3-none-any.whl.metadata (6.9 kB)
Collecting certifi>=2023.5.7 (from requests->ray[data,serve,train,tune])
  Downloading certifi-2026.7.22-py3-none-any.whl.metadata (2.5 kB)
Collecting wrapt (from smart_open->ray[data,serve,train,tune])
  Downloading wrapt-2.3.0-cp312-cp312-win_amd64.whl.metadata (7.6 kB)
Collecting h11>=0.8 (from uvicorn[standard]; extra == "serve"->ray[data,serve,tr
ain,tune])
  Downloading h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)
Collecting httptools>=0.8.0 (from uvicorn[standard]; extra == "serve"->ray[data,
serve,train,tune])
  Downloading httptools-0.8.0-cp312-cp312-win_amd64.whl.metadata (3.7 kB)
Collecting python-dotenv>=0.13 (from uvicorn[standard]; extra == "serve"->ray[da
ta,serve,train,tune])
  Downloading python_dotenv-1.2.2-py3-none-any.whl.metadata (27 kB)
Collecting websockets>=13.0 (from uvicorn[standard]; extra == "serve"->ray[data,
serve,train,tune])
  Downloading websockets-17.0.1-cp312-cp312-win_amd64.whl.metadata (6.5 kB)
Collecting googleapis-common-protos<2.0.0,>=1.69.2 (from google-api-core<3.0.0,>
=1.0.0->opencensus->ray[data,serve,train,tune])
  Downloading googleapis_common_protos-1.75.1-py3-none-any.whl.metadata (8.5 kB)

Collecting proto-plus<2.0.0,>=1.26.1 (from google-api-core<3.0.0,>=1.0.0->opence
nsus->ray[data,serve,train,tune])
  Downloading proto_plus-1.28.3-py3-none-any.whl.metadata (2.2 kB)
Collecting google-auth<3.0.0,>=2.14.1 (from google-api-core<3.0.0,>=1.0.0->openc
ensus->ray[data,serve,train,tune])
  Downloading google_auth-2.56.3-py3-none-any.whl.metadata (6.0 kB)
Collecting pyasn1-modules>=0.2.1 (from google-auth<3.0.0,>=2.14.1->google-api-co
re<3.0.0,>=1.0.0->opencensus->ray[data,serve,train,tune])
  Downloading pyasn1_modules-0.4.2-py3-none-any.whl.metadata (3.5 kB)
Collecting cryptography>=38.0.3 (from google-auth<3.0.0,>=2.14.1->google-api-cor
e<3.0.0,>=1.0.0->opencensus->ray[data,serve,train,tune])
  Downloading cryptography-50.0.0-cp311-abi3-win_amd64.whl.metadata (4.3 kB)
Collecting cffi>=2.0.0 (from cryptography>=38.0.3->google-auth<3.0.0,>=2.14.1->g
oogle-api-core<3.0.0,>=1.0.0->opencensus->ray[data,serve,train,tune])
  Downloading cffi-2.1.1-cp312-cp312-win_amd64.whl.metadata (2.6 kB)
Collecting pyasn1<0.7.0,>=0.6.1 (from pyasn1-modules>=0.2.1->google-auth<3.0.0,>
=2.14.1->google-api-core<3.0.0,>=1.0.0->opencensus->ray[data,serve,train,tune])
  Downloading pyasn1-0.6.4-py3-none-any.whl.metadata (8.4 kB)
Collecting pycparser (from cffi>=2.0.0->cryptography>=38.0.3->google-auth<3.0.0,
>=2.14.1->google-api-core<3.0.0,>=1.0.0->opencensus->ray[data,serve,train,tune])

  Downloading pycparser-3.0-py3-none-any.whl.metadata (8.2 kB)
Downloading aiohttp-3.14.3-cp312-cp312-win_amd64.whl (476 kB)
Downloading click-8.4.2-py3-none-any.whl (119 kB)
Downloading fastapi-0.141.1-py3-none-any.whl (131 kB)
Downloading grpcio-1.83.0-cp312-cp312-win_amd64.whl (5.2 MB)
   ---------------------------------------- 5.2/5.2 MB 47.9 kB/s eta 0:00:00
Downloading msgpack-1.2.1-cp312-cp312-win_amd64.whl (71 kB)
Downloading numpy-2.5.2-cp312-cp312-win_amd64.whl (12.5 MB)
   ---------------------------------------- 12.5/12.5 MB 53.9 kB/s eta 0:00:00
Downloading opentelemetry_sdk-1.44.0-py3-none-any.whl (137 kB)
Downloading opentelemetry_api-1.44.0-py3-none-any.whl (60 kB)
Downloading opentelemetry_semantic_conventions-0.65b0-py3-none-any.whl (204 kB)
Downloading packaging-26.3-py3-none-any.whl (129 kB)
Downloading pandas-3.0.5-cp312-cp312-win_amd64.whl (9.8 MB)
   ---------------------------------------- 9.8/9.8 MB 65.6 kB/s eta 0:00:00
Downloading prometheus_client-0.26.0-py3-none-any.whl (64 kB)
Downloading protobuf-7.35.1-cp310-abi3-win_amd64.whl (439 kB)
Downloading py_spy-0.4.2-py2.py3-none-win_amd64.whl (1.9 MB)
   ---------------------------------------- 1.9/1.9 MB 55.8 kB/s eta 0:00:00
Downloading pyarrow-25.0.0-cp312-cp312-win_amd64.whl (27.9 MB)
   ---------------------------------------- 27.9/27.9 MB 51.2 kB/s eta 0:00:00
Downloading pydantic-2.13.4-py3-none-any.whl (472 kB)
Downloading pydantic_core-2.46.4-cp312-cp312-win_amd64.whl (2.1 MB)
   ---------------------------------------- 2.1/2.1 MB 60.1 kB/s eta 0:00:00
Downloading starlette-1.6.0-py3-none-any.whl (75 kB)
Downloading tensorboardx-2.6.5-py3-none-any.whl (87 kB)
Downloading virtualenv-21.7.3-py3-none-any.whl (5.5 MB)
   ---------------------------------------- 5.5/5.5 MB 73.7 kB/s eta 0:00:00
Downloading filelock-3.32.2-py3-none-any.whl (98 kB)
Downloading aiohttp_cors-0.8.1-py3-none-any.whl (25 kB)
Downloading colorful-0.5.8-py2.py3-none-any.whl (201 kB)
Downloading fsspec-2026.7.0-py3-none-any.whl (206 kB)
Downloading jsonschema-4.26.0-py3-none-any.whl (90 kB)
Downloading mmh3-5.2.1-cp312-cp312-win_amd64.whl (41 kB)
Downloading opencensus-0.11.4-py2.py3-none-any.whl (128 kB)
Downloading opentelemetry_exporter_prometheus-0.65b0-py3-none-any.whl (13 kB)
Downloading opentelemetry_proto-1.44.0-py3-none-any.whl (72 kB)
Downloading pyyaml-6.0.3-cp312-cp312-win_amd64.whl (154 kB)
Downloading ray-2.56.1-cp312-cp312-win_amd64.whl (28.4 MB)
   ---------------------------------------- 28.4/28.4 MB 52.3 kB/s eta 0:00:00
Downloading requests-2.34.2-py3-none-any.whl (73 kB)
Downloading smart_open-8.0.1-py3-none-any.whl (73 kB)
Downloading watchfiles-1.2.0-cp312-cp312-win_amd64.whl (288 kB)
Downloading aiohappyeyeballs-2.7.1-py3-none-any.whl (15 kB)
Downloading aiosignal-1.4.0-py3-none-any.whl (7.5 kB)
Downloading annotated_doc-0.0.5-py3-none-any.whl (5.3 kB)
Downloading annotated_types-0.8.0-py3-none-any.whl (13 kB)
Downloading anyio-4.14.2-py3-none-any.whl (125 kB)
Downloading attrs-26.1.0-py3-none-any.whl (67 kB)
Downloading certifi-2026.7.22-py3-none-any.whl (136 kB)
Downloading charset_normalizer-3.4.9-cp312-cp312-win_amd64.whl (162 kB)
Downloading distlib-0.4.3-py2.py3-none-any.whl (470 kB)
Downloading frozenlist-1.8.0-cp312-cp312-win_amd64.whl (44 kB)
Downloading google_api_core-2.34.0-py3-none-any.whl (180 kB)
Downloading h11-0.16.0-py3-none-any.whl (37 kB)
Downloading httptools-0.8.0-cp312-cp312-win_amd64.whl (90 kB)
Downloading idna-3.18-py3-none-any.whl (65 kB)
Downloading jsonschema_specifications-2025.9.1-py3-none-any.whl (18 kB)
Downloading multidict-6.7.1-cp312-cp312-win_amd64.whl (46 kB)
Downloading opencensus_context-0.1.3-py2.py3-none-any.whl (5.1 kB)
Downloading platformdirs-4.11.1-py3-none-any.whl (23 kB)
Downloading propcache-0.5.2-cp312-cp312-win_amd64.whl (42 kB)
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Downloading python_discovery-1.5.1-py3-none-any.whl (35 kB)
Downloading python_dotenv-1.2.2-py3-none-any.whl (22 kB)
Downloading referencing-0.37.0-py3-none-any.whl (26 kB)
Downloading rpds_py-2026.6.3-cp312-cp312-win_amd64.whl (220 kB)
Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
Downloading typing_extensions-4.16.0-py3-none-any.whl (45 kB)
Downloading typing_inspection-0.4.2-py3-none-any.whl (14 kB)
Downloading urllib3-2.7.0-py3-none-any.whl (131 kB)
Downloading websockets-17.0.1-cp312-cp312-win_amd64.whl (213 kB)
Downloading yarl-1.24.5-cp312-cp312-win_amd64.whl (97 kB)
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Downloading tzdata-2026.3-py2.py3-none-any.whl (348 kB)
Downloading uvicorn-0.52.1-py3-none-any.whl (79 kB)
Downloading wrapt-2.3.0-cp312-cp312-win_amd64.whl (81 kB)
Downloading google_auth-2.56.3-py3-none-any.whl (259 kB)
Downloading googleapis_common_protos-1.75.1-py3-none-any.whl (300 kB)
Downloading proto_plus-1.28.3-py3-none-any.whl (50 kB)
Downloading cryptography-50.0.0-cp311-abi3-win_amd64.whl (3.8 MB)
   ---------------------------------------- 3.8/3.8 MB 41.7 kB/s eta 0:00:00
Downloading pyasn1_modules-0.4.2-py3-none-any.whl (181 kB)
Downloading cffi-2.1.1-cp312-cp312-win_amd64.whl (185 kB)
Downloading pyasn1-0.6.4-py3-none-any.whl (84 kB)
Downloading pycparser-3.0-py3-none-any.whl (48 kB)
Installing collected packages: py-spy, opencensus-context, distlib, wrapt, webso
ckets, urllib3, tzdata, typing_extensions, six, rpds-py, pyyaml, python-dotenv,
pycparser, pyasn1, pyarrow, protobuf, propcache, prometheus_client, platformdirs
, packaging, numpy, multidict, msgpack, mmh3, idna, httptools, h11, fsspec, froz
enlist, filelock, colorama, charset_normalizer, certifi, attrs, annotated-types,
 annotated-doc, aiohappyeyeballs, yarl, typing-inspection, tensorboardX, smart_o
pen, requests, referencing, python-discovery, python-dateutil, pydantic-core, py
asn1-modules, proto-plus, opentelemetry-proto, opentelemetry-api, grpcio, google
apis-common-protos, colorful, click, cffi, anyio, aiosignal, watchfiles, virtual
env, uvicorn, starlette, pydantic, pandas, opentelemetry-semantic-conventions, j
sonschema-specifications, cryptography, aiohttp, opentelemetry-sdk, jsonschema,
google-auth, fastapi, aiohttp_cors, ray, opentelemetry-exporter-prometheus, goog
le-api-core, opencensus
  WARNING: The script websockets.exe is installed in 'C:\Users\oct1158\AppData\R
oaming\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The script dotenv.exe is installed in 'C:\Users\oct1158\AppData\Roami
ng\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The scripts f2py.exe and numpy-config.exe are installed in 'C:\Users\
oct1158\AppData\Roaming\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The script idna.exe is installed in 'C:\Users\oct1158\AppData\Roaming
\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The script normalizer.exe is installed in 'C:\Users\oct1158\AppData\R
oaming\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The script cffi-gen-src.exe is installed in 'C:\Users\oct1158\AppData
\Roaming\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The script watchfiles.exe is installed in 'C:\Users\oct1158\AppData\R
oaming\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The script virtualenv.exe is installed in 'C:\Users\oct1158\AppData\R
oaming\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The script uvicorn.exe is installed in 'C:\Users\oct1158\AppData\Roam
ing\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The script jsonschema.exe is installed in 'C:\Users\oct1158\AppData\R
oaming\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The script fastapi.exe is installed in 'C:\Users\oct1158\AppData\Roam
ing\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
  WARNING: The scripts ray.exe, serve.exe and tune.exe are installed in 'C:\User
s\oct1158\AppData\Roaming\Python\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
Successfully installed aiohappyeyeballs-2.7.1 aiohttp-3.14.3 aiohttp_cors-0.8.1
aiosignal-1.4.0 annotated-doc-0.0.5 annotated-types-0.8.0 anyio-4.14.2 attrs-26.
1.0 certifi-2026.7.22 cffi-2.1.1 charset_normalizer-3.4.9 click-8.4.2 colorama-0
.4.6 colorful-0.5.8 cryptography-50.0.0 distlib-0.4.3 fastapi-0.141.1 filelock-3
.32.2 frozenlist-1.8.0 fsspec-2026.7.0 google-api-core-2.34.0 google-auth-2.56.3
 googleapis-common-protos-1.75.1 grpcio-1.83.0 h11-0.16.0 httptools-0.8.0 idna-3
.18 jsonschema-4.26.0 jsonschema-specifications-2025.9.1 mmh3-5.2.1 msgpack-1.2.
1 multidict-6.7.1 numpy-2.5.2 opencensus-0.11.4 opencensus-context-0.1.3 opentel
emetry-api-1.44.0 opentelemetry-exporter-prometheus-0.65b0 opentelemetry-proto-1
.44.0 opentelemetry-sdk-1.44.0 opentelemetry-semantic-conventions-0.65b0 packagi
ng-26.3 pandas-3.0.5 platformdirs-4.11.1 prometheus_client-0.26.0 propcache-0.5.
2 proto-plus-1.28.3 protobuf-7.35.1 py-spy-0.4.2 pyarrow-25.0.0 pyasn1-0.6.4 pya
sn1-modules-0.4.2 pycparser-3.0 pydantic-2.13.4 pydantic-core-2.46.4 python-date
util-2.9.0.post0 python-discovery-1.5.1 python-dotenv-1.2.2 pyyaml-6.0.3 ray-2.5
6.1 referencing-0.37.0 requests-2.34.2 rpds-py-2026.6.3 six-1.17.0 smart_open-8.
0.1 starlette-1.6.0 tensorboardX-2.6.5 typing-inspection-0.4.2 typing_extensions
-4.16.0 tzdata-2026.3 urllib3-2.7.0 uvicorn-0.52.1 virtualenv-21.7.3 watchfiles-
1.2.0 websockets-17.0.1 wrapt-2.3.0 yarl-1.24.5

[notice] A new release of pip is available: 25.0.1 -> 26.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip

C:\Users\oct1158>
巨大八爪鱼
武林盟主 二十一级
回复
7楼 发表于:2026-8-10 11:13
卸载了全局方式安装的python,删除了C:\Users\oct1158\AppData\Roaming\Python文件夹。
重新以当前用户方式安装了python,安装时勾选了添加python.exe到PATH环境变量中。
然后重新安装了ray。安装包有缓存,不用从网上重新下载(Using cached *.whl),很快就安装完成了。
巨大八爪鱼
武林盟主 二十一级
回复
8楼 发表于:2026-8-10 11:14

但ray start还是启动不成功。
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\oct1158>ray start
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Scripts\ray.exe
\__main__.py", line 4, in <module>
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\__init__.py", line 114, in <module>
    from ray._private.worker import (  # noqa: E402,F401
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\_private\worker.py", line 55, in <module>
    import ray.actor
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\actor.py", line 57, in <module>
    from ray.util.tracing.tracing_helper import (
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\util\tracing\tracing_helper.py", line 29, in <module>
    from ray.runtime_context import get_runtime_context
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\runtime_context.py", line 10, in <module>
    from ray.runtime_env import RuntimeEnv
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\runtime_env\__init__.py", line 1, in <module>
    from ray.runtime_env.runtime_env import RuntimeEnv, RuntimeEnvConfig  # noqa
: E402,F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\runtime_env\runtime_env.py", line 13, in <module>
    from ray._private.runtime_env.plugin_schema_manager import RuntimeEnvPluginS
chemaManager
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\_private\runtime_env\plugin_schema_manager.py", line 6, in <module>
    import jsonschema
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\jsonschema\__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\jsonschema\_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\jsonschema\exceptions.py", line 15, in <module>
    from referencing.exceptions import Unresolvable as _Unresolvable
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\referencing\__init__.py", line 5, in <module>
    from referencing._core import Anchor, Registry, Resource, Specification
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\referencing\_core.py", line 9, in <module>
    from rpds import HashTrieMap, HashTrieSet, List
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\rpds\__init__.py", line 1, in <module>
    from .rpds import *
ImportError: DLL load failed while importing rpds: 找不到指定的程序。

C:\Users\oct1158>
巨大八爪鱼
武林盟主 二十一级
回复
9楼 发表于:2026-8-10 11:15
试试看安装ray[cpp]。
巨大八爪鱼
武林盟主 二十一级
回复
10楼 发表于:2026-8-10 11:29
ray[cpp]装好了。
巨大八爪鱼
武林盟主 二十一级
回复
11楼 发表于:2026-8-10 11:30
C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packages\ray\cpp\lib
巨大八爪鱼
武林盟主 二十一级
回复
12楼 发表于:2026-8-10 12:23
python脚本中import ray无法执行成功。
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\oct1158>cd F:\Code

C:\Users\oct1158>F:

F:\Code>python ray_test.py
Traceback (most recent call last):
  File "F:\Code\ray_test.py", line 2, in <module>
    import ray
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\__init__.py", line 114, in <module>
    from ray._private.worker import (  # noqa: E402,F401
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\_private\worker.py", line 55, in <module>
    import ray.actor
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\actor.py", line 57, in <module>
    from ray.util.tracing.tracing_helper import (
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\util\tracing\tracing_helper.py", line 29, in <module>
    from ray.runtime_context import get_runtime_context
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\runtime_context.py", line 10, in <module>
    from ray.runtime_env import RuntimeEnv
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\runtime_env\__init__.py", line 1, in <module>
    from ray.runtime_env.runtime_env import RuntimeEnv, RuntimeEnvConfig  # noqa
: E402,F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\runtime_env\runtime_env.py", line 13, in <module>
    from ray._private.runtime_env.plugin_schema_manager import RuntimeEnvPluginS
chemaManager
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\ray\_private\runtime_env\plugin_schema_manager.py", line 6, in <module>
    import jsonschema
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\jsonschema\__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\jsonschema\_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\jsonschema\exceptions.py", line 15, in <module>
    from referencing.exceptions import Unresolvable as _Unresolvable
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\referencing\__init__.py", line 5, in <module>
    from referencing._core import Anchor, Registry, Resource, Specification
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\referencing\_core.py", line 9, in <module>
    from rpds import HashTrieMap, HashTrieSet, List
  File "C:\Users\oct1158\AppData\Local\Programs\Python\Python312\Lib\site-packag
es\rpds\__init__.py", line 1, in <module>
    from .rpds import *
ImportError: DLL load failed while importing rpds: 找不到指定的程序。

F:\Code>
回复帖子
内容:
用户名: 您目前是匿名发表。
验证码:
看不清?换一张
(快捷键:Ctrl+Enter)
本帖信息
点击数:22 回复数:12
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2026-8-10 12:23
公告板