ray: The specified module could not be found
Hi , I installed ray on Python 3.7.5 . ı imported ray , when i runned the code ı got error that i wrote below. How can i solve this error ?
Traceback (most recent call last):
File "C:/Users/user2/Desktop/Projects/DF_PoC_Dev/src/test_ray.py", line 1, in <module>
import ray
File "C:\Users\user2\.conda\envs\demand_forecasting\lib\site-packages\ray\__init__.py", line 61, in <module>
CDLL(so_path, ctypes.RTLD_GLOBAL)
File "C:\Users\user2\.conda\envs\demand_forecasting\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
I have been working on Windows Server 2016.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (9 by maintainers)
got the same error with Python3.7.9 on Windows10 I have solved this by install the Visual C++ runtime https://aka.ms/vs/16/release/vc_redist.x64.exe You can get help from https://docs.ray.io/en/latest/installation.html#windows-support
Ok, ok. Yes. I was confused as to what you meant. I haven’t used Python much in many years, let alone on Windows, so I’m pretty rusty.
Now it’s working, my steps to reproduce:
Uninstall everything, lol
Install this: https://www.python.org/ftp/python/3.8.7/python-3.8.7-amd64.exe Grab this: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp38-cp38-win_amd64.whl
Now it works, thanks for the help! @mehrdadn
Ok, I’ll stay with the current releases then, thanks