Skip to content

Instantly share code, notes, and snippets.

@devmnj
Created December 16, 2023 17:11
Show Gist options
  • Save devmnj/ef98c6a0529aef3e8d570db42bf6be20 to your computer and use it in GitHub Desktop.
Save devmnj/ef98c6a0529aef3e8d570db42bf6be20 to your computer and use it in GitHub Desktop.
Anaconda env in Windows
Managing conda environments
It is recommended to install Zipline in an isolated conda environment. Installing Zipline in conda environments will not interfere your default Python deployment or site-packages, which will prevent any possible conflict with your global libraries. For more information on conda environment, see the Conda User Guide.
Assuming conda has been set up, you can create a conda environment:
$ conda create -n env_zipline python=3.10
Now you have set up an isolated environment called env_zipline, a sandbox-like structure to install Zipline. Then you should activate the conda environment by using the command
$ conda activate env_zipline
You can install Zipline by running
(env_zipline) $ conda install -c ml4t zipline-reloaded
To deactivate the conda environment:
(env_zipline) $ conda deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment