尼克狐尼克

导航

2025年5月3日 #

安装gdal

摘要: gdal最好的安装办法就是使用Anaconda进行安装 先在电脑上安装好Anaconda (anaconda3) 然后在控制栏中输入 conda install gdal 稍作等待即可 阅读全文

posted @ 2025-05-03 12:51 CN-尼克狐尼克 阅读(19) 评论(0) 推荐(0)

2025年3月31日 #

pip 从国内镜像安装requirements.txt python模块

摘要: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt 阅读全文

posted @ 2025-03-31 21:23 CN-尼克狐尼克 阅读(60) 评论(0) 推荐(0)

2025年3月25日 #

window虚拟环境下打包程序

摘要: 1.创建虚拟环境 python -m venv myenv # 通用命令 2.进入虚拟环境 myenv\Scripts\activate 3.打包 pyinstaller -w -i "icon.ico" --onefile main.py 阅读全文

posted @ 2025-03-25 21:08 CN-尼克狐尼克 阅读(66) 评论(0) 推荐(0)

║ Looks like Playwright was just installed or updated. 报错Playwright快速解决

摘要: 当一个基于Playwright的爬虫项目仅仅以简单的打包方式导出。往往执行时会报找不到浏览器,即提示: ​ 这里就必须使用Playwright和Pyinstaller来创建独立的可执行文件。也就是说需要将程序中调用的浏览器也打包进执行文件。 解决方法: 1、pip安装 pyinstaller 2、在 阅读全文

posted @ 2025-03-25 20:49 CN-尼克狐尼克 阅读(470) 评论(0) 推荐(0)

2023年4月28日 #

java if和switch语句

摘要: if 语句: public class ifguanjianzi { public static void main(String[] args) { if(2<1){ System.out.println("1234567"); } else { System.out.println("12"); 阅读全文

posted @ 2023-04-28 18:09 CN-尼克狐尼克 阅读(21) 评论(0) 推荐(0)

2022年7月2日 #

输入年月日,计算这一天是一年的第几天?

摘要: #include<stdio.h> int main() { int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int num; int years,months,days,i,j=0,flag = 1; scanf("%d-%d-%d",&years 阅读全文

posted @ 2022-07-02 11:48 CN-尼克狐尼克 阅读(225) 评论(0) 推荐(0)