当前位置:网站首页>【解决】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\
主要還是對環境配置不熟悉,亂配置導致的遺留問題,特此記錄。
边栏推荐
- Force buckle 912 Sort array
- 【STL】vector
- Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
- 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
- Open source heavy ware! Chapter 9 the open source project of ylarn causal learning of Yunji datacanvas company will be released soon!
- Flink并行度和Slot详解
- 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
- Traversée des procédures stockées Oracle
- 使用高斯Redis实现二级索引
- Creation of kubernetes mysql8
猜你喜欢
PHP method of obtaining image information
php 获取图片信息的方法
Data island is the first danger encountered by enterprises in their digital transformation
Cloud component development and upgrading
With st7008, the Bluetooth test is completely grasped
CSDN语法说明
论文解读(ValidUtil)《Rethinking the Setting of Semi-supervised Learning on Graphs》
多个线程之间如何协同
ASP. Net learning & ASP's one word
力扣 599. 两个列表的最小索引总和
随机推荐
Navicat连接2002 - Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘解决
Training IX basic configuration of network services
rk3128投影仪lcd显示四周显示不完整解决
剑指 Offer II 013. 二维子矩阵的和
力扣 88.合并两个有序数组
Flink并行度和Slot详解
【哲思与实战】程序设计之道
MIT科技评论文章:围绕Gato等模型的AGI炒作可能使人们忽视真正重要的问题
Sword finger offer II 013 Sum of two-dimensional submatrix
力扣 1961. 检查字符串是否为数组前缀
力扣 989. 数组形式的整数加法
Force buckle 674 Longest continuous increasing sequence
力扣 1790. 仅执行一次字符串交换能否使两个字符串相等
BI的边界:BI不适合做什么?主数据、MarTech?该如何扩展?
c语言如何判定是32位系统还是64位系统
华南X99平台打鸡血教程
Force buckle 88 Merge two ordered arrays
php 获取图片信息的方法
torch. nn. functional. Pad (input, pad, mode= 'constant', value=none) record
Kubernetes -- detailed usage of kubectl command line tool