Drop in replacement scripts that replicate Conda's activate/deactivate commands in Powershell.
Clone or download
Liquidmantis Merge pull request #3 from xiamx/patch-1
Correct markdown on readme
Latest commit caf91f8 Nov 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Mar 28, 2014
README.md Correct markdown on readme May 31, 2017
activate.ps1 minor cleanup. remove registry functionality. Nov 25, 2015
deactivate.ps1 minor cleanup. remove registry functionality. Nov 25, 2015

README.md

PSCondaEnvs

Drop in replacement scripts that replicate Conda's activate/deactivate functions in Powershell.

Installation:

Simply copy activate.ps1 and deactivate.ps1 into your Anaconda\Scripts directory. You may need to remove or rename the existing BAT files but the PS1 versions seem to get precedence.

Added Features:

The optional -UpdateRegistry switch has been added which will update the Python installpath to be the activated virtualenv. I added this for installing compiled modules which detect the Python path from the registry. THIS SHOULD BE USED WITH EXTREME CAUTION! This has only been tested on my system and is hardcoded to the 2.7 installpath. This setting is also persistent unlike the session-based ephemeral virtualenv activation. Deactivate.ps1 will detect and prompt for reverting the change if a virtualenv hasn't been properly deactivated.

Credit: