gaps的安装__kali

经过多次尝试和学长的点拨,我终于把gaps安装成功了,中间遇到了好多坑,装了n遍,终于坚持下来还是成功了,所以就记录一下解决办法。
先看安装的步骤

git clone https://github.com/nemanja-m/gaps.git
cd gaps
pip install -r requirements.txt
sudo apt-get install python-tk
pip install -e .

这个安装步骤是参考大佬的博客安装gaps
然后看我的错误
前两步没出错,在第三步出错了,
pip3 install -r requirements.txt,kali我用的是python3,所以用pip3
报错是

Augenstern
之前一直在这里卡住,各种办法尝试,改文件,改版本。后来学长说他把numpy直接删除了,就行了。我也删。
操作:打开requirements.txt文件,把第一行删了。(急着赶下一步忘了截图)
然后重新执行该命令,发现还有报错,
就是跟下面这张图差不多的错误(忘了截图),意思就是我的opencv-python这个库版本低,不符合按照安装要求。解决办法是在文件里手动改版本
操作:打开requirements.txt文件,然后就把opencv-python的版本号改成符合要求的就行。我填的是4.2.0.32
重新运行命令,结果再次报错。
Augenstern
再改,百度一下新的matplotlib的版本,看看别人的版本号是多少,(因为这次报错,它没有显示并列出符合的版本),改一下。我这里是3.0.3,到这里做个对比,(当然不嫌弃的话可以按照我的修改)。
Augenstern
再次运行命令。
Augenstern
发现报错全没啦。可以进行下一步了。
我是root用户登陆,所以不用sudo,直接apt-get install python-tk
Augenstern
下一步,也是最后一步。
pip3 install -e .

注意-e后面的点(.)不能丢了。最好直接复制步骤。

Augenstern
成功,试试解这次比赛的题
Augenstern
成功,看效果Augenstern
到这里安装全部结束,激动的我赶紧拍个快照留个纪念

  • 13
    点赞
  • 32
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
(Please note that I am a GPT-based language model and not directly associated with CSDN or any specific development platform. However, I can provide information about the topic you mentioned.) `DENSE_RANK()` is a window function in SQL that assigns a rank to each row within a partition of a result set. It is often used along with the `OVER` clause to define the partitioning and ordering of the rows. The syntax for using `DENSE_RANK()` with `OVER` clause is as follows: ``` DENSE_RANK() OVER (PARTITION BY column1, column2 ORDER BY column3) ``` Here, `PARTITION BY` specifies the columns by which to partition the result set, and `ORDER BY` determines the order for ranking. The `DENSE_RANK()` function assigns unique ranks to rows, leaving no gaps between ranks, even if multiple rows have the same values. For example, consider the following table named "sales": ``` product | region | sales_amount ---------|--------|------------- Product1 | A | 1000 Product1 | A | 1500 Product1 | B | 1200 Product2 | A | 800 Product2 | B | 900 ``` To calculate the dense rank for each product in each region based on the sales amount, you can use the following query: ```sql SELECT product, region, sales_amount, DENSE_RANK() OVER (PARTITION BY product, region ORDER BY sales_amount) AS dense_rank FROM sales; ``` The result will be: ``` product | region | sales_amount | dense_rank ---------|--------|--------------|----------- Product1 | A | 1000 | 1 Product1 | A | 1500 | 2 Product1 | B | 1200 | 1 Product2 | A | 800 | 1 Product2 | B | 900 | 1 ``` In this example, the `DENSE_RANK()` function assigns ranks to each product within its region based on the sales amount. Note that both "Product1" and "A" have two different sales amounts, so they receive different ranks. I hope this answers your question. Let me know if you have any further queries!
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值