rtthread-esp-idf icon indicating copy to clipboard operation
rtthread-esp-idf copied to clipboard

ubuntu14.04编译报错,Could not find platform independent libraries <prefix>.....

Open gexueyuan opened this issue 7 years ago • 1 comments

貌似是在最后一步,调用python脚本生成镜像的时候报错: python esp-idf-port/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 elf2image --flash_mode "dio" --flash_freq "40m" --flash_size "4MB" -o rtthread.bin rtthread-esp32.elf Could not find platform independent libraries Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to [:<exec_prefix>] ImportError: No module named site scons: *** [rtthread.bin] Error 1 scons: building terminated because of errors. make: *** [all] Error 2

gexueyuan avatar Jul 18 '18 02:07 gexueyuan

从报错的提示来看,是Python的环境变量设置有问题,是不是装了2个版本的Python或者Python的环境变量重新正确设置一下,参考以下内容: https://askubuntu.com/questions/905372/could-not-find-platform-independent-libraries-prefix

wang33winner avatar Aug 18 '18 13:08 wang33winner