Cannot run or debug CircuitPython code on Raspberry Pi Pico with PyCharm.

I am trying to use PyCharm as IDE for Raspberry Pi Pico using Adafruit's CircuitPython libraries.
I already tried this method but for some reason I cannot update the code on the Pico, but only read what has already been uploaded trough either Thonny, Mu Editor or directly from the disk partition with the simple Windows Notepad.
When I try to run the code I get the following error:

Traceback (most recent call last):
  File "D:\", line 2, in <module>
    import board
  File "C:\Users\miusr\MyProject\venv\Lib\site-packages\", line 354, in <module>
    raise NotImplementedError(
        Adafruit-PlatformDetect version 3.47.0 was unable to identify the board and/or
        microcontroller running the Windows platform. Please be sure you
        have the latest packages running:
        'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'

Yet I have already have these installed both global and in the virtual environment.
Also when I try to add a file to the directory I get the following message:

Clear Read-Only Status:
Failed to change read-only status for the following files: D:\

Refactoring cannot be performed Directory D:\ is read-only.

I would like to use PyCharm as I find it better for debugging and for the good IntelliSense.
Thanks in advance.