# Connecting Tello Drone to Python

**URL:** <https://community.droneblocks.io/t/connecting-tello-drone-to-python/213>\
**Category:** Uncategorized\
**Created:** [November 7, 2021, 3:43am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213 "2021-11-07T03:43:01Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![pat.ryan](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@pat.ryan](https://community.droneblocks.io/u/pat.ryan)\
**Post date:** [November 16, 2021, 10:30pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/21 "2021-11-16T22:30:38Z")

</div>

Hi @mwkappas

When you enter the python console it will tell you what version of python you are running as I have highlighted below.

 ![2021-11-16_16-27-43](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/892468ba7c7c78f25eb195f558ec2660d18183de.png)

If you are just in your terminal, outside the python console you can type:

python --version

or

python3 --version

depending upon your operating system, to get the current python version.

I hope that helps

Pat

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 16, 2021, 10:56pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/22 "2021-11-16T22:56:19Z")

</div>

yes it did - I just switched to the Anacondo command prompt and typed in python --version.

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 17, 2021, 11:06am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/23 "2021-11-17T11:06:37Z")

</div>

Here is an image of my command prompt (when I tried to create a python virtual environment):

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/5f54667317335e29b6907eb28dd43485c3325d8d.png)

I don’t know why I got the below response from the command propmtp when I typed “source venv/bin/activate”…  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/e4e46107c146531cd9ae0004f23f3dcecfdbb1ca.png)

…instead of the following response (which lesson 1 indicates is the correct response…  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/37f3814b3a7d437d463c831029d63de9f5b566b1.png)

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 17, 2021, 11:11am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/24 "2021-11-17T11:11:09Z")

</div>

And on another subject: I don’t know why the command “ls” does not work in my command prompt:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/10a2e35c94bf23da5194b4c72fa80757c39b86fd.png)

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 17, 2021, 11:13am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/25 "2021-11-17T11:13:17Z")

</div>

For your information here is the result when I type “dir”:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/5616fa02fa5b141eeb189f0b42d9f6cb851e87e5.png)

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 17, 2021, 11:22am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/26 "2021-11-17T11:22:37Z")

</div>

the following commands are also not recognized by my command prompt: “nano” &“unzip”.

(although I did extract the **tell-adv-setup-master** file in my File Explorer after I downloaded this zip file)

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 17, 2021, 11:43am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/27 "2021-11-17T11:43:58Z")

</div>

I am not sure why my setup.py file is not showing up in my command prompt - because I do see it in my File Explorer (1KB).  
And here is the result when I type “pip install -r requirements.txt”:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/16830ad69c97a2044d3e603099c8405f55c9328f.png)

---

<div class="post-metadata">

**Author:** ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)\
**Post date:** [November 19, 2021, 3:59am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/28 "2021-11-19T03:59:14Z")

</div>

It looks like you still need to cd one more level down from where you currently are. From the directory you’re in (previous image) you’ll need to do the following:

cd tello-adv-setup-master

and then you can run:

pip install -r requirements.txt

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 20, 2021, 10:22pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/29 "2021-11-20T22:22:11Z")

</div>

Well, I am no sure why I have to ‘cd’ to ‘tello-adv-setup-master’ when I am already there…but I did so…and it worked (see images below)!

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/1e41e2f5bb3865d1ffb35f876511c7c438dac3bc.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/3f2289b5158e5eb19e1e580d124132176716aab4.png)

I am still confused as to why some commands, like “ls”, ‘source,’ ‘nano’, ‘pwd’ do not work in the Anaconda command prompt (nor in Windows powershell - although ‘ls’ does work in Windows powershell). See image below.  
Am I in my virtual environment (venv)? I am still researching these issues…

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/54854fe002103f06f55d8f7b6a93678bb400716b.png)

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 21, 2021, 1:22am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/30 "2021-11-21T01:22:55Z")

</div>

In regards to your previous message, I now understand why I had to ‘cd’ one level down (because there was another branch in the directory). Anyways, my other questions (above) still vex me. And here is another question (along with accompanying image): if I am using a Windows environment instead of a Macintosh environment, should i use **.\venv\scripts\activate** instead of **source venv/bin/activate**?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/d02de68048700ccd3cb8a48242d7a1ab1933ed00.png)  
The command ‘source’ is not working in my Windows Powershell. Also, how exactly would I use **.\venv\scripts\activate**?

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 21, 2021, 2:59am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/31 "2021-11-21T02:59:48Z")

</div>

Well, i found the answer to one of my questions (go to current working director - project file):

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/f7591a9f3917d171412981328a958d07db39a37e.png)  
…but I am not sure why both (venv) and (base) and indicated - shouldn’t it be one or the other?

…and here is an update on my pip install:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/8c5073d0b628a5a3aa158a3974c8850358c37add.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/f5cbd9c23742f238600438d2c9845070f1d05a85.png)

More updates:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/986be8a34e6978f0cbdf63a45073c6d94a062ee1.png)  
My last question for today: why is my “import cv2.aruco” not successful? (see below)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/59a1aa27b08976303db2df6f5743573fd6a0d1dc.png)  
even when i try “pip install opencv-python” - still not successful…

---

<div class="post-metadata">

**Author:** ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)\
**Post date:** [November 22, 2021, 1:57pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/32 "2021-11-22T13:57:04Z")

</div>

Aruco markers for OpenCV are in a different package. You can do:

pip install opencv-contrib-python

More details here:

> **[opencv-contrib-python](https://pypi.org/project/opencv-contrib-python/)**
>
> Wrapper package for OpenCV python bindings.

Good luck!

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [November 24, 2021, 11:28am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/33 "2021-11-24T11:28:33Z")

</div>

Thank you.

Here is another question: can you explain what it means that I get a different response when i type ‘python’ vs ‘python3’ in the example below?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/a15ebddf9560ce95fbee9f00b9734ae998bac8e8.png)

---

<div class="post-metadata">

**Author:** ![pat.ryan](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@pat.ryan](https://community.droneblocks.io/u/pat.ryan)\
**Post date:** [December 1, 2021, 2:36am UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/34 "2021-12-01T02:36:08Z")

</div>

My guess is that on some operating systems, like MacOS and Linux there are 2 executables:

python - which is typically the old Python 2.x

and

python3 - which is the newest Python 3.x

On windows, it might just be that you only have python and not python3.

---

<div class="post-metadata">

**Author:** ![kingraham](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kingraham](https://community.droneblocks.io/u/kingraham)\
**Post date:** [December 8, 2021, 10:04pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/35 "2021-12-08T22:04:15Z")

</div>

I need some help troubleshooting connecting my computer to the Tello drone. I have been following along with the DroneBlocks Python and Tello curriculum. I have been following the GitHub links as well as the videos. I have downloaded Anaconda, Jupyter, and Packet Sender. I can connect to the Tello wifi network from the drone. I change it to my IP address and port 8889 but it doesn’t run the code. I also used the Tello IP address with port 8889 in Packet Sender to test send and I am not getting a response back from my Tello. It is still on and I am still connected to the Tello network at this time. What am I missing?

---

<div class="post-metadata">

**Author:** ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)\
**Post date:** [December 8, 2021, 10:05pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/36 "2021-12-08T22:05:40Z")

</div>

Would you mind posting a screenshot of your packet sender configuration as well as the command to communicate with Tello? This would be incredibly useful to help us debug.

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [December 8, 2021, 10:30pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/37 "2021-12-08T22:30:45Z")

</div>

Continuing the discussion from [Connecting Tello Drone to Python](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/8):

---

<div class="post-metadata">

**Author:** ![kingraham](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kingraham](https://community.droneblocks.io/u/kingraham)\
**Post date:** [December 12, 2021, 9:38pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/38 "2021-12-12T21:38:08Z")

</div>

Sorry for my delay in responding. I tried again on a different machine and I’m still not able to connect. Here is a screenshot - [https://photos.app.goo.gl/Ga8jfvBXvXaojUoz6](https://photos.app.goo.gl/Ga8jfvBXvXaojUoz6). I am connected to the Tello wifi and I wait about 30 seconds before trying to send it. I also restarted the Tello and tried and it still said it could not connect. I also try again after over a minute of waiting after connecting to the Tello network.

---

<div class="post-metadata">

**Author:** ![mwkappas](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mwkappas](https://community.droneblocks.io/u/mwkappas)\
**Post date:** [December 12, 2021, 10:00pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/39 "2021-12-12T22:00:08Z")

</div>

I am not sure if I have the answer (as I am not the instructor). However, did you try going into the Settings and clicking ‘Enable UDP Servers’ and typing in a number other than 8889, such as 9000 or 9003? (see image below)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/3339fdc032e29f3c677f61968b8b6e4c1bef57fc.jpeg)

This guidance comes from the following video:

[https://dl.dropboxusercontent.com/s/oqv0w0dkbsdfxhi/tello\_python\_simulator\_with\_packet\_sender.mp4?dl=0](https://dl.dropboxusercontent.com/s/oqv0w0dkbsdfxhi/tello_python_simulator_with_packet_sender.mp4?dl=0)

---

<div class="post-metadata">

**Author:** ![kingraham](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kingraham](https://community.droneblocks.io/u/kingraham)\
**Post date:** [December 12, 2021, 10:22pm UTC](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213/40 "2021-12-12T22:22:57Z")

</div>

Thanks for responding! I tried 9000 and it still could not connect.

[Previous page](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213.md?page=1)

[Next page](https://community.droneblocks.io/t/connecting-tello-drone-to-python/213.md?page=3)
