How to install PYPY3 on Ubuntu, for newbies?
I want to install pypy3 in Ubuntu. I have read the answer for this question "How to install PyPy3 (2.1, beta) on Ubuntu?" and still have no idea what to do. Could some kind soul please explain it so that even I can understand it :)
Here's what I have done so far:
Went here
Read that I had to go here
Downloaded: pypy3-2.1-beta-linux_x86_64-portable.tar.bz2
Opened it with the Archive manager (because it seemed like a reasonable thing to do)
Extracted it to desktop/PYPY3
Then desperately tried all the shell commands I came across last night. I will not be able to give a clear account of what I tried and what errors came back, as it is kind of a blur to me at this point.
But I can tell you that I got the Tar thing unpacked at one point and that I have tried running the pypy executable from the command line from the folder containing it, but got this:
bash: /usr/bin/pypy: No such file or directory
Could someone please tell me what to do. (have read the readme, the install docs at pypy.org and lots of posts)
software-installation
add a comment |
I want to install pypy3 in Ubuntu. I have read the answer for this question "How to install PyPy3 (2.1, beta) on Ubuntu?" and still have no idea what to do. Could some kind soul please explain it so that even I can understand it :)
Here's what I have done so far:
Went here
Read that I had to go here
Downloaded: pypy3-2.1-beta-linux_x86_64-portable.tar.bz2
Opened it with the Archive manager (because it seemed like a reasonable thing to do)
Extracted it to desktop/PYPY3
Then desperately tried all the shell commands I came across last night. I will not be able to give a clear account of what I tried and what errors came back, as it is kind of a blur to me at this point.
But I can tell you that I got the Tar thing unpacked at one point and that I have tried running the pypy executable from the command line from the folder containing it, but got this:
bash: /usr/bin/pypy: No such file or directory
Could someone please tell me what to do. (have read the readme, the install docs at pypy.org and lots of posts)
software-installation
1
Did you have a look at this: askubuntu.com/questions/360187/…?
– jobin
Apr 1 '14 at 14:58
yes, and I tried to follow the instructions, spent hours on it actually. What was hoping for was a dumbed down version I could follow.
– user1998723
Apr 1 '14 at 15:03
The answer to that question seems pretty simple, what in it could you not digest- list it explicity?
– jobin
Apr 1 '14 at 15:09
I've just re read the question again. He says he is able to run the pypy binary through the terminal. I'm not that far yet. Therefore the rest of the answer is not directly aplicable to me. in the readme of the download it says to run this linerpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py
to install pypy, this gives me a No such file or directory error. I think this is what I need to get working
– user1998723
Apr 1 '14 at 15:27
I have a similar problem. I've downloaded it into$HOME
, extracted viatar
went intopypy3-v5.10.1-linux64/bin
and tried to runpypy3
, which is in this folder, but bash tells meNo command 'pypy3' found
– saitam
Feb 7 '18 at 14:37
add a comment |
I want to install pypy3 in Ubuntu. I have read the answer for this question "How to install PyPy3 (2.1, beta) on Ubuntu?" and still have no idea what to do. Could some kind soul please explain it so that even I can understand it :)
Here's what I have done so far:
Went here
Read that I had to go here
Downloaded: pypy3-2.1-beta-linux_x86_64-portable.tar.bz2
Opened it with the Archive manager (because it seemed like a reasonable thing to do)
Extracted it to desktop/PYPY3
Then desperately tried all the shell commands I came across last night. I will not be able to give a clear account of what I tried and what errors came back, as it is kind of a blur to me at this point.
But I can tell you that I got the Tar thing unpacked at one point and that I have tried running the pypy executable from the command line from the folder containing it, but got this:
bash: /usr/bin/pypy: No such file or directory
Could someone please tell me what to do. (have read the readme, the install docs at pypy.org and lots of posts)
software-installation
I want to install pypy3 in Ubuntu. I have read the answer for this question "How to install PyPy3 (2.1, beta) on Ubuntu?" and still have no idea what to do. Could some kind soul please explain it so that even I can understand it :)
Here's what I have done so far:
Went here
Read that I had to go here
Downloaded: pypy3-2.1-beta-linux_x86_64-portable.tar.bz2
Opened it with the Archive manager (because it seemed like a reasonable thing to do)
Extracted it to desktop/PYPY3
Then desperately tried all the shell commands I came across last night. I will not be able to give a clear account of what I tried and what errors came back, as it is kind of a blur to me at this point.
But I can tell you that I got the Tar thing unpacked at one point and that I have tried running the pypy executable from the command line from the folder containing it, but got this:
bash: /usr/bin/pypy: No such file or directory
Could someone please tell me what to do. (have read the readme, the install docs at pypy.org and lots of posts)
software-installation
software-installation
edited Aug 17 '18 at 8:57
N0rbert
24.7k852116
24.7k852116
asked Apr 1 '14 at 14:54
user1998723user1998723
3612
3612
1
Did you have a look at this: askubuntu.com/questions/360187/…?
– jobin
Apr 1 '14 at 14:58
yes, and I tried to follow the instructions, spent hours on it actually. What was hoping for was a dumbed down version I could follow.
– user1998723
Apr 1 '14 at 15:03
The answer to that question seems pretty simple, what in it could you not digest- list it explicity?
– jobin
Apr 1 '14 at 15:09
I've just re read the question again. He says he is able to run the pypy binary through the terminal. I'm not that far yet. Therefore the rest of the answer is not directly aplicable to me. in the readme of the download it says to run this linerpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py
to install pypy, this gives me a No such file or directory error. I think this is what I need to get working
– user1998723
Apr 1 '14 at 15:27
I have a similar problem. I've downloaded it into$HOME
, extracted viatar
went intopypy3-v5.10.1-linux64/bin
and tried to runpypy3
, which is in this folder, but bash tells meNo command 'pypy3' found
– saitam
Feb 7 '18 at 14:37
add a comment |
1
Did you have a look at this: askubuntu.com/questions/360187/…?
– jobin
Apr 1 '14 at 14:58
yes, and I tried to follow the instructions, spent hours on it actually. What was hoping for was a dumbed down version I could follow.
– user1998723
Apr 1 '14 at 15:03
The answer to that question seems pretty simple, what in it could you not digest- list it explicity?
– jobin
Apr 1 '14 at 15:09
I've just re read the question again. He says he is able to run the pypy binary through the terminal. I'm not that far yet. Therefore the rest of the answer is not directly aplicable to me. in the readme of the download it says to run this linerpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py
to install pypy, this gives me a No such file or directory error. I think this is what I need to get working
– user1998723
Apr 1 '14 at 15:27
I have a similar problem. I've downloaded it into$HOME
, extracted viatar
went intopypy3-v5.10.1-linux64/bin
and tried to runpypy3
, which is in this folder, but bash tells meNo command 'pypy3' found
– saitam
Feb 7 '18 at 14:37
1
1
Did you have a look at this: askubuntu.com/questions/360187/…?
– jobin
Apr 1 '14 at 14:58
Did you have a look at this: askubuntu.com/questions/360187/…?
– jobin
Apr 1 '14 at 14:58
yes, and I tried to follow the instructions, spent hours on it actually. What was hoping for was a dumbed down version I could follow.
– user1998723
Apr 1 '14 at 15:03
yes, and I tried to follow the instructions, spent hours on it actually. What was hoping for was a dumbed down version I could follow.
– user1998723
Apr 1 '14 at 15:03
The answer to that question seems pretty simple, what in it could you not digest- list it explicity?
– jobin
Apr 1 '14 at 15:09
The answer to that question seems pretty simple, what in it could you not digest- list it explicity?
– jobin
Apr 1 '14 at 15:09
I've just re read the question again. He says he is able to run the pypy binary through the terminal. I'm not that far yet. Therefore the rest of the answer is not directly aplicable to me. in the readme of the download it says to run this line
rpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py
to install pypy, this gives me a No such file or directory error. I think this is what I need to get working– user1998723
Apr 1 '14 at 15:27
I've just re read the question again. He says he is able to run the pypy binary through the terminal. I'm not that far yet. Therefore the rest of the answer is not directly aplicable to me. in the readme of the download it says to run this line
rpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py
to install pypy, this gives me a No such file or directory error. I think this is what I need to get working– user1998723
Apr 1 '14 at 15:27
I have a similar problem. I've downloaded it into
$HOME
, extracted via tar
went into pypy3-v5.10.1-linux64/bin
and tried to run pypy3
, which is in this folder, but bash tells me No command 'pypy3' found
– saitam
Feb 7 '18 at 14:37
I have a similar problem. I've downloaded it into
$HOME
, extracted via tar
went into pypy3-v5.10.1-linux64/bin
and tried to run pypy3
, which is in this folder, but bash tells me No command 'pypy3' found
– saitam
Feb 7 '18 at 14:37
add a comment |
4 Answers
4
active
oldest
votes
This is a portable version of PyPy. It is not installed system wide. You use it like this. After downloading a file lets say to your Downloads folder open your terminal window and run this:
cd ~/Downloads
tar xf pypy3-2.1-beta-linux_x86_64-portable.tar.bz2
pypy3-2.1-beta-linux_x86_64-portable/bin/pypy
You will get PyPy prompt.
Note that PyPy 3 is not fully done. This is preview version that is inteded for testing.
This answer works perfectly. Much appreciated.
– user1998723
Apr 16 '14 at 14:06
add a comment |
Here's installing section of download page from PyPy's website:
All binary versions are packaged in a
tar.bz2
orzip
file. When uncompressed, they run in-place. For now you can uncompress them either somewhere in your home directory or, say, in/opt
, and if you want, put a symlink from somewhere like/usr/local/bin/pypy
to/path/to/pypy2-5.10.0/bin/pypy
. Do not move or copy the executablepypy
outside the tree – put a symlink to it, otherwise it will not find its libraries.
In can be expressed like (excerpt from snake-tank Docker image):
wget -q -P /tmp
https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.10.1-linux64.tar.bz2
sudo tar -x -C /opt -f /tmp/pypy3-v5.10.1-linux64.tar.bz2
rm /tmp/pypy3-v5.10.1-linux64.tar.bz2
sudo mv /opt/pypy3-v5.10.1-linux64 /opt/pypy3
sudo ln -s /opt/pypy3/bin/pypy3 /usr/local/bin/pypy3
After that you can create virtual environments as usual:
virtualenv -p pypy3 some_env
add a comment |
All the answers here are either outdated or unnecessarily complicated.
sudo add-apt-repository ppa:pypy/ppa
sudo apt update
sudo apt install pypy3
As simple as that!
See https://launchpad.net/~pypy/+archive/ubuntu/ppa for details.
add a comment |
You can build PyPy 3 from source by doing the following as documented on the PyPy download and build pages.
You can either download the source code archive pypy3-v6.0.0-src.tar.bz2 with the browser or your favorite download utility:
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-src.tar.bz2
tar -xjf pypy3-v6.0.0-src.tar.bz2
cd pypy3-v6.0.0-src
Or you can download it from the Mercurial repository and switch to the 3.5 branch:
hg clone https://bitbucket.org/pypy/pypy
cd pypy
hg update py3.5
PyPy recommends that you build it using PyPy 2 because it'll be faster than using CPython 2.7. Ensure PyPy 2 is installed:
sudo apt-get install pypy
Now install the build dependencies:
sudo apt-get install gcc make libffi-dev pkg-config zlib1g-dev libbz2-dev libsqlite3-dev libexpat1-dev libssl-dev libgdbm-dev tk-dev libgc-dev python-cffi liblzma-dev libncursesw5-dev
Run the translation (compilation):
cd pypy/goal # pypy3-v6.0.0-src/pypy/goal
pypy ../../rpython/bin/rpython -Ojit targetpypystandalone
Even though the shell might not tab-complete ../../rpython/bin/rpython
, it's there. The download guide says it requires 5 GB of RAM and takes about 30 minutes to run. It took 32 minutes on my 4th generation i7.
Package PyPy so that it can be installed:
cd ../tool/release # pypy3-v6.0.0-src/pypy/tool/release
pypy package.py --archive-name pypy3-v6.0.0
This will create the prepared directory structure under /tmp/usession-release-pypy3.5-v6.0.0-0
. Copy it to /opt
and symlink the executable to /usr/local/bin
:
sudo mv /tmp/usession-release-pypy3.5-v6.0.0-0/build/pypy3-v6.0.0 /opt
sudo ln -s /opt/pypy3-v6.0.0/bin/pypy3 /usr/local/bin
Now you can run PyPy 3 using the command:
pypy3
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f441981%2fhow-to-install-pypy3-on-ubuntu-for-newbies%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is a portable version of PyPy. It is not installed system wide. You use it like this. After downloading a file lets say to your Downloads folder open your terminal window and run this:
cd ~/Downloads
tar xf pypy3-2.1-beta-linux_x86_64-portable.tar.bz2
pypy3-2.1-beta-linux_x86_64-portable/bin/pypy
You will get PyPy prompt.
Note that PyPy 3 is not fully done. This is preview version that is inteded for testing.
This answer works perfectly. Much appreciated.
– user1998723
Apr 16 '14 at 14:06
add a comment |
This is a portable version of PyPy. It is not installed system wide. You use it like this. After downloading a file lets say to your Downloads folder open your terminal window and run this:
cd ~/Downloads
tar xf pypy3-2.1-beta-linux_x86_64-portable.tar.bz2
pypy3-2.1-beta-linux_x86_64-portable/bin/pypy
You will get PyPy prompt.
Note that PyPy 3 is not fully done. This is preview version that is inteded for testing.
This answer works perfectly. Much appreciated.
– user1998723
Apr 16 '14 at 14:06
add a comment |
This is a portable version of PyPy. It is not installed system wide. You use it like this. After downloading a file lets say to your Downloads folder open your terminal window and run this:
cd ~/Downloads
tar xf pypy3-2.1-beta-linux_x86_64-portable.tar.bz2
pypy3-2.1-beta-linux_x86_64-portable/bin/pypy
You will get PyPy prompt.
Note that PyPy 3 is not fully done. This is preview version that is inteded for testing.
This is a portable version of PyPy. It is not installed system wide. You use it like this. After downloading a file lets say to your Downloads folder open your terminal window and run this:
cd ~/Downloads
tar xf pypy3-2.1-beta-linux_x86_64-portable.tar.bz2
pypy3-2.1-beta-linux_x86_64-portable/bin/pypy
You will get PyPy prompt.
Note that PyPy 3 is not fully done. This is preview version that is inteded for testing.
answered Apr 6 '14 at 9:29
SqueakySqueaky
861
861
This answer works perfectly. Much appreciated.
– user1998723
Apr 16 '14 at 14:06
add a comment |
This answer works perfectly. Much appreciated.
– user1998723
Apr 16 '14 at 14:06
This answer works perfectly. Much appreciated.
– user1998723
Apr 16 '14 at 14:06
This answer works perfectly. Much appreciated.
– user1998723
Apr 16 '14 at 14:06
add a comment |
Here's installing section of download page from PyPy's website:
All binary versions are packaged in a
tar.bz2
orzip
file. When uncompressed, they run in-place. For now you can uncompress them either somewhere in your home directory or, say, in/opt
, and if you want, put a symlink from somewhere like/usr/local/bin/pypy
to/path/to/pypy2-5.10.0/bin/pypy
. Do not move or copy the executablepypy
outside the tree – put a symlink to it, otherwise it will not find its libraries.
In can be expressed like (excerpt from snake-tank Docker image):
wget -q -P /tmp
https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.10.1-linux64.tar.bz2
sudo tar -x -C /opt -f /tmp/pypy3-v5.10.1-linux64.tar.bz2
rm /tmp/pypy3-v5.10.1-linux64.tar.bz2
sudo mv /opt/pypy3-v5.10.1-linux64 /opt/pypy3
sudo ln -s /opt/pypy3/bin/pypy3 /usr/local/bin/pypy3
After that you can create virtual environments as usual:
virtualenv -p pypy3 some_env
add a comment |
Here's installing section of download page from PyPy's website:
All binary versions are packaged in a
tar.bz2
orzip
file. When uncompressed, they run in-place. For now you can uncompress them either somewhere in your home directory or, say, in/opt
, and if you want, put a symlink from somewhere like/usr/local/bin/pypy
to/path/to/pypy2-5.10.0/bin/pypy
. Do not move or copy the executablepypy
outside the tree – put a symlink to it, otherwise it will not find its libraries.
In can be expressed like (excerpt from snake-tank Docker image):
wget -q -P /tmp
https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.10.1-linux64.tar.bz2
sudo tar -x -C /opt -f /tmp/pypy3-v5.10.1-linux64.tar.bz2
rm /tmp/pypy3-v5.10.1-linux64.tar.bz2
sudo mv /opt/pypy3-v5.10.1-linux64 /opt/pypy3
sudo ln -s /opt/pypy3/bin/pypy3 /usr/local/bin/pypy3
After that you can create virtual environments as usual:
virtualenv -p pypy3 some_env
add a comment |
Here's installing section of download page from PyPy's website:
All binary versions are packaged in a
tar.bz2
orzip
file. When uncompressed, they run in-place. For now you can uncompress them either somewhere in your home directory or, say, in/opt
, and if you want, put a symlink from somewhere like/usr/local/bin/pypy
to/path/to/pypy2-5.10.0/bin/pypy
. Do not move or copy the executablepypy
outside the tree – put a symlink to it, otherwise it will not find its libraries.
In can be expressed like (excerpt from snake-tank Docker image):
wget -q -P /tmp
https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.10.1-linux64.tar.bz2
sudo tar -x -C /opt -f /tmp/pypy3-v5.10.1-linux64.tar.bz2
rm /tmp/pypy3-v5.10.1-linux64.tar.bz2
sudo mv /opt/pypy3-v5.10.1-linux64 /opt/pypy3
sudo ln -s /opt/pypy3/bin/pypy3 /usr/local/bin/pypy3
After that you can create virtual environments as usual:
virtualenv -p pypy3 some_env
Here's installing section of download page from PyPy's website:
All binary versions are packaged in a
tar.bz2
orzip
file. When uncompressed, they run in-place. For now you can uncompress them either somewhere in your home directory or, say, in/opt
, and if you want, put a symlink from somewhere like/usr/local/bin/pypy
to/path/to/pypy2-5.10.0/bin/pypy
. Do not move or copy the executablepypy
outside the tree – put a symlink to it, otherwise it will not find its libraries.
In can be expressed like (excerpt from snake-tank Docker image):
wget -q -P /tmp
https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.10.1-linux64.tar.bz2
sudo tar -x -C /opt -f /tmp/pypy3-v5.10.1-linux64.tar.bz2
rm /tmp/pypy3-v5.10.1-linux64.tar.bz2
sudo mv /opt/pypy3-v5.10.1-linux64 /opt/pypy3
sudo ln -s /opt/pypy3/bin/pypy3 /usr/local/bin/pypy3
After that you can create virtual environments as usual:
virtualenv -p pypy3 some_env
answered Mar 6 '18 at 9:56
saajsaaj
20613
20613
add a comment |
add a comment |
All the answers here are either outdated or unnecessarily complicated.
sudo add-apt-repository ppa:pypy/ppa
sudo apt update
sudo apt install pypy3
As simple as that!
See https://launchpad.net/~pypy/+archive/ubuntu/ppa for details.
add a comment |
All the answers here are either outdated or unnecessarily complicated.
sudo add-apt-repository ppa:pypy/ppa
sudo apt update
sudo apt install pypy3
As simple as that!
See https://launchpad.net/~pypy/+archive/ubuntu/ppa for details.
add a comment |
All the answers here are either outdated or unnecessarily complicated.
sudo add-apt-repository ppa:pypy/ppa
sudo apt update
sudo apt install pypy3
As simple as that!
See https://launchpad.net/~pypy/+archive/ubuntu/ppa for details.
All the answers here are either outdated or unnecessarily complicated.
sudo add-apt-repository ppa:pypy/ppa
sudo apt update
sudo apt install pypy3
As simple as that!
See https://launchpad.net/~pypy/+archive/ubuntu/ppa for details.
answered Feb 27 at 17:12
Bora M. AlperBora M. Alper
1214
1214
add a comment |
add a comment |
You can build PyPy 3 from source by doing the following as documented on the PyPy download and build pages.
You can either download the source code archive pypy3-v6.0.0-src.tar.bz2 with the browser or your favorite download utility:
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-src.tar.bz2
tar -xjf pypy3-v6.0.0-src.tar.bz2
cd pypy3-v6.0.0-src
Or you can download it from the Mercurial repository and switch to the 3.5 branch:
hg clone https://bitbucket.org/pypy/pypy
cd pypy
hg update py3.5
PyPy recommends that you build it using PyPy 2 because it'll be faster than using CPython 2.7. Ensure PyPy 2 is installed:
sudo apt-get install pypy
Now install the build dependencies:
sudo apt-get install gcc make libffi-dev pkg-config zlib1g-dev libbz2-dev libsqlite3-dev libexpat1-dev libssl-dev libgdbm-dev tk-dev libgc-dev python-cffi liblzma-dev libncursesw5-dev
Run the translation (compilation):
cd pypy/goal # pypy3-v6.0.0-src/pypy/goal
pypy ../../rpython/bin/rpython -Ojit targetpypystandalone
Even though the shell might not tab-complete ../../rpython/bin/rpython
, it's there. The download guide says it requires 5 GB of RAM and takes about 30 minutes to run. It took 32 minutes on my 4th generation i7.
Package PyPy so that it can be installed:
cd ../tool/release # pypy3-v6.0.0-src/pypy/tool/release
pypy package.py --archive-name pypy3-v6.0.0
This will create the prepared directory structure under /tmp/usession-release-pypy3.5-v6.0.0-0
. Copy it to /opt
and symlink the executable to /usr/local/bin
:
sudo mv /tmp/usession-release-pypy3.5-v6.0.0-0/build/pypy3-v6.0.0 /opt
sudo ln -s /opt/pypy3-v6.0.0/bin/pypy3 /usr/local/bin
Now you can run PyPy 3 using the command:
pypy3
add a comment |
You can build PyPy 3 from source by doing the following as documented on the PyPy download and build pages.
You can either download the source code archive pypy3-v6.0.0-src.tar.bz2 with the browser or your favorite download utility:
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-src.tar.bz2
tar -xjf pypy3-v6.0.0-src.tar.bz2
cd pypy3-v6.0.0-src
Or you can download it from the Mercurial repository and switch to the 3.5 branch:
hg clone https://bitbucket.org/pypy/pypy
cd pypy
hg update py3.5
PyPy recommends that you build it using PyPy 2 because it'll be faster than using CPython 2.7. Ensure PyPy 2 is installed:
sudo apt-get install pypy
Now install the build dependencies:
sudo apt-get install gcc make libffi-dev pkg-config zlib1g-dev libbz2-dev libsqlite3-dev libexpat1-dev libssl-dev libgdbm-dev tk-dev libgc-dev python-cffi liblzma-dev libncursesw5-dev
Run the translation (compilation):
cd pypy/goal # pypy3-v6.0.0-src/pypy/goal
pypy ../../rpython/bin/rpython -Ojit targetpypystandalone
Even though the shell might not tab-complete ../../rpython/bin/rpython
, it's there. The download guide says it requires 5 GB of RAM and takes about 30 minutes to run. It took 32 minutes on my 4th generation i7.
Package PyPy so that it can be installed:
cd ../tool/release # pypy3-v6.0.0-src/pypy/tool/release
pypy package.py --archive-name pypy3-v6.0.0
This will create the prepared directory structure under /tmp/usession-release-pypy3.5-v6.0.0-0
. Copy it to /opt
and symlink the executable to /usr/local/bin
:
sudo mv /tmp/usession-release-pypy3.5-v6.0.0-0/build/pypy3-v6.0.0 /opt
sudo ln -s /opt/pypy3-v6.0.0/bin/pypy3 /usr/local/bin
Now you can run PyPy 3 using the command:
pypy3
add a comment |
You can build PyPy 3 from source by doing the following as documented on the PyPy download and build pages.
You can either download the source code archive pypy3-v6.0.0-src.tar.bz2 with the browser or your favorite download utility:
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-src.tar.bz2
tar -xjf pypy3-v6.0.0-src.tar.bz2
cd pypy3-v6.0.0-src
Or you can download it from the Mercurial repository and switch to the 3.5 branch:
hg clone https://bitbucket.org/pypy/pypy
cd pypy
hg update py3.5
PyPy recommends that you build it using PyPy 2 because it'll be faster than using CPython 2.7. Ensure PyPy 2 is installed:
sudo apt-get install pypy
Now install the build dependencies:
sudo apt-get install gcc make libffi-dev pkg-config zlib1g-dev libbz2-dev libsqlite3-dev libexpat1-dev libssl-dev libgdbm-dev tk-dev libgc-dev python-cffi liblzma-dev libncursesw5-dev
Run the translation (compilation):
cd pypy/goal # pypy3-v6.0.0-src/pypy/goal
pypy ../../rpython/bin/rpython -Ojit targetpypystandalone
Even though the shell might not tab-complete ../../rpython/bin/rpython
, it's there. The download guide says it requires 5 GB of RAM and takes about 30 minutes to run. It took 32 minutes on my 4th generation i7.
Package PyPy so that it can be installed:
cd ../tool/release # pypy3-v6.0.0-src/pypy/tool/release
pypy package.py --archive-name pypy3-v6.0.0
This will create the prepared directory structure under /tmp/usession-release-pypy3.5-v6.0.0-0
. Copy it to /opt
and symlink the executable to /usr/local/bin
:
sudo mv /tmp/usession-release-pypy3.5-v6.0.0-0/build/pypy3-v6.0.0 /opt
sudo ln -s /opt/pypy3-v6.0.0/bin/pypy3 /usr/local/bin
Now you can run PyPy 3 using the command:
pypy3
You can build PyPy 3 from source by doing the following as documented on the PyPy download and build pages.
You can either download the source code archive pypy3-v6.0.0-src.tar.bz2 with the browser or your favorite download utility:
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-src.tar.bz2
tar -xjf pypy3-v6.0.0-src.tar.bz2
cd pypy3-v6.0.0-src
Or you can download it from the Mercurial repository and switch to the 3.5 branch:
hg clone https://bitbucket.org/pypy/pypy
cd pypy
hg update py3.5
PyPy recommends that you build it using PyPy 2 because it'll be faster than using CPython 2.7. Ensure PyPy 2 is installed:
sudo apt-get install pypy
Now install the build dependencies:
sudo apt-get install gcc make libffi-dev pkg-config zlib1g-dev libbz2-dev libsqlite3-dev libexpat1-dev libssl-dev libgdbm-dev tk-dev libgc-dev python-cffi liblzma-dev libncursesw5-dev
Run the translation (compilation):
cd pypy/goal # pypy3-v6.0.0-src/pypy/goal
pypy ../../rpython/bin/rpython -Ojit targetpypystandalone
Even though the shell might not tab-complete ../../rpython/bin/rpython
, it's there. The download guide says it requires 5 GB of RAM and takes about 30 minutes to run. It took 32 minutes on my 4th generation i7.
Package PyPy so that it can be installed:
cd ../tool/release # pypy3-v6.0.0-src/pypy/tool/release
pypy package.py --archive-name pypy3-v6.0.0
This will create the prepared directory structure under /tmp/usession-release-pypy3.5-v6.0.0-0
. Copy it to /opt
and symlink the executable to /usr/local/bin
:
sudo mv /tmp/usession-release-pypy3.5-v6.0.0-0/build/pypy3-v6.0.0 /opt
sudo ln -s /opt/pypy3-v6.0.0/bin/pypy3 /usr/local/bin
Now you can run PyPy 3 using the command:
pypy3
edited Aug 17 '18 at 18:10
answered Aug 17 '18 at 18:04
cpburnzcpburnz
437725
437725
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f441981%2fhow-to-install-pypy3-on-ubuntu-for-newbies%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Did you have a look at this: askubuntu.com/questions/360187/…?
– jobin
Apr 1 '14 at 14:58
yes, and I tried to follow the instructions, spent hours on it actually. What was hoping for was a dumbed down version I could follow.
– user1998723
Apr 1 '14 at 15:03
The answer to that question seems pretty simple, what in it could you not digest- list it explicity?
– jobin
Apr 1 '14 at 15:09
I've just re read the question again. He says he is able to run the pypy binary through the terminal. I'm not that far yet. Therefore the rest of the answer is not directly aplicable to me. in the readme of the download it says to run this line
rpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py
to install pypy, this gives me a No such file or directory error. I think this is what I need to get working– user1998723
Apr 1 '14 at 15:27
I have a similar problem. I've downloaded it into
$HOME
, extracted viatar
went intopypy3-v5.10.1-linux64/bin
and tried to runpypy3
, which is in this folder, but bash tells meNo command 'pypy3' found
– saitam
Feb 7 '18 at 14:37