@@ -35,12 +35,12 @@ There are four recommended ways of installing and running problemtools.
35
35
36
36
Run
37
37
```
38
- pip install git+https://github.com/kattis/problemtools
38
+ pip3 install git+https://github.com/kattis/problemtools
39
39
```
40
40
41
41
Or if you don't want a system-wide installation,
42
42
```
43
- pip install --user git+https://github.com/kattis/problemtools
43
+ pip3 install --user git+https://github.com/kattis/problemtools
44
44
```
45
45
With this second option, in order to get the command line scripts, you need
46
46
to make sure that the local user bin path used (e.g., on Linux,
@@ -153,18 +153,18 @@ problemtools' configuration:
153
153
154
154
1. `languages.yaml`. Use it to override problemtools' default
155
155
programming language configuration. For instance, while the
156
- problemtools default is to use the CPython `/usr/bin/python2 `
157
- interpreter for Python 2 , many contests, as well as the Kattis
158
- online judge, use Pypy as the interpreter for Python 2 . To change
156
+ problemtools default is to use the CPython `/usr/bin/python3 `
157
+ interpreter for Python 3 , many contests, as well as the Kattis
158
+ online judge, use Pypy as the interpreter for Python 3 . To change
159
159
this on your machine, you can simply place a file
160
160
`/etc/kattis/problemtools/languages.yaml` (or
161
161
`~/.config/problemtools/languages.yaml` if you only want to make the
162
162
change for your user) containing the following:
163
163
164
164
```yaml
165
- python2 :
166
- name: 'Python 2 w/Pypy'
167
- run: '/usr/bin/pypy "{mainfile}"'
165
+ python3 :
166
+ name: 'Python 3 w/Pypy'
167
+ run: '/usr/bin/pypy3 "{mainfile}"'
168
168
```
169
169
Here, overriding the name of the language is not strictly
170
170
necessary, but it is often helpful to clearly indicate that Pypy is
@@ -196,14 +196,14 @@ problemtools' configuration:
196
196
197
197
## Requirements and compatibility
198
198
199
- To build and run the tools, you need Python 2 with the YAML and PlasTeX libraries,
199
+ To build and run the tools, you need Python 3 with the YAML and PlasTeX libraries,
200
200
and a LaTeX installation.
201
201
202
202
### Ubuntu
203
203
204
204
The dependencies needed to *build/install* problemtools can be installed with:
205
205
206
- sudo apt install automake g++ make libboost-regex-dev libgmp-dev libgmp10 libgmpxx4ldbl python python -pytest python -setuptools python -yaml
206
+ sudo apt install automake g++ make libboost-regex-dev libgmp-dev libgmp10 libgmpxx4ldbl python3 python3 -pytest python3 -setuptools python3 -yaml python3-plastex
207
207
208
208
And the dependencies needed to *run* problemtools can be installed with:
209
209
@@ -213,11 +213,11 @@ And the dependencies needed to *run* problemtools can be installed with:
213
213
214
214
On Fedora, these dependencies can be installed with:
215
215
216
- sudo dnf install boost-regex gcc gmp-devel gmp-c++ python2 python2 -pyyaml texlive-latex texlive-collection-fontsrecommended texlive-fancyhdr texlive-subfigure texlive-wrapfig texlive-import texlive-ulem texlive-xifthen texlive-overpic texlive-pbox tidy ghostscript
216
+ sudo dnf install boost-regex gcc gmp-devel gmp-c++ python3 python3 -pyyaml texlive-latex texlive-collection-fontsrecommended texlive-fancyhdr texlive-subfigure texlive-wrapfig texlive-import texlive-ulem texlive-xifthen texlive-overpic texlive-pbox tidy ghostscript
217
217
218
218
Followed by:
219
219
220
- pip2 install --user plastex
220
+ pip3 install --user plastex
221
221
222
222
### Other platforms
223
223
0 commit comments