Local installation: quickstart 2020

From Open Hardware Miniconf
Revision as of 11:29, 28 December 2019 by Nicola (talk | contribs) (Created page with " We don't want Python 2, and people have reported problems with Python 3.7 or later. So we currently use Python 3.6. Miniconda instructions: * Go to the [https://repo.contin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

We don't want Python 2, and people have reported problems with Python 3.7 or later. So we currently use Python 3.6.

Miniconda instructions:

  • Go to the Miniconda archive
  • Download Miniconda3-4.5.4 in the right system for you.
  • In your command line prompt, go to the directory holding the file
  • Run the script: ./Miniconda3-4.5.4-Linux-x86_64.sh (or equivalent)

This will by default add the Miniconda directory to your path. Now you can check you have Python 3.6 installed and available:

  • python3 -i
  • This should show you Python 3.6.5 | Anaconda Inc.
  • Use quit() to get out of the python shell

Get Dingocar

Go to which directory you like to keep your coding projects in.

Install Tensorflow for machine learning

  • Ubuntu
    • apt-get install -y virtualenv # Note: You may be using a different software installer
    • mkvirtualenv donkeycar -p python3
    • pip install tensorflow==1.8.0 # Note: Probably requires Python 3.5 or 3.6. People are having problems with Python 3.7

(if you get errors, you can try (re-) installing pip: python -m pip install --upgrade pip )

  • Debian, if virtualenv isn't there, try this instead
    • virtualenv donkeycar -p python3
    • cd donkeycar
    • export PATH=`pwd`/bin:$PATH
    • pip install tensorflow==1.8.0

(This seems to be v2, but 2019 instructions use 1.8?)

  • conda install tensorflow-cpu

Install Dingocar

  • pip install -e ./dingocar

Create an instance for your specific car

  • donkey createcar --path ~/mycar #give your car its own unique name here!