Foad S. Farimani
Foad S. Farimani

Reputation: 14016

Netgen.exe - System Error python35.dll was not found

I installed Python 3.6.3 64bit through Anaconda on my 64bit Win10. And I installed Netgen 64bit from the official sourceforge page. But when I try to run Negen I get the error:

The code execution cannot proceed because python35.dll was not found. Reinstalling the program may fix this issue.

enter image description here

  1. I tried reinstalling but it did not help
  2. I checked I have installed everything in 64bit and my python is also 64
  3. I'm pretty sure my python is added to the PATH, when I run python in the command line it opens the python shell.
  4. there are similar posts suggesting to download the missing .dll from the internet. I don't think that's such a good idea.

I would appreciate if you could help me know what is the problem and how I can solve it?

Upvotes: 2

Views: 3532

Answers (5)

tcd_abemis
tcd_abemis

Reputation: 11

This is an old thread, but I thought I would add the brute-force solution that worked.

The issue for me was that I cannot 'install' the older python 3.7, it messes with all my recent python 3.11 coding/work. I can't have it in my Path either.

So what I did: I downloaded the python-3.7.9-embed-amd64.zip

and just unzipped all the files into the main Ngsolve \bin\ folder, such as:

C:\Program Files\ngsolve-v6.2.2301\bin\

Netgen then runs. Brute force, but does work for anyone trying to get around the "python 3.7 dll not found" issue.

hope this is helpful.

Upvotes: 0

Said
Said

Reputation: 11

just edit environment variables to add path to python37.dll which is generally in C:\Users\YOURNAME\AppData\Local\Programs\Python

Upvotes: 0

akhmeteli
akhmeteli

Reputation: 101

I had the same problem, but in my case netgen could not find python37.dll , and I had Python 3.9 . Eventually I renamed python39.dll to python37.dll, netgen called me names ("use of python37.dll conflicts with this version of Python"), but started to work.

Upvotes: 0

Joachim Schöberl
Joachim Schöberl

Reputation: 11

Latest Netgen releases are available from http://www.ngsolve.org
They use Python 3.6

Upvotes: 1

Charles Duffy
Charles Duffy

Reputation: 295678

Python 3.6.x does not provide python35.dll.

Install a Python 3.5 interpreter.

Upvotes: 1

Related Questions