In this guide, I expect you are using Python3 (and ''​pip3''​),​ but (for old projects) you can use Python2 (and ''​pip2''​) as well.

In this guide, I expect you are using Python3 (and ''​pip3''​),​ but (for old projects) you can use Python2 (and ''​pip2''​) as well.

-

* You can use the system Python (currently 3.6.5, in Ubuntu 18.04)

+

* You can use the system Python (currently 3.6.*, in Ubuntu 18.04)

-

* You can use any Python from ''/​opt/​python/'',​ e.g. for 3.6.3 add the following line to your .bashrc: <​code>​export PATH=/​opt/​python/​3.6.3/​bin:"​${PATH}"</​code>​

+

* You can use any Python from ''/​opt/​python/'',​ e.g. for 3.7.0 add the following line to your .bashrc: <​code>​export PATH=/​opt/​python/​3.7.0/​bin:"​${PATH}"</​code>​

* You can install modules with ''​pip3''​. If you are not using any [[#virtual environments]],​ you must add the ''​-''''​-user''​ option, so it is installed in your home. In this case, don't forget the executable scripts are installed in ''​~/​.local/​bin/'',​ so add the following line to your .bashrc: <​code>​export PATH=~/​.local/​bin:"​${PATH}"</​code>​

* You can install modules with ''​pip3''​. If you are not using any [[#virtual environments]],​ you must add the ''​-''''​-user''​ option, so it is installed in your home. In this case, don't forget the executable scripts are installed in ''​~/​.local/​bin/'',​ so add the following line to your .bashrc: <​code>​export PATH=~/​.local/​bin:"​${PATH}"</​code>​

-

* If you are using the system Python3 ​(3.4.3), note that it comes with a very old version of pip3 (1.5.4), so it is recommended to update it with <​code>​pip3 install --user --upgrade pip</​code>​

+

* Both the system Python3 ​and the Python3 from ''/​opt/​python/''​ come with an old version of pip3, so it is recommended to update it with <​code>​pip3 install --user --upgrade pip</​code>​

* There are no UFAL-wide pre-installed Python modules. You need to install all modules you need yourself (with pip3).

* There are no UFAL-wide pre-installed Python modules. You need to install all modules you need yourself (with pip3).

Line 37:

Line 37:

==== IPython in virtual envs. ====

==== IPython in virtual envs. ====

-

When using virtuaenvs, ipython is (in some versions) confused uses incorrect python interpreter. The following alias fixes this issue:

+

When using virtuaenvs, ipython is (in some versions) confused ​and uses an incorrect python interpreter. The following alias fixes this issue: