MarkItDown is a Python tool for converting files and Office documents to Markdown.
First, I executed the following command:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Otherwise, I received the following error:
.\.venv\Scripts\Activate.ps1 : File C:\Users\user\.venv\Scripts\Activate.ps1 cannot be loaded. The file
C:\Users\user\.venv\Scripts\Activate.ps1 is not digitally signed. You cannot run this script on the current
system. For more information about running scripts and setting execution policy, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\.venv\Scripts\Activate.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Next, I created a virtual environment by running:
python -m venv .venv
Then, I activated the virtual environment by running:
.\.venv\Scripts\Activate.ps1
With the virtual environment activated, I executed the following command:
(.venv) PS C:\Users\user> pip install "markitdown[all]"