pypy3 7.3.1 cannot install matplotllib

Create issue
Issue #3178 closed
Jakk created an issue

Hello, I am trying to build an environment with: 1) anaconda, 2) pypy3 and 3) matplotllib in Ubuntu16.04,

What I have done includes:

  1. conda create -n pypy
  2. conda activate pypy
  3. pypy3 -m ensurepip
  4. pypy3 -mpip install -U pip wheel
    and everything is fine so far, but when I do:
    pypy3 -mpip install numpy matplotllib
    is always failed as:
Requirement already satisfied: numpy in ./anaconda3/envs/pypy3/lib/python3.6/site-packages (1.19.0)
Collecting matplotlib
  Using cached https://mirrors.aliyun.com/pypi/packages/9c/4b/06f4aa9bef6b5e4f177881b4dedd94faa6e7cb3d95dfaeaa8a1a8b541095/matplotlib-3.2.2.tar.gz (40.3 MB)
Requirement already satisfied: cycler>=0.10 in ./anaconda3/envs/pypy3/lib/python3.6/site-packages (from matplotlib) (0.10.0)
Collecting kiwisolver>=1.0.1
  Using cached https://mirrors.aliyun.com/pypi/packages/62/b8/db619d97819afb52a3ff5ff6ad3f7de408cc83a8ec2dfb31a1731c0a97c2/kiwisolver-1.2.0.tar.gz (52 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1
  Using cached https://mirrors.aliyun.com/pypi/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting python-dateutil>=2.1
  Using cached https://mirrors.aliyun.com/pypi/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Requirement already satisfied: six in ./anaconda3/envs/pypy3/lib/python3.6/site-packages (from cycler>=0.10->matplotlib) (1.15.0)
Building wheels for collected packages: matplotlib, kiwisolver
  Building wheel for matplotlib (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/gift/anaconda3/envs/pypy3/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wlw_m9tw/matplotlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wlw_m9tw/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-k7xtz818
       cwd: /tmp/pip-install-wlw_m9tw/matplotlib/
  Complete output (585 lines):

  Edit setup.cfg to change the build options; suppress output with --quiet.

  BUILDING MATPLOTLIB
    matplotlib: yes [3.2.2]
        python: yes [3.6.9 (?, Apr 10 2020, 19:47:05) [PyPy 7.3.1 with GCC 7.3.0]]
      platform: yes [linux]
   sample_data: yes [installing]
         tests: no  [skipping due to configuration]
           agg: yes [installing]
         tkagg: yes [installing; run-time loading from Python Tcl/Tk]
        macosx: no  [Mac OS-X only]

  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  copying lib/pylab.py -> build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/matplotlib
  copying lib/matplotlib/mlab.py -> build/lib.linux-x86_64-3.6/matplotlib
  copying lib/matplotlib/textpath.py -> build/lib.linux-x86_64-3.6/matplotlib
  ...
  copying lib/matplotlib/mpl-data/stylelib/dark_background.mplstyle -> build/lib.linux-x86_64-3.6/matplotlib/mpl-data/stylelib
  copying lib/matplotlib/mpl-data/stylelib/fivethirtyeight.mplstyle -> build/lib.linux-x86_64-3.6/matplotlib/mpl-data/stylelib
  copying lib/matplotlib/mpl-data/stylelib/Solarize_Light2.mplstyle -> build/lib.linux-x86_64-3.6/matplotlib/mpl-data/stylelib
  copying lib/matplotlib/mpl-data/stylelib/seaborn-colorblind.mplstyle -> build/lib.linux-x86_64-3.6/matplotlib/mpl-data/stylelib
  copying lib/matplotlib/mpl-data/stylelib/seaborn.mplstyle -> build/lib.linux-x86_64-3.6/matplotlib/mpl-data/stylelib
  copying lib/matplotlib/mpl-data/stylelib/ggplot.mplstyle -> build/lib.linux-x86_64-3.6/matplotlib/mpl-data/stylelib
  creating build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend
  copying lib/matplotlib/backends/web_backend/nbagg_uat.ipynb -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend
  copying lib/matplotlib/backends/web_backend/all_figures.html -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend
  copying lib/matplotlib/backends/web_backend/single_figure.html -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend
  copying lib/matplotlib/backends/web_backend/ipython_inline_figure.html -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend
  creating build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/index.html -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/LICENSE.txt -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.min.js -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.js -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.css -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/AUTHORS.txt -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.structure.css -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.min.css -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.theme.min.css -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/package.json -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.structure.min.css -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/jquery-ui.theme.css -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1
  creating build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/images
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_ffffff_256x240.png -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/images
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_cc0000_256x240.png -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/images
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_444444_256x240.png -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/images
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_555555_256x240.png -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/images
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_777777_256x240.png -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/images
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/images
  creating build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/external
  creating build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/external/jquery
  copying lib/matplotlib/backends/web_backend/jquery-ui-1.12.1/external/jquery/jquery.js -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/jquery-ui-1.12.1/external/jquery
  creating build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/js
  copying lib/matplotlib/backends/web_backend/js/mpl.js -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/js
  copying lib/matplotlib/backends/web_backend/js/mpl_tornado.js -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/js
  copying lib/matplotlib/backends/web_backend/js/nbagg_mpl.js -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/js
  creating build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/css
  copying lib/matplotlib/backends/web_backend/css/page.css -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/css
  copying lib/matplotlib/backends/web_backend/css/fbm.css -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/css
  copying lib/matplotlib/backends/web_backend/css/boilerplate.css -> build/lib.linux-x86_64-3.6/matplotlib/backends/web_backend/css
  UPDATING build/lib.linux-x86_64-3.6/matplotlib/_version.py
  set build/lib.linux-x86_64-3.6/matplotlib/_version.py to '3.2.2'
  running build_ext
  building 'matplotlib.ft2font' extension
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/src
  gcc -pthread -DNDEBUG -O2 -fPIC -DFREETYPE_BUILD_TYPE=system -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -I/home/gift/anaconda3/envs/pypy3/site-packages/numpy/core/include -I/home/gift/anaconda3/envs/pypy3/include -c src/checkdep_freetype2.c -o build/temp.linux-x86_64-3.6/src/checkdep_freetype2.o -I/usr/include/freetype2
  src/checkdep_freetype2.c:15:9: note: #pragma message: Compiling with FreeType version 2.6.1.
     15 | #pragma message("Compiling with FreeType version " \
        |         ^~~~~~~
  gcc -pthread -DNDEBUG -O2 -fPIC -DFREETYPE_BUILD_TYPE=system -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -I/home/gift/anaconda3/envs/pypy3/site-packages/numpy/core/include -I/home/gift/anaconda3/envs/pypy3/include -c src/ft2font.cpp -o build/temp.linux-x86_64-3.6/src/ft2font.o -I/usr/include/freetype2
  gcc: fatal error: cannot execute cc1plus: execvp: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for matplotlib
  Running setup.py clean for matplotlib
  Building wheel for kiwisolver (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/gift/anaconda3/envs/pypy3/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wlw_m9tw/kiwisolver/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wlw_m9tw/kiwisolver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-m77uzxw9
       cwd: /tmp/pip-install-wlw_m9tw/kiwisolver/
  Complete output (11 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'kiwisolver' extension
  creating build
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/py
  gcc -pthread -DNDEBUG -O2 -fPIC -I/tmp/pip-install-wlw_m9tw/kiwisolver/.eggs/cppy-1.1.0-py3.6.egg/cppy/include -I. -I/home/gift/anaconda3/envs/pypy3/include -c py/kiwisolver.cpp -o build/temp.linux-x86_64-3.6/py/kiwisolver.o -std=c++11
  gcc: fatal error: cannot execute cc1plus: execvp: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for kiwisolver
  Running setup.py clean for kiwisolver
Failed to build matplotlib kiwisolver
Installing collected packages: kiwisolver, pyparsing, python-dateutil, matplotlib
    Running setup.py install for kiwisolver ... error
    ERROR: Command errored out with exit status 1:
     command: /home/gift/anaconda3/envs/pypy3/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wlw_m9tw/kiwisolver/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wlw_m9tw/kiwisolver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-adqyc_mk/install-record.txt --single-version-externally-managed --compile --install-headers /home/gift/anaconda3/envs/pypy3/include/kiwisolver
         cwd: /tmp/pip-install-wlw_m9tw/kiwisolver/
    Complete output (11 lines):
    running install
    running build
    running build_ext
    building 'kiwisolver' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/py
    gcc -pthread -DNDEBUG -O2 -fPIC -I/tmp/pip-install-wlw_m9tw/kiwisolver/.eggs/cppy-1.1.0-py3.6.egg/cppy/include -I. -I/home/gift/anaconda3/envs/pypy3/include -c py/kiwisolver.cpp -o build/temp.linux-x86_64-3.6/py/kiwisolver.o -std=c++11
    gcc: fatal error: cannot execute cc1plus: execvp: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/gift/anaconda3/envs/pypy3/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wlw_m9tw/kiwisolver/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wlw_m9tw/kiwisolver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-adqyc_mk/install-record.txt --single-version-externally-managed --compile --install-headers /home/gift/anaconda3/envs/pypy3/include/kiwisolver Check the logs for full command output

seems something wrong with kiwisolver?

a shorter log with ``pypy3 -mpip install kiwisolver``:

pypy3 -mpip install -i https://mirrors.aliyun.com/pypi/simple/ kiwisolver      
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting kiwisolver
  Using cached https://mirrors.aliyun.com/pypi/packages/62/b8/db619d97819afb52a3ff5ff6ad3f7de408cc83a8ec2dfb31a1731c0a97c2/kiwisolver-1.2.0.tar.gz (52 kB)
Building wheels for collected packages: kiwisolver
  Building wheel for kiwisolver (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/gift/anaconda3/envs/pypy3/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gfrnyi9q/kiwisolver/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gfrnyi9q/kiwisolver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-sqddarbd
       cwd: /tmp/pip-install-gfrnyi9q/kiwisolver/
  Complete output (11 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'kiwisolver' extension
  creating build
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/py
  gcc -pthread -DNDEBUG -O2 -fPIC -I/tmp/pip-install-gfrnyi9q/kiwisolver/.eggs/cppy-1.1.0-py3.6.egg/cppy/include -I. -I/home/gift/anaconda3/envs/pypy3/include -c py/kiwisolver.cpp -o build/temp.linux-x86_64-3.6/py/kiwisolver.o -std=c++11
  gcc: fatal error: cannot execute cc1plus: execvp: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for kiwisolver
  Running setup.py clean for kiwisolver
Failed to build kiwisolver
Installing collected packages: kiwisolver
    Running setup.py install for kiwisolver ... error
    ERROR: Command errored out with exit status 1:
     command: /home/gift/anaconda3/envs/pypy3/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gfrnyi9q/kiwisolver/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gfrnyi9q/kiwisolver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-3bbaq4ij/install-record.txt --single-version-externally-managed --compile --install-headers /home/gift/anaconda3/envs/pypy3/include/kiwisolver
         cwd: /tmp/pip-install-gfrnyi9q/kiwisolver/
    Complete output (11 lines):
    running install
    running build
    running build_ext
    building 'kiwisolver' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/py
    gcc -pthread -DNDEBUG -O2 -fPIC -I/tmp/pip-install-gfrnyi9q/kiwisolver/.eggs/cppy-1.1.0-py3.6.egg/cppy/include -I. -I/home/gift/anaconda3/envs/pypy3/include -c py/kiwisolver.cpp -o build/temp.linux-x86_64-3.6/py/kiwisolver.o -std=c++11
    gcc: fatal error: cannot execute cc1plus: execvp: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/gift/anaconda3/envs/pypy3/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gfrnyi9q/kiwisolver/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gfrnyi9q/kiwisolver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-3bbaq4ij/install-record.txt --single-version-externally-managed --compile --install-headers /home/gift/anaconda3/envs/pypy3/include/kiwisolver Check the logs for full command output.

I have tried search on stack overflow but I just cannot find a solution, any help would be appreciated, thanks!

Comments (14)

  1. mattip

    First, I would suggest you use conda install rather than pip install as per this blog post https://conda-forge.org/blog/posts/2020-03-10-pypy/ so you don’t have to build packages from source. If you look at https://conda-forge.org/status/, about half way down the page there is a bar graph of “pypy migration status”, you can see there are already 790 packages built. matplotlib is among them.

    Second, it seems you need a functioning c++ compiler. What does $c++ -dumpversion show?

  2. Jakk reporter

    Thanks for the prompt reply!

    1) I have c++ compiler:

    $ c++ -dumpversion
    5.5.0
    
    $ c++ -v
    Using built-in specs.
    COLLECT_GCC=c++
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.5.0-12ubuntu1~16.04' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu1~16.04) 
    

    2) actually, if I have tried ``conda install`` already follow the steps in https://conda-forge.org/blog/posts/2020-03-10-pypy/, and it did not work for even numpy….

    ‌ and that’s why I turn to ``pip install``. And ``pip install`` works well for ``numpy``, ``scipy``, ``pandas``, but not ``matplotlib``, ``seaborn``…

    $ conda install matplotlip
    Collecting package metadata (current_repodata.json): / 
    done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Collecting package metadata (repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    
    PackagesNotFoundError: The following packages are not available from current channels:
    
      - matplotlip
    
    Current channels:
    
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
      - https://repo.anaconda.com/pkgs/main/linux-64
      - https://repo.anaconda.com/pkgs/main/noarch
      - https://repo.anaconda.com/pkgs/r/linux-64
      - https://repo.anaconda.com/pkgs/r/noarch
    
    To search for alternate channels that may provide the conda package you're
    looking for, navigate to
    
        https://anaconda.org
    
    and use the search bar at the top of the page.
    

    for numpy:

    $ conda install numpy
    Collecting package metadata (current_repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
    Collecting package metadata (repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Solving environment: | 
    Found conflicts! Looking for incompatible packages.
    This can take several minutes.  Press CTRL-C to abort.
    failed                                                                                                                                                      
    
    UnsatisfiableError: The following specifications were found to be incompatible with each other:
    
    
    
    Package libstdcxx-ng conflicts for:
    libffi -> libstdcxx-ng[version='>=7.2.0|>=7.3.0']
    expat -> libstdcxx-ng[version='>=7.2.0|>=7.3.0']
    ncurses -> libstdcxx-ng[version='>=7.2.0|>=7.3.0']
    Package tk conflicts for:
    pypy3.6 -> tk[version='>=8.6.10,<8.7.0a0']
    Package libffi conflicts for:
    pypy3.6 -> libffi[version='>=3.2.1,<3.3.0a0']
    Package libgcc-ng conflicts for:
    expat -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    pypy3.6 -> libgcc-ng[version='>=7.3.0']
    xz -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    sqlite -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    zlib -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    ncurses -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    tk -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    numpy -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    openssl -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    gdbm -> libgcc-ng[version='>=7.3.0']
    libffi -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    readline -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    bzip2 -> libgcc-ng[version='>=7.2.0|>=7.3.0']
    Package zlib conflicts for:
    pypy3.6 -> zlib[version='>=1.2.11,<1.3.0a0']
    tk -> zlib[version='>=1.2.11,<1.3.0a0']
    sqlite -> zlib[version='>=1.2.11,<1.3.0a0']
    Package expat conflicts for:
    pypy3.6 -> expat[version='>=2.2.9,<2.3.0a0']
    Package mkl-service conflicts for:
    numpy -> mkl-service[version='>=2,<3.0a0']
    Package mkl_fft conflicts for:
    numpy -> mkl_fft[version='>=1.0.4|>=1.0.6,<2.0a0']
    Package xz conflicts for:
    pypy3.6 -> xz[version='>=5.2.5,<5.3.0a0']
    Package libgomp conflicts for:
    _openmp_mutex -> libgomp[version='>=7.3.0']
    Package openssl conflicts for:
    pypy3.6 -> openssl[version='>=1.1.1f,<1.1.2a']
    Package ca-certificates conflicts for:
    openssl -> ca-certificates
    Package _libgcc_mutex conflicts for:
    libgomp -> _libgcc_mutex==0.1=conda_forge
    _openmp_mutex -> _libgcc_mutex==0.1=conda_forge
    libgcc-ng -> _libgcc_mutex=[build=main]
    Package bzip2 conflicts for:
    pypy3.6 -> bzip2[version='>=1.0.8,<2.0a0']
    Package numpy-base conflicts for:
    numpy -> numpy-base[version='1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.11.3|1.17.2.*|1.17.3.*|1.17.4.*|1.18.1.*|1.14.3|1.14.3|1.14.3|1.14.3|1.14.3|1.14.3|1.14.4|1.14.4|1.14.4|1.14.4|1.14.4|1.14.4|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.5|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.14.6|1.15.0|1.15.0|1.15.0|1.15.0|1.15.0|1.15.0|1.15.0|1.15.0|1.15.1|1.15.1|1.15.1|1.15.1|1.15.1|1.15.1|1.15.1|1.15.1|1.15.1|1.15.1|1.15.1|1.15.1|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.2|1.15.3|1.15.3|1.15.3|1.15.3|1.15.3|1.15.3|1.15.4|1.15.4|1.15.4|1.15.4|1.15.4|1.15.4|1.15.4|1.15.4|1.15.4|1.16.0|1.16.0|1.16.0|1.16.0|1.16.0|1.16.0|1.16.0|1.16.0|1.16.0|1.16.0|1.16.0|1.16.0|1.16.1|1.16.1|1.16.1|1.16.1|1.16.1|1.16.1|1.16.1|1.16.1|1.16.1|1.16.1|1.16.1|1.16.1|1.16.2|1.16.2|1.16.2|1.16.2|1.16.2|1.16.2|1.16.3|1.16.3|1.16.3|1.16.3|1.16.3|1.16.3|1.16.4|1.16.4|1.16.4|1.16.4|1.16.4|1.16.4|1.16.5|1.16.5|1.16.5|1.16.5|1.16.5|1.16.5|1.16.6|1.16.6|1.16.6|1.16.6|1.16.6|1.16.6|1.16.6|1.16.6|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|1.9.3|>=1.9.3,<2.0a0',build='py37hdbf6ddf_7|py37hdbf6ddf_6|py37h2b20989_7|py37h2b20989_6|py36hdbf6ddf_7|py36h2b20989_7|py36h2b20989_6|py27h2b20989_6|py38hde5b4d6_0|py37h2f8d375_0|py36hde5b4d6_0|py27h2f8d375_0|py37hde5b4d6_0|py36hde5b4d6_0|py27hde5b4d6_0|py36hde5b4d6_0|py27h2f8d375_0|py36hde5b4d6_0|py36h2f8d375_0|py27h2f8d375_0|py36hde5b4d6_0|py27hde5b4d6_0|py27h2f8d375_0|py37hde5b4d6_1|py36hde5b4d6_1|py36hde5b4d6_0|py36h2f8d375_1|py27hde5b4d6_0|py27h2f8d375_1|py37hde5b4d6_1|py37h2f8d375_1|py36hde5b4d6_1|py36hde5b4d6_0|py36h2f8d375_1|py27hde5b4d6_1|py27h2f8d375_1|py37h81de0dd_0|py36h81de0dd_0|py27h81de0dd_0|py27h2f8d375_0|py36h81de0dd_0|py27h2f8d375_0|py37h2f8d375_0|py36h81de0dd_0|py36h2f8d375_1|py35h81de0dd_0|py35h2f8d375_0|py27h81de0dd_0|py27h2f8d375_0|py37h81de0dd_0|py37h74e8950_0|py36h81de0dd_0|py27h81de0dd_0|py27h2f8d375_0|py36h3dfced4_0|py35h7cdd4dd_0|py27h3dfced4_0|py38h2f8d375_4|py37hde5b4d6_5|py37h81de0dd_4|py37h2f8d375_5|py36hde5b4d6_5|py36h81de0dd_4|py36h2f8d375_5|py35h2f8d375_4|py27hde5b4d6_5|py27h2f8d375_4|py37hdbf6ddf_4|py37hdbf6ddf_2|py37h2b20989_3|py37h2b20989_2|py36hdbf6ddf_4|py36hdbf6ddf_3|py36hdbf6ddf_1|py36hdbf6ddf_0|py36h2b20989_4|py36h2b20989_1|py35h2b20989_4|py27hdbf6ddf_4|py27hdbf6ddf_2|py27hdbf6ddf_1|py27h2b20989_4|py27h2b20989_2|py27h2b20989_1|py36hdbf6ddf_0|py35hdbf6ddf_0|py27hdbf6ddf_0|py36h9be14a7_1|py35h9be14a7_1|py27h9be14a7_1|py27h0ea5e3f_1|py38hde5b4d6_12|py38h2f8d375_12|py37hdbf6ddf_7|py37h81de0dd_9|py37h7cdd4dd_9|py37h74e8950_9|py37h74e8950_10|py37h3dfced4_9|py37h2f8d375_10|py37h2b20989_8|py37h2b20989_7|py36hde5b4d6_12|py36hde5b4d6_11|py36hdbf6ddf_8|py36hdbf6ddf_7|py36h81de0dd_10|py36h7cdd4dd_9|py36h2f8d375_12|py36h2f8d375_11|py35hdbf6ddf_8|py35h81de0dd_9|py35h81de0dd_10|py35h74e8950_10|py35h3dfced4_9|py35h2f8d375_10|py27hde5b4d6_12|py27hde5b4d6_11|py27hdbf6ddf_8|py27hdbf6ddf_7|py27h81de0dd_9|py27h81de0dd_10|py27h7cdd4dd_9|py27h3dfced4_9|py27h2f8d375_12|py27h2b20989_8|py27h2b20989_7|py27h2f8d375_10|py27h2f8d375_11|py27h74e8950_10|py27h74e8950_9|py35h2b20989_8|py35h74e8950_9|py35h7cdd4dd_9|py36h2b20989_7|py36h2b20989_8|py36h2f8d375_10|py36h3dfced4_9|py36h74e8950_10|py36h74e8950_9|py36h81de0dd_9|py37h2f8d375_11|py37h2f8d375_12|py37h81de0dd_10|py37hdbf6ddf_8|py37hde5b4d6_11|py37hde5b4d6_12|py35h0ea5e3f_1|py36h0ea5e3f_1|py27h2b20989_0|py35h2b20989_0|py36h2b20989_0|py27h2b20989_0|py27h2b20989_3|py27hdbf6ddf_0|py27hdbf6ddf_3|py35hdbf6ddf_0|py35hdbf6ddf_4|py36h2b20989_0|py36h2b20989_2|py36h2b20989_3|py36hdbf6ddf_2|py37h2b20989_1|py37h2b20989_4|py37hdbf6ddf_1|py37hdbf6ddf_3|py27h2f8d375_5|py27h81de0dd_4|py35h81de0dd_4|py36h2f8d375_4|py37h2f8d375_4|py38hde5b4d6_4|py27h7cdd4dd_0|py35h3dfced4_0|py36h7cdd4dd_0|py37h3dfced4_0|py37h7cdd4dd_0|py27h74e8950_0|py35h2f8d375_0|py35h74e8950_0|py35h81de0dd_0|py36h2f8d375_0|py36h74e8950_0|py37h2f8d375_0|py27h2f8d375_1|py27h81de0dd_1|py36h2f8d375_0|py36h81de0dd_1|py37h2f8d375_1|py37h81de0dd_0|py37h81de0dd_1|py27h81de0dd_0|py36h2f8d375_0|py37h2f8d375_0|py37h81de0dd_0|py27hde5b4d6_0|py36h2f8d375_0|py36hde5b4d6_0|py37h2f8d375_0|py37hde5b4d6_0|py27h2f8d375_0|py27hde5b4d6_0|py36h2f8d375_0|py37h2f8d375_0|py37hde5b4d6_0|py27h2f8d375_0|py27hde5b4d6_1|py36h2f8d375_0|py37h2f8d375_0|py37h2f8d375_1|py37hde5b4d6_0|py36h2f8d375_0|py37h2f8d375_0|py37hde5b4d6_0|py27hde5b4d6_0|py37h2f8d375_0|py37hde5b4d6_0|py27hde5b4d6_0|py36h2f8d375_0|py37h2f8d375_0|py37hde5b4d6_0|py27h2f8d375_0|py36h2f8d375_0|py37h2f8d375_0|py27hde5b4d6_0|py36h2f8d375_0|py37hde5b4d6_0|py38h2f8d375_0|py27h2b20989_7|py27hdbf6ddf_6|py27hdbf6ddf_7|py35h2b20989_7|py35hdbf6ddf_7|py36hdbf6ddf_6']
    Package libgfortran-ng conflicts for:
    numpy -> libgfortran-ng[version='>=7,<8.0a0|>=7.2.0,<8.0a0']
    Package blas conflicts for:
    numpy -> blas[version='*|*|1.0',build='mkl|mkl|openblas|openblas']
    Package openmp_impl conflicts for:
    _openmp_mutex -> openmp_impl==9999
    Package ncurses conflicts for:
    pypy3.6 -> ncurses[version='>=6.1,<6.2.0a0']
    sqlite -> ncurses[version='>=6.2,<7.0a0']
    readline -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0']
    Package readline conflicts for:
    gdbm -> readline[version='>=8.0,<9.0a0']
    Package sqlite conflicts for:
    pypy3.6 -> sqlite[version='>=3.30.1,<4.0a0']
    Package mkl_random conflicts for:
    numpy -> mkl_random[version='>=1.0.2,<2.0a0']
    Package pypy3.5 conflicts for:
    pypy3.6 -> pypy3.5==99999999999
    Package gdbm conflicts for:
    pypy3.6 -> gdbm[version='>=1.18,<1.19.0a0']
    Package python conflicts for:
    numpy -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0']
    Package mkl conflicts for:
    numpy -> mkl[version='>=2018.0.0,<2019.0a0|>=2018.0.1,<2019.0a0|>=2018.0.2,<2019.0a0|>=2018.0.3,<2019.0a0|>=2019.1,<2021.0a0|>=2019.3,<2021.0a0|>=2019.4,<2021.0a0']
    Package libedit conflicts for:
    sqlite -> libedit[version='>=3.1.20170329,<3.2.0a0|>=3.1.20181209,<3.2.0a0']
    Package libopenblas conflicts for:
    numpy -> libopenblas[version='>=0.2.20,<0.2.21.0a0|>=0.3.2,<0.3.3.0a0|>=0.3.3,<1.0a0']
    Note that strict channel priority may have removed packages required for satisfiability
    

  3. mattip

    I have tried ``conda install`` already … and it did not work for even numpy

    That is not good. It would save users a lot of pain if that worked.

    As for the original error, the problem seems to be this error message:

    gcc: fatal error: cannot execute cc1plus: execvp: \
    No such file or directory
    

    This answer suggests you need to install g++: sudo apt-get install g++`

  4. mattip

    This works for me, using conda 4.8.3:

    conda config --set channel_priority strict
    conda create -n pypy pypy
    

    then it asks whether to proceed, I answer y

    conda activate pypy
    # make sure my prompt changes to `(pypy) $`
    conda install numpy
    

  5. Jakk reporter

    I have g++, and I guess it's my Internet problem...will try another way to change the channel later

    conda install matplotlip
    Collecting package metadata (current_repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Collecting package metadata (repodata.json): failed
    
    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/linux-64/repodata.json>
    Elapsed: -
    
    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.
    ConnectionError(ReadTimeoutError("HTTPSConnectionPool(host='conda.anaconda.org', port=443): Read timed out.")
    

  6. Jakk reporter
    • Now I can install numpy with conda, after I try :
    conda config --set channel_priority strict
    conda create -n pypy pypy
    conda activate pypy
    
    • but still cannot install matplotlib
    $ conda install matplotlib
    Collecting package metadata (current_repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
    Collecting package metadata (repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Solving environment: / 
    Found conflicts! Looking for incompatible packages.
    This can take several minutes.  Press CTRL-C to abort.
    Examining conflict for python_abi readline setuptools wheel certifi pypy3.6 sqlite matplotlib numpy pip python gdbm:  21%|████████████▏                                              | 7/34 [00:20<01:34,  3.48s
    Examining conflict for python_abi readline setuptools wheel certifi pypy3.6 _openmp_mutex sqlite ncurses libstdcxx-ng numpy python matplotlib pip libopenblas expat libffi:  21%|| 7/34 [00:24<01:34,  3.48s
    Examining conflict for python_abi readline setuptools wheel certifi pypy3.6 _openmp_mutex sqlite ncurses libstdcxx-ng numpy python matplotlib pip libopenblas expat libffi:  24%|| 8/34 [00:24<01:35,  3.67s
    Examining conflict for python_abi setuptools wheel openssl certifi pypy3.6 matplotlib numpy pip python:  24%|████████████████▉         
    ......
    
    UnsatisfiableError: The following specifications were found to be incompatible with a past
    explicit spec that is not an explicit spec in this operation (numpy):
    
      - matplotlib -> matplotlib-base==3.1.0=py37h5f35d83_0 -> numpy[version='>=1.11.3,<2.0a0|>=1.9.3,<2.0a0']
      - matplotlib -> numpy[version='1.10.*|1.11.*|1.13.*|1.12.*|1.9.*|1.8.*|1.7.*|1.6.*|1.5.*|>=1.14.6,<2.0a0']
    
    The following specifications were found to be incompatible with each other:
    
    Output in format: Requested package -> Available versions
    
    Package _libgcc_mutex conflicts for:
    libcblas -> libgcc-ng[version='>=7.3.0'] -> _libgcc_mutex[version='*|0.1',build='conda_forge|main']
    liblapack -> libgcc-ng[version='>=7.3.0'] -> _libgcc_mutex[version='*|0.1',build='conda_forge|main']
    zlib -> libgcc-ng[version='>=7.3.0'] -> _libgcc_mutex[version='*|0.1',build='conda_forge|main']
    openssl -> libgcc-ng[version='>=7.3.0'] -> _libgcc_mutex[version='*|0.1',build='conda_forge|main']
    numpy -> libgcc-ng[version='>=7.5.0'] -> _libgcc_mutex[version='*|0.1',build='conda_forge|main']
    sqlite -> libgcc-ng[version='>=7.3.0'] -> _libgcc_mutex[version='*|0.1',build='conda_forge|main']
    
    ....
    
    Package setuptools conflicts for:
    python=3.6 -> pip -> setuptools
    setuptools
    numpy -> nose -> setuptools
    matplotlib -> setuptools
    wheel -> setuptools
    pip -> setuptools
    ....
    
    Package blis conflicts for:
    libblas -> blis[version='0.5.1.*|>=0.5.2,<0.5.3.0a0|>=0.6.0,<0.6.1.0a0|>=0.6.1,<0.6.2.0a0']
    numpy -> libblas[version='>=3.8.0,<4.0a0'] -> blis[version='0.5.1.*|>=0.5.2,<0.5.3.0a0|>=0.6.0,<0.6.1.0a0|>=0.6.1,<0.6.2.0a0']
    liblapack -> libblas=3.8.0 -> blis[version='0.5.1.*|>=0.5.2,<0.5.3.0a0|>=0.6.0,<0.6.1.0a0|>=0.6.1,<0.6.2.0a0']
    libcblas -> libblas==3.8.0=15_blis -> blis[version='0.5.1.*|>=0.5.2,<0.5.3.0a0|>=0.6.0,<0.6.1.0a0|>=0.6.1,<0.6.2.0a0']The following specifications were found to be incompatible with your CUDA driver:
    
      - feature:/linux-64::__cuda==10.2=0
      - feature:|@/linux-64::__cuda==10.2=0
    
    Your installed CUDA driver is: 10.2
    
    Note that strict channel priority may have removed packages required for satisfiability.
    

  7. Log in to comment