paddlecloud上传python3后无法使用
Created by: Rayarrow94
Fluid-v1.5,python3.6.5,CPU集群
mpi集群默认采用python2,自己上传的python3.6,存放于集群thirdparty目录下,before_hook.sh里面source end_hook.sh,end_hook.sh有下面四条命令,设置环境变量: chmod a+x ./thirdparty/python36/bin/python3 export PATH=./thirdparty/python36/bin:$PATH export LD_LIBRARY_PATH=./thirdparty/python36/lib:$LD_LIBRARY_PATH export PYTHONHOME=./thirdparty/python36/
run.mpi.sh执行: python3 -u train.py --use_parallel_exe 1 --batch_size 500 --cpu_num=2 --data_dir train_data --test_data_dir test_data
报错: Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings'