I’m having a problem while install mayavi in Jetson TX2. I’m trying to solve this error for several days unfortunately it stills not success yet, I’m looking forward to receive the advice from your site. Thank you in advance!
After that I install mayavi inside the python virtual environment by command: “pip install mayavi”
The error appeared as below:
(jetsontx2_env) tony@dovanhuong:~$ pip install mayavi
Collecting mayavi
Using cached mayavi-4.7.1.tar.bz2 (7.0 MB)
Requirement already satisfied: apptools in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (4.5.0)
Requirement already satisfied: envisage in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (4.9.2)
Requirement already satisfied: numpy in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (1.19.1)
Requirement already satisfied: pyface>=6.1.1 in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (7.0.1)
Requirement already satisfied: pygments in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (2.6.1)
Requirement already satisfied: traits>=4.6.0 in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (6.1.1)
Requirement already satisfied: traitsui>=6.0.0 in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (7.0.1)
ERROR: Could not find a version that satisfies the requirement vtk (from mayavi) (from versions: none)
** ERROR: No matching distribution found for vtk (from mayavi)**
When I tested VTK after install i think it worked as below:
tony@dovanhuong:~$ python
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import vtk
quit()
tony@dovanhuong:~$ python3
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import vtk
quit()
However, when I install mayavi it appeared the error as description in above!
When I applied your command, it worked!
Unfortunately, when I execute with python for import mayavi packages, it is not imported success:
(jetsontx2_env) tony@dovanhuong:~/inference_jetson_tx2_yolo_complex/src$ python
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import mayavi
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘mayavi’
quit()
Hello @ShaneCCC!
I tried with the link you sent, unfortunately, it was not success and the error still the same. I used Python Virtual environment:
(jetsontx2_env) tony@dovanhuong:~$ pip install mayavi
Collecting mayavi
Using cached mayavi-4.7.1.tar.bz2 (7.0 MB)
Requirement already satisfied: apptools in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (4.5.0)
Requirement already satisfied: envisage in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (4.9.2)
Requirement already satisfied: numpy in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (1.19.1)
Requirement already satisfied: pyface>=6.1.1 in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (7.0.1)
Requirement already satisfied: pygments in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (2.6.1)
Requirement already satisfied: traits>=4.6.0 in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (6.1.1)
Requirement already satisfied: traitsui>=6.0.0 in ./jetsontx2_env/lib/python3.6/site-packages (from mayavi) (7.0.1)
ERROR: Could not find a version that satisfies the requirement vtk (from mayavi) (from versions: none)
ERROR: No matching distribution found for vtk (from mayavi)
In addition, If I try to install “VTK” via “pip install vtk” inside the python virtual environment, it have the same error as below:
(jetsontx2_env) tony@dovanhuong:~$ pip install vtk
ERROR: Could not find a version that satisfies the requirement vtk (from versions: none)
ERROR: No matching distribution found for vtk
I tried with your suggestion and recomendation, unfortunately it was not success to install in python2 environment for both VTK and “mayavi” packages. The error shown as below:
(python2_env) tony@dovanhuong:~$ pip install vtk
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at Release process - pip documentation v22.3.dev0
ERROR: Could not find a version that satisfies the requirement vtk (from versions: none)
ERROR: No matching distribution found for vtk
WARNING: You are using pip version 20.2.1; however, version 20.2.2 is available.
You should consider upgrading via the ‘/home/tony/python2_env/bin/python -m pip install --upgrade pip’ command.
(python2_env) tony@dovanhuong:~$ pip install mayavi
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at Release process - pip documentation v22.3.dev0
Collecting mayavi
Using cached mayavi-4.7.1.tar.bz2 (7.0 MB)
Collecting apptools
Using cached apptools-4.5.0.tar.gz (297 kB)
Collecting envisage
Using cached envisage-4.9.2.tar.gz (518 kB)
Collecting numpy
Using cached numpy-1.16.6.zip (5.1 MB)
Collecting pyface>=6.1.1
Using cached pyface-7.0.1.tar.gz (5.4 MB)
Collecting pygments
Using cached Pygments-2.5.2-py2.py3-none-any.whl (896 kB)
Collecting traits>=4.6.0
Using cached traits-5.2.0.tar.gz (423 kB)
Collecting traitsui>=6.0.0
Using cached traitsui-7.0.1.tar.gz (5.2 MB)
ERROR: Could not find a version that satisfies the requirement vtk (from mayavi) (from versions: none)
ERROR: No matching distribution found for vtk (from mayavi)
WARNING: You are using pip version 20.2.1; however, version 20.2.2 is available.
You should consider upgrading via the ‘/home/tony/python2_env/bin/python -m pip install --upgrade pip’ command.
However, I would like to import mayavi in python2 virtual environment, it was not successed. The error as below:
tony@dovanhuong:~$ python2
Python 2.7.17 (default, Jul 20 2020, 15:37:01)
[GCC 7.5.0] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
import mayavi
quit()
tony@dovanhuong:~$ source python2_env/bin/activate
(python2_env) tony@dovanhuong:~$ python2
Python 2.7.17 (default, Jul 20 2020, 15:37:01)
[GCC 7.5.0] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
import mayavi
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named mayavi
do you have any suggestion or recommend how to import that packages inside python virtual environment?
Thanks expert so much~~~