当前位置: 首页 > news >正文

Windows环境下VSCode安装PlatformIO Cero报错ERROR: HTTP error 403 while getting

安装PlatformIO插件成功,初始化失败

  • 错误信息
  • 判断问题
    • 尝试访问https://pypi.tuna.tsinghua.edu.cn/simple/platformio/成功
    • 点击文件后报错如下:
  • 解决问题- 换源 ( Windows下有两个地方需要更改)
    • cmd命令行
    • Pip文件
  • 总结:最终还是回到换源上,删除重装都没用。

错误信息

VSCode: 1.81.0
PIO IDE: v3.3.1
System: Windows_NT, 10.0.19044, x64

%23 Exception

Error:   ERROR: HTTP error 403 while getting https://pypi.tuna.tsinghua.edu.cn/packages/a9/e1/57ea5e5cce83586b7c4a5b456c77fd7154a80e1a649a79d59e9e54b06cf9/platformio-6.1.9-py3-none-any.whl%23sha256=045b1b950e7f237a56c2e6fddbd0115ea024dc9adb716d4cc35fab56a1d0eb14 (from https://pypi.tuna.tsinghua.edu.cn/simple/platformio/) (requires-python:>=3.6)
ERROR: Could not install requirement platformio from https://pypi.tuna.tsinghua.edu.cn/packages/a9/e1/57ea5e5cce83586b7c4a5b456c77fd7154a80e1a649a79d59e9e54b06cf9/platformio-6.1.9-py3-none-any.whl%23sha256=045b1b950e7f237a56c2e6fddbd0115ea024dc9adb716d4cc35fab56a1d0eb14 because of HTTP error 403 Client Error: Forbidden for url: https://pypi.tuna.tsinghua.edu.cn/packages/a9/e1/57ea5e5cce83586b7c4a5b456c77fd7154a80e1a649a79d59e9e54b06cf9/platformio-6.1.9-py3-none-any.whl for URL https://pypi.tuna.tsinghua.edu.cn/packages/a9/e1/57ea5e5cce83586b7c4a5b456c77fd7154a80e1a649a79d59e9e54b06cf9/platformio-6.1.9-py3-none-any.whl%23sha256=045b1b950e7f237a56c2e6fddbd0115ea024dc9adb716d4cc35fab56a1d0eb14 (from https://pypi.tuna.tsinghua.edu.cn/simple/platformio/) (requires-python:>=3.6)[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: C:\Users\Administrator\.platformio\penv\Scripts\python.exe -m pip install --upgrade pip
Error: Could not install PlatformIO Core: If you have antivirus/firewall/defender software in a system, try to disable it for a while.
Command '['C:\\Users\\Administrator\\.platformio\\penv\\Scripts\\python.exe', '-m', 'pip', 'install', '-U', 'platformio']' returned non-zero exit status 1.
-> Installer version: 1.2.1
Platform: Windows-10
Python version: 3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]
Python path: C:\Users\Administrator\.platformio\python3\python.exe
Creating a virtual environment at C:\Users\Administrator\.platformio\penv
Updating Python package manager (PIP) in a virtual environment
Virtual environment has been successfully created!
Installing PlatformIO Core
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting platformioat c:\Users\Administrator\.vscode\extensions\platformio.platformio-ide-3.3.1\node_modules\platformio-node-helpers\dist\index.js:1:5300at ChildProcess.c (c:\Users\Administrator\.vscode\extensions\platformio.platformio-ide-3.3.1\node_modules\platformio-node-helpers\dist\index.js:1:4598)at ChildProcess.emit (node:events:513:28)at ChildProcess.emit (node:domain:489:12)at maybeClose (node:internal/child_process:1121:16)at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

判断问题

尝试访问https://pypi.tuna.tsinghua.edu.cn/simple/platformio/成功

点击文件后报错如下:

在这里插入图片描述

解决问题- 换源 ( Windows下有两个地方需要更改)

cmd命令行

C:\Users\Administrator>npm get registry
C:\Users\Administrator>npm config set registry http://mirrors.aliyun.com/pypi/simple/

Pip文件

文件路径:C:\Users\(你的用户名)\AppData\Roaming\pip

文件名字 pip.ini (如果没有可以自行创建)

[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
use-mirrors=true
mirrors=http://mirrors.aliyun.com/pypi/simple/
trusted-host=mirrors.aliyun.com

总结:最终还是回到换源上,删除重装都没用。

http://www.lryc.cn/news/109759.html

相关文章:

  • git bash 安装sdkadmin
  • 如何在IEEE论文中添加伪代码pseudocode
  • 【css】css隐藏元素
  • JUC并发编程(二)ForkJoinPool、Future、CompletableFuture、CAS
  • 大数据课程F2——HIve的安装操作
  • 华为云hcip核心知识笔记(存储服务规划)
  • 四、JVM-对象内存模型
  • 2023-08-05 LeetCode每日一题(合并两个有序链表)
  • 【每天40分钟,我们一起用50天刷完 (剑指Offer)】第四十七天 47/50
  • 离散型制造业生产管理云MES系统解决方案
  • 【Vue】全家桶介绍
  • 【雕爷学编程】MicroPython动手做(33)——物联网之天气预报2
  • macOS 虚拟桌面黑屏(转)
  • 查看gz文件 linux zcat file.gz mtx.gz
  • 互联网——根服务器
  • 华为OD机试之报文回路(Java源码)
  • 林大数据结构【2019】
  • 2023华数杯数学建模A题思路分析 - 隔热材料的结构优化控制研究
  • Linux常用命令——dos2unix命令
  • 【NLP pytorch】基于BERT_TextCNN新闻文本分类实战(项目详解)
  • 决策树与随机森林
  • Nginx 网站服务
  • Python爬虫——爬虫时如何知道是否代理ip伪装成功?
  • flink1.17 json_tuple udf 实现
  • Vue3实现6位验证码输入框,用户可以连续输入和删除
  • 如何在终端设置代理(设置jupyter notebook同理)
  • git报错:Error merging: refusing to merge unrelated histories
  • QT-QLabel显示图片,按QLabel控件的大小自动缩放
  • 【JS代码调试技巧】你必须知道的Javascript技巧汇总
  • JAVA-@Configuration注解属性proxyBeanMethods