# Import Module for Vector Operations Error

**URL:** <https://forums.openmv.io/t/import-module-for-vector-operations-error/2148>\
**Category:** OpenMV Boards\
**Created:** [January 26, 2021, 11:57pm UTC](https://forums.openmv.io/t/import-module-for-vector-operations-error/2148 "2021-01-26T23:57:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajacobs](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@ajacobs](https://forums.openmv.io/u/ajacobs)\
**Post date:** [January 26, 2021, 11:57pm UTC](https://forums.openmv.io/t/import-module-for-vector-operations-error/2148/1 "2021-01-26T23:57:55Z")

</div>

I was previously using this library for vector operations on OpenMV Cam M7 with IDE 2.6.5.

> **[micropython-vec on Pypi](https://libraries.io/pypi/micropython-vec)**
>
> Vector Operations on MicroPython

import vec  
import vec.distance

With the upgrade to IDE 2.6.8 and the latest firmware, the vec library is not found. Getting message ImportError: no module named ‘vec’.

How do I install this micropython module again for use with OpenMV?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [January 27, 2021, 12:57am UTC](https://forums.openmv.io/t/import-module-for-vector-operations-error/2148/2 "2021-01-27T00:57:19Z")

</div>

Hi, please switch to ulab.

Alternatively, you can download the code that made up that library and put it in your uPY disk and the library will be available.

---

<div class="post-metadata">

**Author:** ![ajacobs](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@ajacobs](https://forums.openmv.io/u/ajacobs)\
**Post date:** [January 27, 2021, 2:54am UTC](https://forums.openmv.io/t/import-module-for-vector-operations-error/2148/3 "2021-01-27T02:54:49Z")

</div>

How do I switch to ulab?

What changed with this latest firmware that import vec is not working?

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [January 27, 2021, 2:20pm UTC](https://forums.openmv.io/t/import-module-for-vector-operations-error/2148/4 "2021-01-27T14:20:29Z")

</div>

Hi, I was asked to remove these libraries to save flash and because ulab already provides vector and matrix ops, we have recently freed more flash so it’s possible to return these libraries if you need them, but you should check first and see if you can use ulab instead: [Welcome to the ulab book! — The ulab book 5.1.0 documentation](https://micropython-ulab.readthedocs.io/en/latest/)
