-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法下载例程 #7
Comments
How to set up can automatically install kflash dependency package? |
You need to pack kflash tool with pre-installed Python packages. See example with https://bintray.com/beta/#/platformio/dl-packages/tool-pulp-debug-bridge?tab=files. So, the core idea is to install dependencies to |
The problem has been solved, I made the download location of enum34 wrong, it should be installed in the file directory of pio |
This is a bug. You no need to install extra packages with PlatformIO. Package should contain all dependencies. |
I saw your example, but I still can't figure out what happened to the package during the installation process. Can I use pip directly during installation? Kflash has been released as a package in pypi, and its setup.py may be able to handle these dependencies. |
We don't run So, keeping package totally independent of |
We need to pack |
I am trying... def install_pysite(dst, packages):
for package in packages:
subprocess.call(["pip", "install", "--no-compile", "-t", dst, package]) But I don't know how it is called. Is it executed once in kflash.py every time it runs? |
You can run pip install -t from CLI. That script was provided as a hint. You actually don’t need it. |
@btx000 Thanks! I think we can live with it :) I've just deployed this package. I've just thought, we can actually can run Nevertheless, keeping packages in an isolated environment is a better option. |
[ERROR] enum34 must be installed, run
pip install enum34
*** [upload] Error 1
我已经安装过enum34了,是安装位置有问题还是什么其他情况吗
编译过程没有问题,例程选择的是kendryte-standalone-sdk的HelloWord
The text was updated successfully, but these errors were encountered: