Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 1.9 KB

conda-powershell-troubleshooting.md

File metadata and controls

16 lines (10 loc) · 1.9 KB

Conda Powershell Troubleshooting

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.

PowerShell profiles and ExecutionPolicy problems

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

Gazebo and ROS problems with PowerShell

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.