question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The specified module could not be found

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
4ever-Raincommented, Nov 23, 2020

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

1reaction
sheganinanscommented, Jan 23, 2021

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

pip3.8.exe install C:\Users\Ace\Downloads\ray-2.0.0.dev0-cp38-cp38-win_amd64.whl
pip3.8.exe install "ray[rllib]" tensorflow-gpu torch
rllib train --run PPO --env CartPole-v0

Now it works, thanks for the help! @mehrdadn

Read more comments on GitHub >

github_iconTop Results From Across the Web

The error “The specified module could not be found”
Boot your computer into Safe Mode and open Task Manager > In the Processes tab, select the program encountering the specified module could...
Read more >
The specified module could not be found | 3 Ways to Fix It
"The specified module could not be found" error often occurs on Windows startup or when launching a particular program.
Read more >
7 Ways To Fix “The Specified Module Could Not Be Found” Error
“The specified module could not be found” is a common error that usually occurs when your system tries to access missing DLL files....
Read more >
4 Ways to Solve the Specified Module Could Not Be Found
How to Fix the Specified Module Could Not Be Found? · Solution 1. Run SFC Scan · Solution 2. Scan Virus of Your...
Read more >
How to fix "The specified module could not be found" error on ...
How to fix "The specified module could not be found" error on Windows? · Fix 1. Scan your computer for malware · Fix...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found