0

I am learning python and want to setup PyDIP. I followed https://github.com/DIPlib/diplib/blob/master/INSTALL_Windows.md steps and I can't import PyDIP.

CMake page

Visual Studio1

Visual Studio2

Error Pythn

paths

Brows

What is my issue? I haven't use Cmake or Visual Studio. I don't have any experience with Python binary's or wheels.

  • When I viewed the page, The instructions were clearly given. Please tell what exactly is the problem. If I am not wrong, its ```No module name PyDIP``` –  May 16 '21 at 11:22
  • Yes , ModuleNotFoundError: No module named 'PyDIP' – Tayyip Kandemir May 16 '21 at 11:48
  • When you run the `pip_install` target, make sure that the Python environment you run it in is the same as the Python environment that you want to use the package in. – Cris Luengo May 16 '21 at 13:28
  • Also, the documentation you link instructs to use `import diplib as dip` not `import PyDIP as dip`. Did you find an old bit of code that imports `PyDIP`? I’d like to fix those, please point me to it. – Cris Luengo May 16 '21 at 15:47
  • @CrisLuengo thanks for your intereset . Yes I typed `import diplib as dip` and it yielded same error. When i tried both PyDIP and diplib in Visual Studio 2019 `No module named 'diplib.PyDIP_bin` error occured. I' am crious if i typed just pip install diplib what kind of library i get. When i tried i couldn't use `SetPixelSize(dip.PixelSize(dip.PhysicalQuantity` commands and so on. Thank you. – Tayyip Kandemir May 17 '21 at 19:39
  • Do you need the latest version? Or would the official 3.0.0 release be OK? If so, just `pip install diplib` should do the trick. Just make sure that you install it within whatever virtual environment you want to use it in. I have the feeling that the `pip_install` target was not run in the right Python virtual environment. – Cris Luengo May 17 '21 at 19:43
  • @CrisLuengo thank you so much. – Tayyip Kandemir May 17 '21 at 20:14

0 Answers0