User Tools

Site Tools


doc:crazyflie:dev:env:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:crazyflie:dev:env:python [2015-01-29 13:50]
arnaud
doc:crazyflie:dev:env:python [2021-06-24 16:48]
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page has deprecated and will be archived. Please go to [[https://www.bitcraze.io/]].
 +</WRAP>
 +====== Setting-up python development environment ======
 +
 +Up-to-date information on how to run the python client from source can be found in the project [[https://github.com/bitcraze/crazyflie-clients-python/blob/develop/README.md|readme]]. This page aims at being a more user-friendly walk-throw.
 +
 +===== Windows =====
 +
 +Install dependencies:
 +  - Python 2.7  32bit (x86) from https://www.python.org/downloads/windows/
 +  - PyQT4 for Python 2.7 32bit from http://www.riverbankcomputing.com/software/pyqt/download
 +  - Scipy for Python 2.7 32bit from http://sourceforge.net/projects/scipy/files/scipy/
 +  - PyQTGraph for Python 2.7 32bit from http://www.pyqtgraph.org/
 +
 +To install python dependencies you can use PIP, a python package manager that is installed with python. To use it launch a Windows command line client by typing "windows key" then "cmd". In the command line windows type the following (you can copy-paste the lines):
 +<code>
 +C:\Python27\Scripts\pip.exe install pyusb==1.0.0b2
 +C:\Python27\Scripts\pip.exe install pysdl2
 +</code>
 +
 +{{:doc:crazyflie:dev:env:windows_install_pip.png|}}
 +
 +Download or clone the Crazyflie client. You can download a zip of the sourcec ode from [[https://github.com/bitcraze/crazyflie-clients-python|github]] or clone it using [[http://git-scm.com/downloads|git for windows]] or a [[http://git-scm.com/downloads/guis|git GUI client]].
 +
 +Now that you have a copy of the Client source code, download SDL2 32bit from the SDL website (http://libsdl.org/download-2.0.php) and copy the file SDL2.dll in the source folder.
 +
 +You can now run the client from the command line window:
 +<code>
 +cd <folder where the source code is cloned>
 +C:\Python27\Python.exe bin\cfclient
 +</code>
 +
  
doc/crazyflie/dev/env/python.txt · Last modified: 2021-06-24 16:48 by kimberly