当前位置:网站首页>【解决】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\
主要還是對環境配置不熟悉,亂配置導致的遺留問題,特此記錄。
边栏推荐
- R language ggplot2 visualization: use the ggviolin function of ggpubr package to visualize the violin diagram, set the palette parameter to customize the filling color of violin diagrams at different
- c语言如何判定是32位系统还是64位系统
- Try the tuiroom of Tencent cloud (there is an appointment in the evening, which will be continued...)
- 剑指 Offer II 013. 二维子矩阵的和
- 力扣 2315.统计星号
- Ways to improve the utilization of openeuler resources 01: Introduction
- Opencv学习笔记 高动态范围 (HDR) 成像
- Get webkitformboundary post login
- Boot 和 Cloud 的版本选型
- 力扣 912.排序数组
猜你喜欢

Vulnhub tre1

开源重器!九章云极DataCanvas公司YLearn因果学习开源项目即将发布!

九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」

How to cooperate among multiple threads

【STL】vector
![About cv2 dnn. Readnetfromonnx (path) reports error during processing node with 3 inputs and 1 outputs [exclusive release]](/img/59/33381b8d45401607736f05907ee381.png)
About cv2 dnn. Readnetfromonnx (path) reports error during processing node with 3 inputs and 1 outputs [exclusive release]

ASP. Net learning & ASP's one word

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

Welcome to the markdown editor

Simulate the implementation of string class
随机推荐
LeetCode_7_5
开源重器!九章云极DataCanvas公司YLearn因果学习开源项目即将发布!
RESTAPI 版本控制策略【eolink 翻译】
Browse the purpose of point setting
机器学习笔记 - 使用Streamlit探索对象检测数据集
vulnhub之tre1
一键部署Redis任意版本
Flink并行度和Slot详解
Get webkitformboundary post login
sql 常用优化
Equals method
Opencv learning notes high dynamic range (HDR) imaging
ASP. Net learning & ASP's one word
论文解读(ValidUtil)《Rethinking the Setting of Semi-supervised Learning on Graphs》
力扣 2319. 判断矩阵是否是一个 X 矩阵
剑指 Offer II 013. 二维子矩阵的和
kubernetes之创建mysql8
R language ggplot2 visualization: use the ggviolin function of ggpubr package to visualize the violin diagram, set the palette parameter to customize the filling color of violin diagrams at different
How C language determines whether it is a 32-bit system or a 64 bit system
Leetcode force buckle (Sword finger offer 36-39) 36 Binary search tree and bidirectional linked list 37 Serialize binary tree 38 Arrangement of strings 39 Numbers that appear more than half of the tim