如何在Anaconda中安装PyPy [英] How to install PyPy in anaconda

查看:2157
本文介绍了如何在Anaconda中安装PyPy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台Linux-64位计算机.如何在anaconda环境中安装PyPy.我尝试了conda install pypy.它说没有可用的软件包. pip install pypy也返回类似的消息.安装PyPy的唯一方法是从网站下载tar.gz文件吗?安装后,如何配置Anaconda环境,以便能够在需要时从PyPy切换到其他Python实现?

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?

推荐答案

您可以从conda安装 PyPy3 -forge :

You can install PyPy3 from conda-forge:

conda install -c conda-forge pypy3.6

然后像常规的python可执行文件一样使用它(请注意,这是一个不同的Python解释器,而不是程序包)

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)"

它可以在Linux和OSX上运行.

It works on Linux and OSX.

这篇关于如何在Anaconda中安装PyPy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆