Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
PlatformIO
通过studio内platformio创建工程失败
发布于 2021-03-04 17:50:12 浏览:1484
订阅该版
好像是python的问题,不知道怎么解决,下附控制台信息: ``` The next files/directories have been created in T:\WorkSpace\RT-ThreadStudio\esp32doit-devkit-v1_espidf include - Put project header files here lib - Put here project specific (private) libraries src - Put project source files here platformio.ini - Project Configuration File Error: Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: espidf) -------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html PLATFORM: Espressif 32 (3.1.0) > DOIT ESP32 DEVKIT V1 HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES: - framework-espidf 3.40200.210118 (4.2.0) - tool-cmake 3.16.4 - tool-esptoolpy 1.30000.201119 (3.0.0) - tool-idf 1.0.1 - tool-mconf 1.4060000.20190628 (406.0.0) - tool-ninja 1.9.0 - toolchain-esp32ulp 1.22851.191205 (2.28.51) - toolchain-xtensa32 2.80400.210211 (8.4.0) Installing ESP-IDF's Python dependencies Collecting cryptography>=2.1.4 Using cached https://files.pythonhosted.org/packages/fa/2d/2154d8cb773064570f48ec0b60258a4522490fcb115a6c7c9423482ca993/cryptography-3.4.6.tar.gz Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting future>=0.15.2 Using cached https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz Collecting pyparsing<2.4.0,>=2.0.3 Using cached https://files.pythonhosted.org/packages/de/0a/001be530836743d8be6c2d85069f46fecf84ac6c18c7f5fb8125ee11d854/pyparsing-2.3.1-py2.py3-none-any.whl Collecting cffi>=1.12 (from cryptography>=2.1.4) Using cached https://files.pythonhosted.org/packages/c6/92/9188a1dff4934d0bd18df7f92dc481324b3342814cea34849b393ea2d232/cffi-1.14.5-cp37-cp37m-win_amd64.whl Collecting pycparser (from cffi>=1.12->cryptography>=2.1.4) Using cached https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl Building wheels for collected packages: cryptography Building wheel for cryptography (PEP 517): started Building wheel for cryptography (PEP 517): finished with status 'error' ERROR: Command errored out with exit status 1: command: 'C:\Users\myUser\.platformio\penv\Scripts\python.exe' 'C:\Users\myUser\.platformio\penv\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'T:\Temp\tmplajaf1oj' cwd: T:\Temp\pip-install-xebel7eg\cryptography Complete output (150 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\cryptography copying src\cryptography\exceptions.py -> build\lib.win-amd64-3.7\cryptography copying src\cryptography\fernet.py -> build\lib.win-amd64-3.7\cryptography copying src\cryptography\utils.py -> build\lib.win-amd64-3.7\cryptography copying src\cryptography\__about__.py -> build\lib.win-amd64-3.7\cryptography copying src\cryptography\__init__.py -> build\lib.win-amd64-3.7\cryptography creating build\lib.win-amd64-3.7\cryptography\hazmat copying src\cryptography\hazmat\_der.py -> build\lib.win-amd64-3.7\cryptography\hazmat copying src\cryptography\hazmat\_oid.py -> build\lib.win-amd64-3.7\cryptography\hazmat copying src\cryptography\hazmat\_types.py -> build\lib.win-amd64-3.7\cryptography\hazmat copying src\cryptography\hazmat\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat creating build\lib.win-amd64-3.7\cryptography\x509 copying src\cryptography\x509\base.py -> build\lib.win-amd64-3.7\cryptography\x509 copying src\cryptography\x509\certificate_transparency.py -> build\lib.win-amd64-3.7\cryptography\x509 copying src\cryptography\x509\extensions.py -> build\lib.win-amd64-3.7\cryptography\x509 copying src\cryptography\x509\general_name.py -> build\lib.win-amd64-3.7\cryptography\x509 copying src\cryptography\x509\name.py -> build\lib.win-amd64-3.7\cryptography\x509 copying src\cryptography\x509\ocsp.py -> build\lib.win-amd64-3.7\cryptography\x509 copying src\cryptography\x509\oid.py -> build\lib.win-amd64-3.7\cryptography\x509 copying src\cryptography\x509\__init__.py -> build\lib.win-amd64-3.7\cryptography\x509 creating build\lib.win-amd64-3.7\cryptography\hazmat\backends copying src\cryptography\hazmat\backends\interfaces.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends copying src\cryptography\hazmat\backends\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends creating build\lib.win-amd64-3.7\cryptography\hazmat\bindings copying src\cryptography\hazmat\bindings\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\bindings creating build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\cmac.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\constant_time.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\hashes.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\hmac.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\keywrap.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\padding.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\poly1305.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\_asymmetric.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\_cipheralgorithm.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\_serialization.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives copying src\cryptography\hazmat\primitives\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives creating build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\aead.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\backend.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\ciphers.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\cmac.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\decode_asn1.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\dh.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\dsa.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\ec.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\ed25519.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\ed448.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\encode_asn1.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\hashes.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\hmac.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\ocsp.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\poly1305.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\rsa.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\utils.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\x25519.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\x448.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\x509.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl copying src\cryptography\hazmat\backends\openssl\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\backends\openssl creating build\lib.win-amd64-3.7\cryptography\hazmat\bindings\openssl copying src\cryptography\hazmat\bindings\openssl\binding.py -> build\lib.win-amd64-3.7\cryptography\hazmat\bindings\openssl copying src\cryptography\hazmat\bindings\openssl\_conditional.py -> build\lib.win-amd64-3.7\cryptography\hazmat\bindings\openssl copying src\cryptography\hazmat\bindings\openssl\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\bindings\openssl creating build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\dh.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\dsa.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\ec.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\ed25519.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\ed448.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\padding.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\rsa.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\utils.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\x25519.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\x448.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric copying src\cryptography\hazmat\primitives\asymmetric\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\asymmetric creating build\lib.win-amd64-3.7\cryptography\hazmat\primitives\ciphers copying src\cryptography\hazmat\primitives\ciphers\aead.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\ciphers copying src\cryptography\hazmat\primitives\ciphers\algorithms.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\ciphers copying src\cryptography\hazmat\primitives\ciphers\base.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\ciphers copying src\cryptography\hazmat\primitives\ciphers\modes.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\ciphers copying src\cryptography\hazmat\primitives\ciphers\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\ciphers creating build\lib.win-amd64-3.7\cryptography\hazmat\primitives\kdf copying src\cryptography\hazmat\primitives\kdf\concatkdf.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\kdf copying src\cryptography\hazmat\primitives\kdf\hkdf.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\kdf copying src\cryptography\hazmat\primitives\kdf\kbkdf.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\kdf copying src\cryptography\hazmat\primitives\kdf\pbkdf2.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\kdf copying src\cryptography\hazmat\primitives\kdf\scrypt.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\kdf copying src\cryptography\hazmat\primitives\kdf\x963kdf.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\kdf copying src\cryptography\hazmat\primitives\kdf\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\kdf creating build\lib.win-amd64-3.7\cryptography\hazmat\primitives\serialization copying src\cryptography\hazmat\primitives\serialization\base.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\serialization copying src\cryptography\hazmat\primitives\serialization\pkcs12.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\serialization copying src\cryptography\hazmat\primitives\serialization\pkcs7.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\serialization copying src\cryptography\hazmat\primitives\serialization\ssh.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\serialization copying src\cryptography\hazmat\primitives\serialization\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\serialization creating build\lib.win-amd64-3.7\cryptography\hazmat\primitives\twofactor copying src\cryptography\hazmat\primitives\twofactor\hotp.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\twofactor copying src\cryptography\hazmat\primitives\twofactor\totp.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\twofactor copying src\cryptography\hazmat\primitives\twofactor\utils.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\twofactor copying src\cryptography\hazmat\primitives\twofactor\__init__.py -> build\lib.win-amd64-3.7\cryptography\hazmat\primitives\twofactor running egg_info writing src\cryptography.egg-info\PKG-INFO writing dependency_links to src\cryptography.egg-info\dependency_links.txt writing requirements to src\cryptography.egg-info\requires.txt writing top-level names to src\cryptography.egg-info\top_level.txt reading manifest file 'src\cryptography.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'docs\_build' writing manifest file 'src\cryptography.egg-info\SOURCES.txt' copying src\cryptography\py.typed -> build\lib.win-amd64-3.7\cryptography running build_ext generating cffi module 'build\\temp.win-amd64-3.7\\Release\\_padding.c' creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release generating cffi module 'build\\temp.win-amd64-3.7\\Release\\_openssl.c' running build_rust If you are seeing a compilation error please try the following steps to successfully install cryptography: 1) Upgrade to the latest pip and try again. This will fix errors for most users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip 2) Read https://cryptography.io/en/latest/installation.html for specific instructions for your platform. 3) Check our frequently asked questions for more information: https://cryptography.io/en/latest/faq.html 4) Ensure you have a recent Rust toolchain installed: https://cryptography.io/en/latest/installation.html#rust 5) If you are experiencing issues with Rust for *this release only* you may set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`. error: Can not find Rust compiler ---------------------------------------- ERROR: Failed building wheel for cryptography Running setup.py clean for cryptography Failed to build cryptography ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly WARNING: You are using pip version 19.2.3, however version 21.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. *** Error 1 Reading CMake configuration... -- Found Git: S:/Git/cmd/git.exe (found version "2.30.0.windows.2") -- The C compiler identification is GNU 8.4.0 -- Found assembler: C:/Users/myUser/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc.exe -- Check for working C compiler: C:/Users/myUser/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc.exe -- Check for working C compiler: C:/Users/myUser/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER. -- Building ESP-IDF components for target esp32 -- Configuring incomplete, errors occurred! See also "T:/WorkSpace/RT-ThreadStudio/esp32doit-devkit-v1_espidf/.pio/build/esp32doit-devkit-v1/CMakeFiles/CMakeOutput.log". fatal: not a git repository (or any of the parent directories): .git Traceback (most recent call last): from future.utils import iteritems ModuleNotFoundError: No module named 'future' CMake Error at C:/Users/myUser/.platformio/packages/framework-espidf/tools/cmake/kconfig.cmake:225 (message): Failed to run confgen.py (C:\Users\myUser\.platformio\penv\Scripts\python.exe;C:/Users/myUser/.platformio/packages/framework-espidf/tools/kconfig_new/confgen.py;--kconfig;C:/Users/myUser/.platformio/packages/framework-espidf/Kconfig;--sdkconfig-rename;C:/Users/myUser/.platformio/packages/framework-espidf/sdkconfig.rename;--config;T:/WorkSpace/RT-ThreadStudio/esp32doit-devkit-v1_espidf/sdkconfig;--env-file;T:/WorkSpace/RT-ThreadStudio/esp32doit-devkit-v1_espidf/.pio/build/esp32doit-devkit-v1/config.env). Error 1 Call Stack (most recent call first): C:/Users/myUser/.platformio/packages/framework-espidf/tools/cmake/build.cmake:442 (__kconfig_generate_config) C:/Users/myUser/.platformio/packages/framework-espidf/tools/cmake/project.cmake:395 (idf_build_process) CMakeLists.txt:3 (project) ========================= [FAILED] Took 27.50 seconds ========================= ```
查看更多
chenyaxing
2021-03-05
泥上偶然留指爪,鸿飞那复计东西。
`ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly` cryptography 这个库的安装过程中需要本地编译,对vs 构建系统有要求,具体可以自己搜索一下 cryptography 的安装
1
个回答
默认排序
按发布时间排序
撰写答案
登录
注册新账号
关注者
0
被浏览
1.5k
关于作者
themql
这家伙很懒,什么也没写!
提问
1
回答
0
被采纳
0
关注TA
发私信
相关问题
1
RTStudio 2.0.0 安装PlatformIO 5.0.3.12失败?
2
platformio
3
基于PlatformIO创建ESP32工程失败
4
RT_Thread Studio 安装PlatformIO总是失败
5
studio v2.0 已安装 PlatformIO 但是IDE无新建工程入口?
6
platformio debug
7
通用项目 中的 基于platformIO 项目失败,长时间不能下载相关资料?
8
platformio如何安装库,添加库?
9
rt安装platformio出错
10
GD32VF103 VSCODE开发环境移植问题
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
如何在master上的BSP中添加配置yml文件
2
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
3
RT-Thread 发布 EtherKit开源以太网硬件!
4
rt-thread使用cherryusb实现虚拟串口
5
《C++20 图形界面程序:速度与渲染效率的双重优化秘籍》
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
ulog
C++_cpp
at_device
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
13
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
11
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
5
次点赞
RTT_逍遥
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部