# I got error when i try to import pennylane

**URL:** https://discuss.pennylane.ai/t/i-got-error-when-i-try-to-import-pennylane/3297
**Category:** PennyLane Help
**Created:** [August 10, 2023, 8:40am UTC](https://discuss.pennylane.ai/t/i-got-error-when-i-try-to-import-pennylane/3297 "2023-08-10T08:40:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![maar\_hybrid](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/maar_hybrid/32/1860_2.png) [@maar\_hybrid](https://discuss.pennylane.ai/u/maar_hybrid)
#### Post date: [August 10, 2023, 8:40am UTC](https://discuss.pennylane.ai/t/i-got-error-when-i-try-to-import-pennylane/3297/1 "2023-08-10T08:40:29Z")

</div>

I tried to fix error, but i know know why such error happens

```auto
File ~/anaconda3/lib/python3.9/site-packages/pennylane/ __init__.py:125, in 
    122 import pennylane.qinfo # pylint:disable=wrong-import-order
    123 from pennylane.interfaces import execute # pylint:disable=wrong-import-order
--> 125 import pennylane.dat
    144 See: https://peps.python.org/pep-0681/
    145 """
    148 Self = TypeVar("Self", bound="Dataset")
TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers'

```

I already tried to uninstall pennylane and install again, or sudo apt-get update, pip install qiskit --upgrade, pip install pennylane --upgrade, etc.  
Also conda install -c conda-forge pennylane does not work (infinite loading for Solving environment)

Nothing works, i need help

---

<div class="post-metadata">

### Author: ![isaacdevlugt](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/isaacdevlugt/32/1159_2.png) [@isaacdevlugt](https://discuss.pennylane.ai/u/isaacdevlugt)
#### Post date: [August 10, 2023, 1:50pm UTC](https://discuss.pennylane.ai/t/i-got-error-when-i-try-to-import-pennylane/3297/2 "2023-08-10T13:50:34Z")

</div>

Hey @maar_hybrid!

Interesting… none of us here are able to replicate that — we can all install a fresh version of PennyLane on Python 3.9 without issues. It might be that you’re using an old version of `typing_extensions` 🤔. PennyLane requires `typing_extensions~=4.5.0`, and I think there was only a 4.5. **0** release, so it should be that version specifically.

If none of this works, I recommend creating a fresh virtual environment and installing PennyLane there 🙂. Let me know if any of this helps!

---

<div class="post-metadata">

### Author: ![maar\_hybrid](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/maar_hybrid/32/1860_2.png) [@maar\_hybrid](https://discuss.pennylane.ai/u/maar_hybrid)
#### Post date: [August 17, 2023, 4:07am UTC](https://discuss.pennylane.ai/t/i-got-error-when-i-try-to-import-pennylane/3297/3 "2023-08-17T04:07:51Z")

</div>

I dont know why but i solved problem by update lots of things. Thank you

---

<div class="post-metadata">

### Author: ![CatalinaAlbornoz](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/catalinaalbornoz/32/1196_2.png) [@CatalinaAlbornoz](https://discuss.pennylane.ai/u/CatalinaAlbornoz)
#### Post date: [August 17, 2023, 9:14pm UTC](https://discuss.pennylane.ai/t/i-got-error-when-i-try-to-import-pennylane/3297/4 "2023-08-17T21:14:49Z")

</div>

I’m glad you solved the problem @maar_hybrid !
