No candidate found for requirement 'mayavi'
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
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 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
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
This happens on my Linus machine.
jaap@linux:~> edm install mayavi Fetching indices for package repositories. done No candidate found for requirement 'mayavi'
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)
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 It is not prioritized currently.