当前位置:网站首页>【解决】package ‘xxxx‘ is not in GOROOT
【解决】package ‘xxxx‘ is not in GOROOT
2022-07-07 18:06: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\
主要还是对环境配置不熟悉,乱配置导致的遗留问题,特此记录。
边栏推荐
- 力扣 1790. 仅执行一次字符串交换能否使两个字符串相等
- pom. Brief introduction of XML configuration file label function
- 开源重器!九章云极DataCanvas公司YLearn因果学习开源项目即将发布!
- LeetCode_ 7_ five
- 数据孤岛是企业数字化转型遇到的第一道险关
- 841. String hash
- Introduction to bit operation
- YoloV6:YoloV6+Win10---训练自己得数据集
- ASP. Net kindergarten chain management system source code
- JVM class loading mechanism
猜你喜欢
随机推荐
LeetCode_7_5
【mysql篇-基础篇】事务
The DBSCAN function of FPC package of R language performs density clustering analysis on data, checks the clustering labels of all samples, and the table function calculates the two-dimensional contin
Nunjuks template engine
毕业季|遗憾而又幸运的毕业季
CSDN语法说明
ASP.NET学习& asp‘s one word
mock. JS returns an array from the optional data in the object array
力扣 1790. 仅执行一次字符串交换能否使两个字符串相等
Force buckle 2315 Statistical asterisk
Force buckle 1037 Effective boomerang
Kubernetes——kubectl命令行工具用法详解
Detailed explanation of Flink parallelism and slot
A pot of stew, a collection of common commands of NPM and yarn cnpm
力扣 459. 重复的子字符串
Solve the problem of incomplete display around LCD display of rk3128 projector
841. String hash
About cv2 dnn. Readnetfromonnx (path) reports error during processing node with 3 inputs and 1 outputs [exclusive release]
Ways to improve the utilization of openeuler resources 01: Introduction
torch. nn. functional. Pad (input, pad, mode= 'constant', value=none) record