Closed cuicaihao closed 3 years ago
After a few more tests + restart the PC, I found a solution with the following commands.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
Loading personal and system profiles took 1411ms.
(base) ➜ QT conda activate qt
(qt) ➜ QT fbs installer
Created target\HelloWorldSetup.exe.
(qt) ➜ QT cmd
Microsoft Windows [Version 10.0.19042.804]
(c) 2020 Microsoft Corporation. All rights reserved.
D:\Code\QT>fbs installer
Created target\HelloWorldSetup.exe.
I think powershell somehow blocked the path command on my pc. When I switched to cmd and run the command, all the NSIS tools are loaded properly.
conda env can not find the 'makensis' to build the installer files.
I used the
conda
to create an environment for Qt development and you can see all the packages installed in this env.I passed the following commands with in the tutorial:
but the command
gave me errors as follows.
I have installed NSIS and added it to my Env PATH. But it looks like the
conda env
cannot find the path specified on Windows. I looked into one solution addressed by conda: windows-environment-has-not-been-activated. But I can not understand how the proposed solution works.=================this is not a solution=======================
Thus, I tried to copy the entire NSIS exe files to python env as the following figure shows.
But it leads to another error:
I hope I have proved enough information to repeat this issue. Look forward to seeing any feedback.
By the way, I used the 'conda init PowerShell command when install
mininconda
. so my default shell is on condabase
.