|
|
本帖最后由 黄进昌 于 2025-1-10 17:59 编辑
1. 开发环境必须使用ubuntu18.04.2,低于这个版本会有未知问题,交叉编译链会报错,本人在14.04已尝试不同方法解决,解决不了。
2. 安装liteos环境第三方库setuptools,报语法错误:
主要原因是与系统的python版本不匹配导致
(1) 安装Python-3.7.6
安装完后还是报一样的错误,主要原因是python命令默认还是用的系统python2.7的版本,需要将原来2.7版本替换(创建软链接):
Sudo ln -s /usr/bin/python3 /usr/bin/python
(2) 升级完python后 还会报依赖第三方库缺失问题,缺失啥就安装啥就可以。
3. 使用pip 安装第三方库报错“WARNING: The directory '/home/liao/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.”
需要修改文件所有者权限:
sudo chown -R root /home/hugh/.cache/pip/
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|