For most of the conda
related documentation in the robotology-superbuild
, it is assume that the command-line interpreter to use on Windows is the Command Prompt.
While Powershell may work in some situations, powershell users may encounter the problems listed in the following. See #890 for the reference issue on supporting Powershell in conda docs.
If you use PowerShell, note that the conda init
commands works by creating a PowerShell profile script. On new Windows machines, the default Execution Policies for PowerShell is quite restrictive, and so it does not permit to profiles to run. If that it is the case for you, after you run conda init
you may get a " cannot be loaded because running scripts is disabled on this system." error whenever you launch PowerShell. To fix this problem, you can just open an Windows Powershell with "Run as administrator", and set the execution policy of your system to allow running profile scripts:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Some conda packages that are not part of the robotology
channel, such as Gazebo or ROS) do not support PowerShell in their activation scripts. If you want to use them, make sure that you use Command Prompt.