'ModuleNotFoundError: No module named 'termios' while mounting goole drive in local jupyter notebook (windows 11)

I am trying to mount google drive on my local jupyter notebook (Windows 11) using this code:

#Mount the google drive
from google.colab import drive
drive.mount('/content/drive')

I installed pip install google-colab, now when I execute the above command, I am getting the following error:

ModuleNotFoundError                       Traceback (most recent call last)
C:\Users\ANEESB~1\AppData\Local\Temp/ipykernel_11196/321285805.py in <module>
      1 #Mount the google drive
----> 2 from google.colab import drive
      3 drive.mount('/content/drive')

~\Anaconda3\lib\site-packages\google\colab\__init__.py in <module>
     21 from google.colab import _installation_commands
     22 from google.colab import _shell_customizations
---> 23 from google.colab import _system_commands
     24 from google.colab import _tensorflow_magics
     25 from google.colab import auth

~\Anaconda3\lib\site-packages\google\colab\_system_commands.py in <module>
     22 import locale
     23 import os
---> 24 import pty
     25 import select
     26 import signal

~\Anaconda3\lib\pty.py in <module>
     10 import os
     11 import sys
---> 12 import tty
     13 
     14 __all__ = ["openpty","fork","spawn"]

~\Anaconda3\lib\tty.py in <module>
      3 # Author: Steen Lumholt.
      4 
----> 5 from termios import *
      6 
      7 __all__ = ["setraw", "setcbreak"]

ModuleNotFoundError: No module named 'termios'

From what I have read here, it seems I cannot install or import termios in Windows, but I want to ask, is there a possible solution to this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source