# Impossible d'importer la biblothèque python tutor dans pycharm

**URL:** <https://www.debian-fr.org/t/impossible-dimporter-la-biblotheque-python-tutor-dans-pycharm/87172>\
**Category:** Programmation\
**Tags:** python, bibliothèques\
**Created:** [Septembre 22, 2022, 12:16 UTC](https://www.debian-fr.org/t/impossible-dimporter-la-biblotheque-python-tutor-dans-pycharm/87172 "2022-09-22T12:16:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel75](https://www.debian-fr.org/user_avatar/www.debian-fr.org/gabriel75/32/12826_2.png) [@gabriel75](https://www.debian-fr.org/u/gabriel75)\
**Post date:** [Septembre 22, 2022, 12:16 UTC](https://www.debian-fr.org/t/impossible-dimporter-la-biblotheque-python-tutor-dans-pycharm/87172/1 "2022-09-22T12:16:38Z")

</div>

Bonjour, j’aimerais pouvoir utiliser la bibliothèque tutor sur mon IDE Pycharm.  
C’est un module qui me permet de détailler l’exécution d’un programme pour mieux le debuger.  
J’ai bien installé le mod,ule avec pip install tutor, et importer la bibliothèque avec from tutor import tutor mais je me retrouve systématiquement avec une erreur telle que:

```nohighlight
ImportError: cannot import name 'tutor' from 'tutor' (C:\Users\Gabriel Nunès\AppData\Local\Programs\Python\Python310\lib\site-packages\tutor\ __init__.py)

```

Si quelqu’un à une idée, je suis preneur.  
Merci d’avance pour votre aide.

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Septembre 22, 2022, 1:08 UTC](https://www.debian-fr.org/t/impossible-dimporter-la-biblotheque-python-tutor-dans-pycharm/87172/2 "2022-09-22T13:08:08Z")

</div>

Bonjour,

visiblement on est sur un environnement Windows donc je réponds un peu au pif, mais es-tu sûr que ton installation de tutor via pip concerne le même environnement python que celui utilisé par PyCharm ?  
Tu as exécuté ton `pip install tutor` dans quel contexte ?

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Septembre 22, 2022, 1:40 UTC](https://www.debian-fr.org/t/impossible-dimporter-la-biblotheque-python-tutor-dans-pycharm/87172/3 "2022-09-22T13:40:14Z")

</div>

Bonjour,  
Es-tu sur d’etre dans le bon forum?

> [@gabriel75](#):
>
> ```plaintext
> C:\Users\Gabriel Nunès\AppData\Local\Programs\Python\Python310\lib\site-packages\t
> 
> ```

ca ressemble à du windows ça.

---

<div class="post-metadata">

**Author:** ![gabriel75](https://www.debian-fr.org/user_avatar/www.debian-fr.org/gabriel75/32/12826_2.png) [@gabriel75](https://www.debian-fr.org/u/gabriel75)\
**Post date:** [Septembre 23, 2022, 8:49 UTC](https://www.debian-fr.org/t/impossible-dimporter-la-biblotheque-python-tutor-dans-pycharm/87172/4 "2022-09-23T08:49:42Z")

</div>

Mon pc tourne sur un dual-boot debian-windows mais pour le développement, je suis contraint de rester sur windows car j’ai quelque outils qui me sont indispensables. Mais dans ce cas précis le problème est identique sur Debian.

```nohighlight
gabriel@DESKTOP-5AGHD0Q ~> python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tutor import tutor
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'tutor' from 'tutor' (/usr/local/lib/python3.9/dist-packages/tutor/ __init__.py)
>>>

```
