mayavi icon indicating copy to clipboard operation
mayavi copied to clipboard

No candidate found for requirement 'mayavi'

Open JaapLeguijt opened this issue 3 months ago • 7 comments

Hello, I recently installed the newest version of edm (4.1.1) and when I tried to install mayavi I got the message that mayavi is not available. pip install mayavi did not work either as this resulted in many pages of messages with all kind of complaints. My preference would be to install mayavi from the enthought repositories. Is there anything I can do to make this working?

Kind regards,

Jaap Leguijt

[email protected]

JaapLeguijt avatar Oct 11 '25 20:10 JaapLeguijt

In the meantime, I tried anaconda to install mayavi on my computer and it failed as well. On my windows 10 computer I am running edm 3.0.1 and within this version of edm I was able, a long time ago, to install mayavi without any problems. Does it help to go back to one of the older versions of edm?

JaapLeguijt avatar Oct 12 '25 10:10 JaapLeguijt

@JaapLeguijt you have to specify the target Python version. If you're on linux, with the latest edm, you can install it using edm install --version 3.8 --platform rh7-x86_64 mayavi

dpinte avatar Oct 12 '25 12:10 dpinte

Hello Didrik,

It is a long time ago. I am still using Enthought. I tried the install command that you suggested on Linux, but I got the following error message: "Environment 'edm' already exists, --version cannot be used". If I try "edm install --platform rh7-x86_64 mayavi" then the message is "'edm' already exists, --arch/--platform cannot be used".

I run edm both on Linux and on Window 11 and on both platforms I run in the same problems with mayavi. Unitil now, I have no problems with all the other repositories that I use.

Kind regards,

Jaap Leguijt

JaapLeguijt avatar Oct 12 '25 14:10 JaapLeguijt

This happens on my Linus machine.

jaap@linux:~> edm install mayavi Fetching indices for package repositories. done No candidate found for requirement 'mayavi'

JaapLeguijt avatar Oct 12 '25 14:10 JaapLeguijt

If you don't specify an environment, edm will use the default one which might not be an environment using the appropriate version and platform. On linux the default platform and version is rh8 and python 3.11.

To ensure some isolation, let's create a dedicated environnent for mayavi

$ edm env create --version 3.8 --platform rh7-x86_64 mayavi_env
$ edm install -e mayavi_env mayavi
$ edm shell -e mayavi_env
$ mayavi 

(for Windows, just remove the --platform rh7-x86_64 and it should work)

dpinte avatar Oct 12 '25 15:10 dpinte

With your advice, I was able to install mayavi in Linux and in Windows 11. I was confused about the need to use python 3.8. Does this mean that eventually a version of mayavi is available which run with python 3.11? This is just out of curiosity.

JaapLeguijt avatar Oct 12 '25 18:10 JaapLeguijt

@JaapLeguijt It is not prioritized currently.

dpinte avatar Oct 16 '25 21:10 dpinte