Mirgate Terminal Setup Steps into Developer Guide (#5133)
* correct prepare_env.sh path * Alternative way to prepare envs
This commit is contained in:
parent
00a6a2a22f
commit
d120db025e
1 changed files with 31 additions and 0 deletions
|
|
@ -89,9 +89,40 @@ export PYTHONPATH=BigDL/python/dllib/src:BigDL/python/nano/src:BigDL/python/orca
|
|||
export PYTHONPATH=BigDL/python/dist/conf/spark-bigdl.conf:$PYTHONPATH
|
||||
```
|
||||
|
||||
- Install and add `tflibs` to `TF_LIBS_PATH`:
|
||||
```bash
|
||||
# Install bigdl-tf and bigdl-math
|
||||
pip install bigdl-tf bigdl-math
|
||||
|
||||
# Configure TF_LIBS_PATH
|
||||
export TF_LIBS_PATH=$(python -c 'import site; print(site.getsitepackages()[0])')/bigdl/share/tflibs
|
||||
```
|
||||
|
||||
|
||||
The above environment variables should be available when running or debugging code in the IDE. When running applications in PyCharm, you can add runtime environment variables by clicking __Run__ -> __Edit Configurations__; then in the __Run/Debug Configurations__ panel, you can add necessary environment variables to your applications.
|
||||
|
||||
|
||||
#### **1.3 Terminal Setup**
|
||||
|
||||
Besides setting the environment variables mentioned above manually for Linux users, we also provide a solution to set them with a script:
|
||||
|
||||
```bash
|
||||
# Install bigdl-tf and bigdl-math
|
||||
pip install bigdl-tf bigdl-math
|
||||
|
||||
cd BigDL/python/friesian
|
||||
source dev/prepare_env.sh
|
||||
```
|
||||
|
||||
You can verify the BigDL environment by running the following example.
|
||||
|
||||
```bash
|
||||
python BigDL/python/dllib/examples/autograd/custom.py
|
||||
```
|
||||
|
||||
Note that this approach will only work temporarily for this terminal.
|
||||
|
||||
|
||||
### **2. Scala**
|
||||
|
||||
#### **2.1 Build**
|
||||
|
|
|
|||
Loading…
Reference in a new issue