You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the file is downloaded, extract it with the command:
239
+
240
+
.. code-block:: console
241
+
242
+
$ tar xvzf openshift*.tar.gz
243
+
244
+
Change into the newly-created directory with the command:
245
+
246
+
.. code-block:: console
247
+
248
+
$ cd openshift-origin-client-tools*/
249
+
250
+
Move the kubectl and oc binaries with the command:
251
+
252
+
.. code-block:: console
253
+
254
+
$ sudo mv oc kubectl /usr/local/bin/
255
+
256
+
**Installation problems**
257
+
If during the installation you encounter broken packages, try the follwoing command:
258
+
259
+
.. code-block:: sh
260
+
261
+
$ sudo apt --fix-broken install
262
+
263
+
**Python**
264
+
265
+
Invenio is developed using Python and JavaScript.
266
+
267
+
268
+
If you want to check which version of Python you have, try the following:
269
+
270
+
.. code-block:: sh
271
+
272
+
# Check the system Python version
273
+
$ python --version
274
+
275
+
# Check the Python 2 version
276
+
$ python2 --version
277
+
278
+
# Check the Python 3 version
279
+
$ python3 --version
280
+
281
+
To install Python 3.8 type the following commands:
282
+
283
+
.. code-block:: sh
284
+
285
+
$ sudo apt-get update
286
+
$ sudo apt-get install python3.8 python3-pip
287
+
288
+
In the following `list <https://invenio.readthedocs.io/en/latest/getting-started/quickstart/installation.html#prerequisites/>`_ you can check if your system has the necessary requirements.
289
+
290
+
We highly recommend that install ``pyenv`` and ``nvm`` - both tools manage version of python and node
Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip and virtualenv. We suggest the following installation guide:
Note that after the installation, virtualenvwrapper.sh can be found in ~/.local/bin
351
+
352
+
.. code-block::
353
+
354
+
$ pip3 install --user virtualenvwrapper
355
+
356
+
Once you have installed above packages, you can proceed with installing Python versions.
357
+
The following will install Python 3.6, 3.7 and 3.8 and set the default Python installation to Python 3.8 (node you can always install the latest patch-level release):
358
+
359
+
.. code-block:: console
360
+
361
+
$ pyenv install 3.6.9
362
+
$ pyenv install 3.7.8
363
+
$ pyenv install 3.8.5
364
+
$ pyenv global 3.8.5
365
+
366
+
367
+
You should edit your `.bashrc` or `.zshrc` file to initialise pyenv:
0 commit comments