script:python
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
script:python [2020/02/26 17:22] – [Create execute file exe to run on windows] admin | script:python [2020/11/26 09:46] – [Create virtual environment for zipline app and using it] admin | ||
---|---|---|---|
Line 137: | Line 137: | ||
</ | </ | ||
Windows: download and install it from http:// | Windows: download and install it from http:// | ||
+ | |||
+ | After install, change the PATH of python to PATH of conda | ||
=== Basic Create virtual enviornment with conda === | === Basic Create virtual enviornment with conda === | ||
* Help options in Creating environment:< | * Help options in Creating environment:< | ||
Line 208: | Line 210: | ||
</ | </ | ||
=== Create virtual environment for zipline app and using it === | === Create virtual environment for zipline app and using it === | ||
- | We will install **zipline** which requirement package **numpy**: | + | We will install **zipline** which requirement package **numpy** |
- Step1: Create new virtual environment with name **zipline** which contain package **numpy** in conda< | - Step1: Create new virtual environment with name **zipline** which contain package **numpy** in conda< | ||
conda create -n zipline numpy | conda create -n zipline numpy | ||
- | </ | + | </ |
+ | D: | ||
+ | </ | ||
- Step2: Go to virtual environment zipline:< | - Step2: Go to virtual environment zipline:< | ||
source activate zipline | source activate zipline | ||
+ | </ | ||
+ | conda.bat activate zipline | ||
</ | </ | ||
- Step3: Install zipline in environment:< | - Step3: Install zipline in environment:< | ||
conda install -c Quantopian zipline | conda install -c Quantopian zipline | ||
- | </ | + | </ |
=== Other commands of conda === | === Other commands of conda === | ||
* List environments in conda< | * List environments in conda< | ||
Line 229: | Line 235: | ||
* Remove environment in conda:< | * Remove environment in conda:< | ||
conda env remove -n zipline | conda env remove -n zipline | ||
- | </ | + | </ |
- | ==== anaconda | + | * Install packages in environment https:// |
+ | ==== Anaconda | ||
install anaconda:< | install anaconda:< | ||
conda install anaconda | conda install anaconda | ||
</ | </ | ||
- | ===== Build python modules from source | + | ==== Build python modules from source ==== |
- Step1: Download source and go to source directory and run<code bat> | - Step1: Download source and go to source directory and run<code bat> | ||
pip install -r requirements.txt | pip install -r requirements.txt |
script/python.txt · Last modified: 2023/11/28 09:35 by admin