Hi Harshita_Saraswat,
For me it seems to work. I did the following things:
First, I make sure that FreeCAD is installed on Windows.
Then, I install Python through the Windows App store. I then run the following commands while being in the root directory of your project (in PowerShell):
pip install build
python -m build
cd dist
pip install freecad_preference_manager...
It turns out that freecad-preference-manager is not available, so I first try to install it in a virtual environment:
python -m venv venv
It turns out I cannot activate the virtual environment because Windows doesn’t allow me to run scripts. To solve this I run PowerShell as administrator and execute the following command:
Set-ExecutionPolicy RemoteSigned
With this, I can activate the virtual environment with:
./venv/Scripts/Activate
I can then install the package:
pip install freecad_preference_manager....whl
This installs correctly and gives me freecad-preference-manager.exe as being available. While executing, it turns out that FreeCAD is not available, so I get this error:
Neither of the following commands are available: FreeCADCmd, freecadcmd
After adding C:\Program Files\FreeCAD 0.21\bin to the Path environment variable, freecad-preference-manager works correctly.
Ok, but this is in a virtual environment. To run it outside of the virtual environment I need to place the following directory in the Path environment variable as well:
C:\Users\Pieter\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n...\LocalCache\local-packages\Python312\Scripts
After that the command preference-manager-freecad is available in general, without a virtual environment and it works correctly.