如图
Tuya Wind IDE 安装及使用过程中 奇奇怪怪的问题汇总
Re: Tuya Wind IDE 安装及使用过程中 奇奇怪怪的问题汇总
Linux ubuntu 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Re: Tuya Wind IDE 安装及使用过程中 奇奇怪怪的问题汇总
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Re: Tuya Wind IDE 安装及使用过程中 奇奇怪怪的问题汇总
根据图片得知,您使用的是 Cpython3.8。目前 IDE 只提供在标准的 python 环境下安装的流程。
非标准的 python 库,会导致安装过程中无法找到安装源,引起安装失败。
请根据 Tuya Wind IDE 进行正确的安装的操作。
-
- Posts: 3
Re: Tuya Wind IDE 安装及使用过程中 奇奇怪怪的问题汇总
install GitPython
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Collecting GitPython
Downloading GitPython-3.1.29-py3-none-any.whl (182 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 182.5/182.5 kB 157.5 kB/s eta 0:00:00
Collecting gitdb<5,>=4.0.1
Downloading gitdb-4.0.10-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 kB 54.2 kB/s eta 0:00:00
Collecting smmap<6,>=3.0.1
Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
Installing collected packages: smmap, gitdb, GitPython
Successfully installed GitPython-3.1.29 gitdb-4.0.10 smmap-5.0.0
Traceback (most recent call last):
File "./vendor/tlsr825x_smesh/prepare.py", line 15, in <module>
from git import Repo
ModuleNotFoundError: No module named 'git'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\65313\.tuya\venv\lib\site-packages\git\__init.py", line 89, in <module>
refresh()
File "C:\Users\65313\.tuya\venv\lib\site-packages\git\__init.py", line 76, in refresh
if not Git.refresh(path=path):
File "C:\Users\65313\.tuya\venv\lib\site-packages\git\cmd.py", line 389, in refresh
raise ImportError(err)
ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()
All git commands will error until this is rectified.
This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|none|n|0: for no warning or exception
- warn|w|warning|1: for a printed warning
- error|e|raise|r|2: for a raised exception
Example:
export GIT_PYTHON_REFRESH=quiet
execution failed !!!
PS E:\tuyaIDE\mesh_contorl_v1\software\TuyaOS>
无法编译 ,这是什么原因?
Re: Tuya Wind IDE 安装及使用过程中 奇奇怪怪的问题汇总
17621213253 2022年 Dec 22日 15:30install GitPython
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Collecting GitPython
Downloading GitPython-3.1.29-py3-none-any.whl (182 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 182.5/182.5 kB 157.5 kB/s eta 0:00:00
Collecting gitdb<5,>=4.0.1
Downloading gitdb-4.0.10-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 kB 54.2 kB/s eta 0:00:00
Collecting smmap<6,>=3.0.1
Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
Installing collected packages: smmap, gitdb, GitPython
Successfully installed GitPython-3.1.29 gitdb-4.0.10 smmap-5.0.0
Traceback (most recent call last):
File "./vendor/tlsr825x_smesh/prepare.py", line 15, in <module>
from git import Repo
ModuleNotFoundError: No module named 'git'During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\65313\.tuya\venv\lib\site-packages\git\__init.py", line 89, in <module>
refresh()
File "C:\Users\65313\.tuya\venv\lib\site-packages\git\__init.py", line 76, in refresh
if not Git.refresh(path=path):
File "C:\Users\65313\.tuya\venv\lib\site-packages\git\cmd.py", line 389, in refresh
raise ImportError(err)
ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()All git commands will error until this is rectified.
This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|none|n|0: for no warning or exception
- warn|w|warning|1: for a printed warning
- error|e|raise|r|2: for a raised exceptionExample:
export GIT_PYTHON_REFRESH=quietexecution failed !!!
PS E:\tuyaIDE\mesh_contorl_v1\software\TuyaOS>无法编译 ,这是什么原因?
具体编译问题,不属于 IDE 工具本身的问题,请到相应的开发框架版块提问。
Windows下的问题,请到子设备开发版块提问。