I’m new to the Nano but am trying to do something that we regularly do on RPi and other PCs - namely install the Raspberry Pi Meteor System (RMS). The RMS install is fairly straightforward, but it has a dependency on Python >= 3.7. So, the default install Jetson won’t work for me.
What I’ve done is…
- Install Python 3.7 w/ sudo apt install python3.7-dev
1a. I’ve also tried Python 3.8 installed from source - Create a virtual env with python3.7 -m venv vRMS (also tried with --system-site-packages and then pip’ing everything except matplotlib with a -I)
- Enter my venv with source ~/vRMS/bin/activate
- pip install --upgrade pip setuptools wheel (I end up with versions 21.0, 52.0.0, and 0.36.2 respectively)
- pip install numpy
- pip install Pillow
- pip install freetype-py pypng (also installed libfreetype and libpng system-wide)
- pip install gitpython scipy cython pyephem astropy paramiko (relevant to RMS, but doesn’t affect the outcome of the next step)
-
pip install matplotlib
9a. Try installing matplotlib from source
The output from step 9 (or 9a, for that matter) is…
Collecting matplotlib
Using cached matplotlib-3.3.3.tar.gz (37.9 MB)
ERROR: Command errored out with exit status -4:
command: /home/mike/vRMS/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rezgayjg/matplotlib_c0fbca83fd8b4552a8a22a15a6f02c6d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rezgayjg/matplotlib_c0fbca83fd8b4552a8a22a15a6f02c6d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-p8ppq7gy
cwd: /tmp/pip-install-rezgayjg/matplotlib_c0fbca83fd8b4552a8a22a15a6f02c6d/
Complete output (19 lines):
Edit setup.cfg to change the build options; suppress output with --quiet.
BUILDING MATPLOTLIB
matplotlib: yes [3.3.3]
python: yes [3.8.7 (default, Jan 25 2021, 22:49:08) [GCC 7.5.0]]
platform: yes [linux]
sample_data: yes [installing]
tests: no [skipping due to configuration]
macosx: no [Mac OS-X only]
running egg_info
creating /tmp/pip-pip-egg-info-p8ppq7gy/matplotlib.egg-info
writing /tmp/pip-pip-egg-info-p8ppq7gy/matplotlib.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-p8ppq7gy/matplotlib.egg-info/dependency_links.txt
writing namespace_packages to /tmp/pip-pip-egg-info-p8ppq7gy/matplotlib.egg-info/namespace_packages.txt
writing requirements to /tmp/pip-pip-egg-info-p8ppq7gy/matplotlib.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-p8ppq7gy/matplotlib.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-p8ppq7gy/matplotlib.egg-info/SOURCES.txt'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/7b/b3/7c48f648bf83f39d4385e0169d1b68218b838e185047f7f613b1cfc57947/matplotlib-3.3.3.tar.gz#sha256=b1b60c6476c4cfe9e5cf8ab0d3127476fd3d5f05de0f343a452badaad0e4bdec (from https://pypi.org/simple/matplotlib/) (requires-python:>=3.6). Command errored out with exit status -4: python setup.py egg_info Check the logs for full command output.
I’ve also tried installing matplotlib system-wide while not in a venv and get the same results. I’m stumped on this one. Does anyone out there have tips for installing matplotlib with Python 3.7 or 3.8?
Thanks,
Mike