requirements.txt

发布时间 2023-06-30 20:06:25作者: 后晟笑
在Python中,你可以使用pip命令来安装依赖包。如果你想要一键安装全部依赖包,你可以创建一个requirements.txt文件,将所有需要安装的依赖包名称以及版本号写入该文件,然后使用以下命令进行安装:
pip install -r requirements.txt

这将会自动安装requirements.txt文件中列出的所有依赖包及其版本。请确保在运行该命令之前,你已经在命令行中切换到了项目的根目录,其中包含了requirements.txt文件。

注意:确保 pip 已经在你的 Python 环境中正确安装并配置好了。

如:
 # pip install -r requirements.txt

 

# Base ----------------------------------------

matplotlib>=3.2.2

numpy>=1.18.5

opencv-python>=4.1.2

Pillow==8.4.0

PyYAML>=5.3.1

requests>=2.23.0

scipy>=1.4.1

# torch>=1.7.0

# torchvision>=0.8.1

tqdm>=4.41.0

 

# Logging -------------------------------------

tensorboard>=2.4.1

# wandb

 

# Plotting ------------------------------------

pandas>=1.1.4

seaborn>=0.11.0

 

# Export --------------------------------------

# coremltools>=4.1  # CoreML export

# onnx>=1.9.0  # ONNX export

# onnx-simplifier>=0.3.6  # ONNX simplifier

# scikit-learn==0.19.2  # CoreML quantization

# tensorflow>=2.4.1  # TFLite export

# tensorflowjs>=3.9.0  # TF.js export

 

# Extras --------------------------------------

# albumentations>=1.0.3

# Cython  # for pycocotools https://github.com/cocodataset/cocoapi/issues/172

# pycocotools>=2.0  # COCO mAP

# roboflow

thop  # FLOPs computation