-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathbasic_installation.txt
54 lines (34 loc) · 1.71 KB
/
basic_installation.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- coding: utf-8 -*-
Install luxpy:
1) Install miniconda (download installer from: https://conda.io/miniconda.html / https://repo.continuum.io/miniconda/)
e.g. https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe
(make sure 'conda.exe' can be found on the windows system path, if necessary do a manual add)
2) Create a virtual environment with full anaconda distribution:
Type the following at a windows commandline
>> conda create --name py36 python=3.6 anaconda
3) Activate virtual environment:
>> activate py36
4) Install pip to virtual environment
(just to ensure any packages to be installed with pip to this virt. env. will be installed here and not globally):
>> conda install -n py36 pip
5) Install luxpy package from pypi:
>> pip install luxpy
(if any errors show up, try and do a manual install of the dependencies: scipy, numpy, pandas, matplotlib and setuptools,
either using e.g. ">> conda install scipy" or ">> pip install scipy",
and try and reinstall luxpy using pip)
Use of luxpy package in "spyder" / "jupyter notebook":
a. Spyder: matlab-like IDE:
5a) Install spyder in py36 environment:
>> conda install -n py36 spyder
6a) Run spyder
>> spyder
7a) To import the luxpy package, on spyder's commandline for the IPython kernel (or in script) type:
import luxpy as lx
b. Jupyter notebook:
5b) Start jupyter notebook:
>> jupyter notebook
6b) Open an existing or new notebook:
e.g. open "luxpy example code 1.ipynb" for an overview of how to use the luxpy package
(or see luxpy_module_overview.md on www.github.com/ksmet1977/luxpy)
7b) To import luxpy package type:
import luxpy as lx