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
Copy file name to clipboardExpand all lines: docs/develop/installation.rst
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Installing DroneKit
5
5
===================
6
6
7
7
DroneKit-Python can be installed on a Linux, Mac OSX, or Windows computer that
8
-
has *Python 2.7* and can install Python packages from the Internet.
8
+
has Python 2.7 or Python 3 installed and can install Python packages from the Internet.
9
9
10
10
It is installed from **pip** on all platforms:
11
11
@@ -16,23 +16,25 @@ It is installed from **pip** on all platforms:
16
16
17
17
**Installation notes:**
18
18
19
-
* Mac and Linux require you prefix the command with ``sudo``.
19
+
* Install `dronekit` with `pip` inside a virtualenv:
20
20
21
21
.. code-block:: bash
22
22
23
-
sudo pip install dronekit
23
+
python3 -m venv .venv
24
+
. .venv/bin/activate
25
+
pip install dronekit
24
26
25
27
* On Linux you may need to first install **pip** and **python-dev**:
26
28
27
29
.. code-block:: bash
28
30
29
31
sudo apt-get install python-pip python-dev
30
32
31
-
Alternatively, the *easy_install* tool provides another way to install pip:
33
+
Alternatively, you can use the `ensurepip` module to install or upgrade Pip on Python 3:
32
34
33
35
.. code-block:: bash
34
36
35
-
sudo easy_install pip
37
+
python -m ensurepip --upgrade
36
38
37
39
* :doc:`companion-computers` are likely to run on stripped down versions of Linux. Ensure
38
40
you use a variant that supports Python 2.7 and can install Python packages from the Internet.
@@ -43,4 +45,4 @@ It is installed from **pip** on all platforms:
43
45
* `WinPython 2.7 64bit <http://sourceforge.net/projects/winpython/files/WinPython_2.7/>`_ (see
44
46
`these instructions for installation and registration <https://github.com/winpython/winpython/wiki/Installation>`_). This is the most tested version.
0 commit comments