enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.3k stars 284 forks source link

requirements.txt file missing from mayavi main directory #1093

Open SM1991CODES opened 2 years ago

SM1991CODES commented 2 years ago

Hi,

I am trying to follow the instructions to install mayavi from github.

after git clone and cd mayavi, the requirements.txt file is missing.

Therefore the pip install -r requirements.txt step fails Please help.

Best Regards Sambit

rahulporuri commented 2 years ago

@SM1991CODES apologies for the confusion in the README. We removed the requirements.txt but we didn't update the README.

You should be able to install mayavi using the following commands -

python -m pip install vtk==9.0.1 numpy  # these are required to build mayavi
python -m pip install .[app]  # this will install mayavi with all of the necessary requirements/dependencies

Does that help? We'll update the README to remove this confusion.

SM1991CODES commented 2 years ago

Thanks for the update @rahulporuri . I will try that and let you know.

Another question - I am not able to install Mayavi with pip instructions, pip install mayavi almost always fails on Python3.7+. Any idea what needs to be done? The installation just hangs after a few error messages (in red) in between.

Also, most of the time with the git repo installation method, I have faced error messages like no qt plugin or no backend for traitsui.... I solve this by installing some additional packages like pyside2 etc. But I was wondering if there is a permanent fix to this.

Please let me know.

Best Regards Sambit