Skip to content

Conda cannot be activated on Windows if AppLocker is used #13610

@pnsaevik

Description

@pnsaevik

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

The problem is described in the issue ContinuumIO/anaconda-issues#9450

In short, when AppLocker is used on a Windows system (which is a common company-wide policy), conda is blocked.

The user gets the following unhelpful response: "This program is blocked by group policy. For more information, contact your system administrator."

The problem is that conda activation creates a temporary script with a random name, puts it in the 'Temp' folder, and tries to execute it. This looks too much like malware to AppLocker, so it gets blocked.

Something similar happens if one tries to activate conda through PowerShell.

I don't know what would be the best solution to this problem. A workaround is outlined in ContinuumIO/anaconda-issues#9450.

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    in-progressissue is actively being worked onos::windowsrelevant to Windowsseverity::3major; broken functionality with a workaroundsource::communitycatch-all for issues filed by community membersstale::recovered[bot] recovered after being marked as staletype::bugdescribes erroneous operation, use severity::* to classify the type

    Type

    No type

    Projects

    Status

    🏁 Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions