随笔分类 -  Anaconda

1 2 3 4 5 ··· 11 下一页
摘要:(base) bim@bim-Smart-Client:~/Anaconda$ (base) bim@bim-Smart-Client:~/Anaconda$ (base) bim@bim-Smart-Client:~/Anaconda$ conda create -n wind_2025 pyth 阅读全文
posted @ 2025-01-11 15:36 西北逍遥 阅读(10) 评论(0) 推荐(0) 编辑
摘要:VTK环境 (base) C:\Users\BIM> (base) C:\Users\BIM>conda create -n vtk_env python==3.8 Collecting package metadata (current_repodata.json): done Solving e 阅读全文
posted @ 2024-12-10 07:43 西北逍遥 阅读(11) 评论(0) 推荐(0) 编辑
摘要:python批量修改文件后缀名 import os import glob def batch_rename_files(source_dir, old_extension, new_extension): # 确保新的文件名不会与现有文件冲突 def get_new_name(file_path, 阅读全文
posted @ 2024-07-05 23:03 西北逍遥 阅读(111) 评论(0) 推荐(0) 编辑
摘要:ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0h 27 Mar 2018' pip uninstall urllib3 阅读全文
posted @ 2024-07-03 23:03 西北逍遥 阅读(2) 评论(0) 推荐(0) 编辑
摘要:from typing import Any, Callable, List, Optional, OrderedDict, Sequence, TupleImportError: cannot import name 'OrderedDict' from 'typing' (E:\Anaconda 阅读全文
posted @ 2024-07-02 23:58 西北逍遥 阅读(51) 评论(0) 推荐(0) 编辑
摘要:import sqlite3 # 连接到数据库 conn = sqlite3.connect('example.db') # 创建一个Cursor对象 cursor = conn.cursor() # 执行查询语句 cursor.execute('SELECT * FROM some_table') 阅读全文
posted @ 2024-06-27 23:50 西北逍遥 阅读(7) 评论(0) 推荐(0) 编辑
摘要:import cv2 # 读取图像 image = cv2.imread('input.jpg') # 获取原始图像的宽度和高度 height, width = image.shape[:2] # 定义新的大小 new_width = 640 # 新宽度 new_height = int(new_w 阅读全文
posted @ 2024-06-24 23:45 西北逍遥 阅读(450) 评论(0) 推荐(0) 编辑
摘要:self._conn = sqlite3.connect(dbName) ############################# 阅读全文
posted @ 2024-06-20 23:35 西北逍遥 阅读(8) 评论(0) 推荐(0) 编辑
摘要:python opencv创建空图片 import cv2 import numpy as np # 定义图片的宽度和高度 width = 640 height = 480 # 创建一个全黑的图片,numpy的zeros函数返回给定形状和类型的新数组,用零填充 # OpenCV使用BGR颜色空间,所 阅读全文
posted @ 2024-06-19 22:30 西北逍遥 阅读(81) 评论(0) 推荐(0) 编辑
摘要:conda create -n wind_2021 python==3.7 (base) C:\Users\bim>conda create -n wind_2021 python==3.7 Channels: - defaults Platform: win-64 Collecting packa 阅读全文
posted @ 2024-06-12 22:10 西北逍遥 阅读(8) 评论(0) 推荐(0) 编辑
摘要:python POST推送多种数据 import requests, os, json,hashlib from requests.exceptions import Timeout #小程序数据推送 def postDataToServer(self,param1,param2,param3,pa 阅读全文
posted @ 2024-03-23 17:02 西北逍遥 阅读(37) 评论(0) 推荐(0) 编辑
摘要:(base) C:\Users\luo> (base) C:\Users\luo>nvidia-smi Thu Mar 21 10:54:51 2024 + + | NVIDIA-SMI 516.94 Driver Version: 516.94 CUDA Version: 11.7 | | + + 阅读全文
posted @ 2024-03-21 13:21 西北逍遥 阅读(10) 评论(0) 推荐(0) 编辑
摘要:python post报错 退出 Failed to establish a new connection import requests from requests.exceptions import RequestException # 设置URL和请求数据 url = 'http://exam 阅读全文
posted @ 2024-03-16 21:25 西北逍遥 阅读(387) 评论(0) 推荐(0) 编辑
摘要:nvidia-smi C:\Users\jin> C:\Users\jin>nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2023 NVIDIA Corporation Built on Mon_Apr__3_17: 阅读全文
posted @ 2024-03-09 11:01 西北逍遥 阅读(420) 评论(0) 推荐(0) 编辑
摘要:anaconda pip 安装速度慢,更换阿里云源 conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main/ conda config --add channels https://mirrors.aliyu 阅读全文
posted @ 2024-03-06 23:41 西北逍遥 阅读(1664) 评论(0) 推荐(0) 编辑
摘要:win10通过.bat文件启动anaconda环境、切换路径 并运行脚本 CALL E:\Anaconda3\install\Scripts\activate.bat E:\Anaconda3\install CALL conda activate byd_2 H: cd H:\PytorchPro 阅读全文
posted @ 2023-12-22 09:14 西北逍遥 阅读(1057) 评论(0) 推荐(0) 编辑
摘要:python request请求数据 # -*- coding:utf-8 -*- import requests import json #查询塔吊X数据 def searchTowerXValue(): towerXValue = 0.0 try: # 从服务器请求数据 response = r 阅读全文
posted @ 2023-09-19 08:49 西北逍遥 阅读(28) 评论(0) 推荐(0) 编辑
摘要:1、 (base) C:\Users\Administrator> (base) C:\Users\Administrator> (base) C:\Users\Administrator>conda create -n wind_2023 python==3.7 Collecting packag 阅读全文
posted @ 2023-09-08 20:09 西北逍遥 阅读(143) 评论(0) 推荐(0) 编辑
摘要:import xml.etree.ElementTree as ET # 加载XML文档 tree = ET.parse('example.xml') # 获取根元素 root = tree.getroot() # 遍历XML文档中的元素 for child in root: print(child 阅读全文
posted @ 2023-06-16 21:16 西北逍遥 阅读(13) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 11 下一页
点击右上角即可分享
微信分享提示