I have a Linux-64 bit machine. How do I install PyPy in my anaconda environment. I tried conda install pypy. It says there are no available packages. pip install pypy also returns a similar message. Is it that the only way to install PyPy is by downloading the tar.gz file from the website? Once installed, how do I configure my Anaconda environment in such a way so as to be able to switch from PyPy to other Python implementations when required?
You can install PyPy3 from conda-forge:
conda install -c conda-forge pypy3.6
And then use it like your regular python executable (notice that this is a different Python interpreter, not a package)
pypy3 -c "import sys; print(sys.version)"
It works on Linux and OSX.
There is an alternative approach maintained by Riccardo Vianello on GitHub:
https://github.com/rvianello/conda-pypy
It basically involves using his conda channel instead of the default one to install necessary packages. Some basic ones are provided.
Puppy's version support can found here: http://pypy.org/download.html.
It is distributed specific, so if you don't have a supported district you can. Try using the build option.
Without more info on your Linux and python versions, it is hard to add more.
来源:https://stackoverflow.com/questions/29056963/how-to-install-pypy-in-anaconda