How to create a Conda environment that uses PyPy?

前端 未结 4 1766
夕颜
夕颜 2021-02-13 22:50

So here is my issue. I\'ve managed to install PyPy using conda with the following command:

conda install -c conda-forge pypy3.5

Unfortunately,

4条回答
  •  盖世英雄少女心
    2021-02-13 23:29

    Conda now supports PyPy more smoothly.

    conda config --set channel_priority strict
    conda create -c conda-forge -n pypy pypy
    conda activate pypy
    

    There's still a lot of work being done to build conda packages for pypy, but there's already a lot of compatibility. For example,

    conda install mpmath
    conda install numpy
    

    both work now.

    Reference: https://conda-forge.org/blog/posts/2020-03-10-pypy

    Also note that the official recommendation for using pip with pypy is described here, the key point of which is this:

    Best practices with pip is to always call it as -mpip ..., but if you wish to be able to call pip directly from the command line, you must call pypy -mensurepip --default-pip.

提交回复
热议问题