当前位置:网站首页>【解决】package ‘xxxx‘ is not in GOROOT
【解决】package ‘xxxx‘ is not in GOROOT
2022-07-07 20:12:00 【cztAI】
錯誤
package ‘xxxx‘ is not in GOROOT
vscode 打印 GOROOT 路徑不是現在 go 的安裝路徑,然後我把 GOROOT 這條路徑給改了,報錯
go: cannot find GOROOT directory
想到之前在 vscode 的終端用 go env -w 設置過環境,然後我試著用該方法改為現在 go 的安裝路徑,終於成功修複 [淚目]。
解决方法:
打開 vscode 終端,用 go 命令設置環境
go env -w GOROOT=【這裏填go安裝路徑】
go env -w GOROOT=D:\go\
主要還是對環境配置不熟悉,亂配置導致的遺留問題,特此記錄。
边栏推荐
- 整型int的拼接和拆分
- RESTAPI 版本控制策略【eolink 翻译】
- Boot 和 Cloud 的版本选型
- 浅尝不辄止系列之试试腾讯云的TUIRoom(晚上有约,未完待续...)
- 841. 字符串哈希
- 831. KMP字符串
- Classification automatique des cellules de modules photovoltaïques par défaut dans les images de lecture électronique - notes de lecture de thèse
- 力扣 643. 子数组最大平均数 I
- Force buckle 1232 Dotted line
- Compiler optimization (4): inductive variables
猜你喜欢

Ways to improve the utilization of openeuler resources 01: Introduction

ASP. Net learning & ASP's one word

Data island is the first danger encountered by enterprises in their digital transformation

关于cv2.dnn.readNetFromONNX(path)就报ERROR during processing node with 3 inputs and 1 outputs的解决过程【独家发布】

【mysql篇-基础篇】事务

Force buckle 2319 Judge whether the matrix is an X matrix

vulnhub之tre1

LeetCode力扣(剑指offer 36-39)36. 二叉搜索树与双向链表37. 序列化二叉树38. 字符串的排列39. 数组中出现次数超过一半的数字

Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!

开源重器!九章云极DataCanvas公司YLearn因果学习开源项目即将发布!
随机推荐
剑指 Offer II 013. 二维子矩阵的和
Some arrangements about oneself
gorilla官方:golang开websocket client的示例代码
Visual Studio 插件之CodeMaid自动整理代码
RESTAPI 版本控制策略【eolink 翻译】
LeetCode_ 7_ five
力扣 2315.统计星号
Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
编译器优化那些事儿(4):归纳变量
SQL common optimization
使用高斯Redis实现二级索引
mysql 的一些重要知识
R language ggplot2 visualization: use the ggdensity function of ggpubr package to visualize the packet density graph, and use stat_ overlay_ normal_ The density function superimposes the positive dist
Compiler optimization (4): inductive variables
机器学习笔记 - 使用Streamlit探索对象检测数据集
论文解读(ValidUtil)《Rethinking the Setting of Semi-supervised Learning on Graphs》
MIT science and technology review article: AgI hype around Gato and other models may make people ignore the really important issues
Force buckle 912 Sort array
MSE API学习
openEuler 资源利用率提升之道 01:概论