Scikit-image for Jetson TX2

Hello Dear community

I’ve installed the latest jetpack to my Jetson Tx2 (4.3).
I’m trying to install scikit-image by following bellow command:

sudo pip install scikit-image

However I received a lot of errors as attached LOG.

Basically at the end, it says below:

Successfully built scikit-image matplotlib pillow PyWavelets kiwisolver
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly

This means scikit-image successfully installed?

It says failed to build scipy, however when I check scipy version, it was successfully installed as below.

nvidia@nvidia-desktop:~$ python
Python 2.7.17 (default, Nov  7 2019, 10:07:09) 
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> scipy.__version__
'1.2.3'

Now I’m not sure weather scikit-image successfully installed or not.
Please advise.

Thank you.
LOG_scikit-image.log (271 KB)

Hello,

I tried install using below

sudo -H pip3 install sklearn

And found errors as attached.
Please advise.
LOG_sklearn.log (268 KB)

Have try below.

sudo apt install liblapack-dev
sudo apt install libblas-dev
sudo apt install gfortran
pip install scipy

Also have a try below link

https://ubuntu1804.blogspot.com/2019/08/jetson-nano-python3-install-scikit-image.html

Hello ShaneCCC,

Thank you for your advise.

I could install scipy and scikit-image successfully.

TX2 PIP list:

Package                       Version            
----------------------------- -------------------
apturl                        0.5.2              
asgiref                       3.2.3              
asn1crypto                    0.24.0             
attrs                         19.3.0             
beautifulsoup4                4.6.0              
bleach                        3.1.1              
blinker                       1.4                
Brlapi                        0.6.6              
certifi                       2018.1.18          
chardet                       3.0.4              
cryptography                  2.1.4              
cupshelpers                   1.0                
cycler                        0.10.0             
Cython                        0.29.15            
decorator                     4.4.2              
defer                         1.0.6              
defusedxml                    0.6.0              
distro-info                   0.18ubuntu0.18.04.1
Django                        3.0.4              
entrypoints                   0.3                
feedparser                    5.2.1              
graphsurgeon                  0.4.1              
h5py                          2.6.0              
html5lib                      0.999999999        
httplib2                      0.9.2              
idna                          2.6                
image                         1.5.28             
imageio                       2.8.0              
importlib-metadata            1.5.0              
ipykernel                     5.1.4              
ipython                       5.9.0              
ipython-genutils              0.2.0              
Jetson.GPIO                   2.0.4              
Jinja2                        2.11.1             
joblib                        0.14.1             
json5                         0.9.2              
jsonschema                    3.2.0              
jupyter-client                6.0.0              
jupyter-core                  4.6.3              
jupyterlab                    2.0.1              
jupyterlab-server             1.0.7              
keyring                       10.6.0             
keyrings.alt                  3.0                
kiwisolver                    1.1.0              
language-selector             0.1                
launchpadlib                  1.10.6             
lazr.restfulclient            0.13.5             
lazr.uri                      1.0.3              
leveldb                       0.201              
louis                         3.5.0              
lxml                          4.2.1              
macaroonbakery                1.1.3              
Mako                          1.0.7              
MarkupSafe                    1.0                
matplotlib                    3.2.0              
mistune                       0.8.4              
nbconvert                     5.6.1              
nbformat                      5.0.4              
networkx                      2.4                
nose                          1.3.7              
notebook                      6.0.3              
numpy                         1.14.5             
oauth                         1.0.1              
oauthlib                      2.0.6              
olefile                       0.45.1             
pandas                        1.0.1              
pandocfilters                 1.4.2              
pbr                           5.4.4              
pexpect                       4.8.0              
pickleshare                   0.7.5              
Pillow                        5.1.0              
pip                           20.0.2             
prometheus-client             0.7.1              
prompt-toolkit                1.0.18             
protobuf                      3.11.3             
ptyprocess                    0.6.0              
pycairo                       1.16.2             
pycrypto                      2.6.1              
pycups                        1.9.73             
pydotplus                     2.0.2              
Pygments                      2.6.1              
pygobject                     3.26.1             
PyJWT                         1.5.3              
pymacaroons                   0.13.0             
PyNaCl                        1.1.2              
pyparsing                     2.4.6              
pyRFC3339                     1.0                
pyrsistent                    0.15.7             
python-apt                    1.6.5+ubuntu0.2    
python-dateutil               2.6.1              
python-debian                 0.1.32             
python-gflags                 3.1.2              
pytz                          2018.3             
PyWavelets                    1.1.1              
pyxdg                         0.25               
PyYAML                        3.12               
pyzmq                         19.0.0             
requests                      2.18.4             
requests-unixsocket           0.1.5              
scikit-image                  0.16.2             
scikit-learn                  0.22.2.post1       
scipy                         0.17.0             
SecretStorage                 2.3.1              
Send2Trash                    1.5.0              
setuptools                    45.3.0             
simplegeneric                 0.8.1              
simplejson                    3.13.2             
six                           1.10.0             
sklearn                       0.0                
sqlparse                      0.3.1              
ssh-import-id                 5.7                
system-service                0.3                
systemd-python                234                
tensorrt                      6.0.1.10           
terminado                     0.8.3              
testpath                      0.4.4              
testresources                 2.0.1              
tornado                       6.0.4              
traitlets                     4.3.3              
ubuntu-drivers-common         0.0.0              
uff                           0.6.5              
unity-scope-calculator        0.1                
unity-scope-chromiumbookmarks 0.1                
unity-scope-colourlovers      0.1                
unity-scope-devhelp           0.1                
unity-scope-firefoxbookmarks  0.1                
unity-scope-manpages          0.1                
unity-scope-openclipart       0.1                
unity-scope-texdoc            0.1                
unity-scope-tomboy            0.1                
unity-scope-virtualbox        0.1                
unity-scope-yelp              0.1                
unity-scope-zotero            0.1                
urllib3                       1.22               
wadllib                       1.3.2              
wcwidth                       0.1.8              
webencodings                  0.5                
wheel                         0.34.2             
xkit                          0.0.0              
zipp                          3.1.0              
zope.interface                4.3.2

However, when I check version of skimage, error occurs as below:

nvidia@nvidia-desktop:~$ python
Python 2.7.17 (default, Nov  7 2019, 10:07:09) 
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import skimage
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named skimage
>>>

I’m confused.
Please advise.

Thank you.

Hello ShaneCCC,

It is working with python3.5.
Not working for python2.7.

Not sure why, but somehow could manage to use with python3.5.

Thanks.

I have it for python3.6, but I have an old project that needs 2.7 and can’t get skimage to work. Anyone have tips for old python?