Chris Conlan

Financial Data Scientist

  • About
  • Blog
    • Business Management
    • Programming with Python
    • Programming with R
    • Automated Trading
    • 3D Technology and Virtual Reality
  • Books
    • The Financial Data Playbook
    • Fast Python
    • Algorithmic Trading with Python
    • The Blender Python API
    • Automated Trading with R
  • Snippets

Using Anaconda Python from Powershell

June 25, 2018 By Chris Conlan Leave a Comment

Recently, I found the need to use Anaconda Python from a more sophisticated shell than CMD.exe. If for no other reason than getting a shell that was easier on the eyes, I offered $100 to /r/PowerShell to get it done.

The community followed through and we built a pretty good replica of Anaconda’s activate.bat.

Our Solution

Our solution was good, but lacking in some areas including:

  • Configuring anything but the base environment via pip, easy_install, or conda install.
  • Interoperability with activate.bat.
  • Virtualizing programs other than Python.

Looking Forward

Thankfully, this solution satisfied me while out of town, and I was able to get back to my Linux box. Eventually, our efforts got the attention of the core developers at Anaconda, who pointed out really well-developed solutions here. The core devs also mentioned that Powershell was in their roadmap. Hopefully, Powershell is officially supported by Anaconda before I need it again.

The Best Solution

I had a lot of trouble finding this repository. It is best drop-in replacement for Anaconda’s activate.bat and deactivate.bat https://github.com/Liquidmantis/PSCondaEnvs.

Filed Under: Snippets

Leave a Reply Cancel reply

Fast Python: Master the Basics to Write Faster Code

Fast Python: Master the Basics to Write Faster Code

Available for purchase at Amazon.com.

Featured Posts: Python Programming

Pulling All Sorts of Financial Data in Python [Updated for 2021]

When to Use Heap Sort to Speed Up your Python Code

Fastest Way to Flatten a List in Python

Topics

  • 3D Technology and Virtual Reality (8)
  • Automated Trading (9)
  • Business Management (9)
  • Chris Conlan Blog (5)
  • Computer Vision (2)
  • Programming with Python (16)
  • Programming with R (6)
  • Snippets (8)
  • Email
  • LinkedIn
  • RSS
  • YouTube

Copyright © 2022 · Enterprise Pro Theme On Log in