Running Kedro on Ubuntu 21.10 Impish Indri

I just installed a brand new Ubuntu 21.10 Impish Indri, and wanted a kedro project to play with so I did what any good kedroid would do, I went to my command line and ran

pipx run kedro new –starter spaceflights

But what I got back was not wh…


This content originally appeared on DEV Community and was authored by Waylon Walker

I just installed a brand new Ubuntu 21.10 Impish Indri, and wanted a kedro project to play with so I did what any good kedroid would do, I went to my command line and ran

pipx run kedro new --starter spaceflights

But what I got back was not what I expected!

Fatal error from pip prevented installation. Full pip output in file:
    /home/walkers/.local/pipx/logs/cmd_2022-01-01_20.42.16_pip_errors.log

Some possibly relevant errors from pip install:
    ERROR: Could not find a version that satisfies the requirement kedro (from versions: none)
    ERROR: No matching distribution found for kedro
Error installing kedro.

This is weird, why cant I run kedro new with pipx? Lets try pip.

pip install kedro

Same issue.

ERROR: Could not find a version that satisfies the requirement kedro (from versions: none) 
ERROR: No matching distribution found for kedro


article cover for <br>
 What is Kedro<br>

Curious what kedro is? Check out this article.

What's up..

wrong python version

The issue is that kedro only runs on up to python 3.8, and on Ubuntu
21.10 when you apt install python3 you get python 3.9 and the
standard repos don't have an old enough version to run kedro.

How to fix this?

Theres a couple of ways you can fix this? They all involve installing a distribution that does not come from the standard repo.

Where Can I get the right version

  • Anaconda
  • Python.org
  • deadsnakes
  • pyenv
  • miniconda

I have two articles that can help you



article cover for <br>
 How to Install miniconda on linux (from the command line only)<br>

Check out this article on installing miniconda

Using miniconda we can make a new conda environment that uses python == 3.8.

conda create -n myenv python=3.8


article cover for <br>
 My first impressions with pyenv<br>

Check out this post on my first impressions with pyenv

Using pyenv we can install python == 3.8 to use to create a virtual environment.

pyenv install 3.8.12


This content originally appeared on DEV Community and was authored by Waylon Walker


Print Share Comment Cite Upload Translate Updates
APA

Waylon Walker | Sciencx (2022-01-02T16:39:56+00:00) Running Kedro on Ubuntu 21.10 Impish Indri. Retrieved from https://www.scien.cx/2022/01/02/running-kedro-on-ubuntu-21-10-impish-indri/

MLA
" » Running Kedro on Ubuntu 21.10 Impish Indri." Waylon Walker | Sciencx - Sunday January 2, 2022, https://www.scien.cx/2022/01/02/running-kedro-on-ubuntu-21-10-impish-indri/
HARVARD
Waylon Walker | Sciencx Sunday January 2, 2022 » Running Kedro on Ubuntu 21.10 Impish Indri., viewed ,<https://www.scien.cx/2022/01/02/running-kedro-on-ubuntu-21-10-impish-indri/>
VANCOUVER
Waylon Walker | Sciencx - » Running Kedro on Ubuntu 21.10 Impish Indri. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/01/02/running-kedro-on-ubuntu-21-10-impish-indri/
CHICAGO
" » Running Kedro on Ubuntu 21.10 Impish Indri." Waylon Walker | Sciencx - Accessed . https://www.scien.cx/2022/01/02/running-kedro-on-ubuntu-21-10-impish-indri/
IEEE
" » Running Kedro on Ubuntu 21.10 Impish Indri." Waylon Walker | Sciencx [Online]. Available: https://www.scien.cx/2022/01/02/running-kedro-on-ubuntu-21-10-impish-indri/. [Accessed: ]
rf:citation
» Running Kedro on Ubuntu 21.10 Impish Indri | Waylon Walker | Sciencx | https://www.scien.cx/2022/01/02/running-kedro-on-ubuntu-21-10-impish-indri/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.