使用Anconda安装Pythony库(依赖包)的方法
目前本人总结了两种方法,如下文详述。
1.法一
(1)首先切换路径至包含“requirements_conda.txt”的文件夹下。路径切换命令如下(举例):
(2)再输入下面命令:
conda install --file=requirements_conda.txt
说明:“requirements_conda.txt”为一个txt文件,txt中的内容即为要安装的python依赖包名。内容如下(举例):
tensorflow
keras
ipykernel
cython
numpy
matplotlib
scipy
Pillow
opencv
pandas
seaborn
注意:“–file”中的“–”不可漏写(是两个英文“-”)。
2.法二
(1)同样先切换路径。
(2)然后输入下面命令:
pip install -r requirements_pip.txt
说明:同样的,“requirements_pip.txt”仍然是一个txt文件。内容(举例)如下:
cython
numpy
matplotlib
scipy
Pillow
image
easydict
opencv-python
sklearn
bunch
tqdm
common
lap
imagehash
ipywidgets
labelme
scikit-image
Augmentor
imgaug