# Getting this error "import robot" all the time

**URL:** <https://forum.robotframework.org/t/getting-this-error-import-robot-all-the-time/5815>\
**Category:** Robot Framework\
**Created:** [12 June 2023 13:43 UTC](https://forum.robotframework.org/t/getting-this-error-import-robot-all-the-time/5815 "2023-06-12T13:43:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viki](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/viki/32/4382_2.png) [@Viki](https://forum.robotframework.org/u/Viki)\
**Post date:** [12 June 2023 13:43 UTC](https://forum.robotframework.org/t/getting-this-error-import-robot-all-the-time/5815/1 "2023-06-12T13:43:58Z")

</div>

I am new trying to learn AutomationTesting and I am facing this error  
[https://share.getcloudapp.com/xQuEvgeZ](https://share.getcloudapp.com/xQuEvgeZ)  
Can someone please help me ?

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [12 June 2023 21:57 UTC](https://forum.robotframework.org/t/getting-this-error-import-robot-all-the-time/5815/2 "2023-06-12T21:57:21Z")

</div>

Hi Viki,

It seems you don’t have robot framework installed, the hint at the end of the message tells you, you can try

```python
pip install robotframework

```

Have you tried this already? if so you might be encountering an issue with multiple python environments because `/Library/Developer/CommandLineTools/usr/bin/python3` is not the standard install location for python on a Mac

Maybe try exactly as the message says

```python
/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install robotframework

```

so that robot framework is installed in that python environment.

Hope that helps,

Dave.

---

<div class="post-metadata">

**Author:** ![nelgoez](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/nelgoez/32/4340_2.png) [@nelgoez](https://forum.robotframework.org/u/nelgoez)\
**Post date:** [14 November 2024 21:22 UTC](https://forum.robotframework.org/t/getting-this-error-import-robot-all-the-time/5815/3 "2024-11-14T21:22:59Z")

</div>

this only get this:

```
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

```

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/5/5cafb1689c2c943b152740f150cea51ed154deee.png)

Does anyone else was eblo to solve this?

This are my sys details:

# System Details Report

* * *

## Report details

- **Date generated:** 2024-11-14 18:22:26

## Hardware Information:

- **Hardware Model:** Dell Inc. Latitude 7420
- **Memory:** 16,0 GiB
- **Processor:** 11th Gen Intel® Core™ i7-1165G7 × 8
- **Graphics:** Intel® Xe Graphics (TGL GT2)
- **Disk Capacity:** 256,1 GB

## Software Information:

- **Firmware Version:** 1.37.0
- **OS Name:** Ubuntu 24.04.1 LTS
- **OS Build:** (null)
- **OS Type:** 64-bit
- **GNOME Version:** 46
- **Windowing System:** X11
- **Kernel Version:** Linux 6.8.0-48-generic

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [14 November 2024 22:50 UTC](https://forum.robotframework.org/t/getting-this-error-import-robot-all-the-time/5815/4 "2024-11-14T22:50:45Z")

</div>

Hi Nahuel,

As that message is telling you, you should use a venv on recent Linux distributions, I’ve seen this on many recent Linux distributions, but importantly on Debian which is what Ubuntu is based on.

If you want to understand why this has happened, this article from The University of Minnesota explains it well:

> **[Ubuntu 24.04 Upgrade Announcement](https://cse.umn.edu/cseit/news/ubuntu-2404-upgrade-announcement)**
>
> CSE-IT will be upgrading all CSELABS Linux systems to Ubuntu 24.04 for the Fall 2024 semester. This is the latest Long Term Supported version of Ubuntu and will be the latest supported version for the next two years.Ubuntu 24.04 contains updates to...

This thread from the Ubuntu help explains how to use venv on your system:

> <https://askubuntu.com/questions/1528574/how-to-install-virtualenv-on-ubuntu-24-04>

Note that to install virtualenv is it’s not installed you should use:

```python
sudo apt install python3-virtualenv

```

Then use this command to create a venv

```python
python3 -m venv <myvenvname>

```

hopefully that helps you resolve the issue

Dave.

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [15 November 2024 08:08 UTC](https://forum.robotframework.org/t/getting-this-error-import-robot-all-the-time/5815/5 "2024-11-15T08:08:25Z")

</div>

Dunno how the packaging on deb based packaging has been moving forward but, `venv` module should ship with python itself and `virtualenv` is not the same module as `venv` 😉
