Page 1 of 1

Ubuntu16安装Tuya Wind IDE失败

Posted: 2022年 Oct 18日 10:04
by 燕十三

Ubuntu16安装Tuya Wind IDE失败
我现在使用的系统是ubuntu16版本,安装Tuya Wind IDE失败,提示Python 3.8不存在。

Wind IDE安装失败.png

Re: Ubuntu16安装Tuya Wind IDE失败

Posted: 2022年 Oct 18日 10:13
by chenyisong

Ubuntu16默认安装了python2.7和python3.5
Tuya WindIDE目前版本依赖Python3.8版本,pip3 的版本须在 21.xx 以上
如果当前系统没有安装Python 3.8,可使用以下方案安装:

1、安装依赖

Code: Select all

sudo apt update
sudo apt upgrade
sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget 

2、下载并编译python 3.8.10

Code: Select all

wget https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz
tar -xvf Python-3.8.10.tgz
cd Python-3.8.10
sudo ./configure --prefix=/usr/local/python3 
sudo make -j4 && sudo make install

3、安装完成后,创建软连接

Code: Select all

sudo ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
sudo ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
sudo ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3.8
sudo rm -rf /usr/bin/python
sudo ln -s /usr/local/python3/bin/python3.8 /usr/bin/python

4、更新pip3版本

Code: Select all

sudo pip3 install --upgrade pip

5、确定python3和pip3版本

Code: Select all

输入:python -V
显示:Python 3.8.10

输入:python3.8 -V
显示:Python 3.8.10

输入:pip3 -V
显示:pip 22.3 from /usr/local/python3/lib/python3.8/site-packages/pip (python 3.8)

完成以上操作之后,即可正常安装Tuya Wind IDE