python -V #注意V是大写 查看python版本
conda info -e:查看当前环境
conda env list(查看当前有哪些虚拟环境)
conda activate env_name:激活环境 (env_name表示环境名)
conda deactivate:退出当前环境
conda remove -n name --all 删除环境
conda create -n LabelIMG python==3.7(创建python3.7的虚拟环境,文件夹命名LabelIMG)
activate LabelIMG(激活LabelIMG环境)
pip install PyQt5 -i https://pypi.tuna.tsinghua.edu.cn/simple/(使用镜像安装PyQt5)
pip install pyqt5-tools -i https://pypi.tuna.tsinghua.edu.cn/simple/(安装pyqt5-tools)
pip install lxml -i https://pypi.tuna.tsinghua.edu.cn/simple/(安装lxml)
pip install labelImg -i https://pypi.tuna.tsinghua.edu.cn/simple/(安装labelImg)
labelImg(启动labelImg)
pip3 install -r requirements.txt
pip install -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com numpy==2.0.0
-------------------------------------------------------------------
清华:https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import InteractiveSession
config = ConfigProto()
config.gpu_options.allow_growth = True # 不全部占满显存, 按需分配
session = InteractiveSession(config=config)
config.gpu_options.per_process_gpu_memory_fraction = 0.5 # 限制GPU内存占用率
conda命令
最新推荐文章于 2025-12-18 10:59:28 发布
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
Python3.8
Conda
Python
Python 是一种高级、解释型、通用的编程语言,以其简洁易读的语法而闻名,适用于广泛的应用,包括Web开发、数据分析、人工智能和自动化脚本
9026

被折叠的 条评论
为什么被折叠?



