1. 下载 开源package (https://github.com/datitran/object_detector_app)
2. 在Anaconda下创建 新的 ENV
conda create --name RTOD
3. 运行Package中的 yml文件,建立同package提供者相同的运行环境
yml文件中各个带安装包以- 分割,之后是包名=版本 = 依赖于Python版本
- cycler=0.10.0=py35_0 (cycler包,版本0.10.0 需要Python3.5)
问题a.
(RTOD) C:\Users\Sun\object_detector_app-master>conda env create -f environment.yml
Using Anaconda API: https://api.anaconda.org
Fetching package metadata ...............
NoPackagesFoundError: Package missing in current win-64 channels: - freetype 2.5.5 2
(RTOD) C:\Users\Sun\object_detector_app-master>pip install freetypeCollecting freetype
Could not find a version that satisfies the requirement freetype (from versions: ) No matching distribution found for freetype
解决办法: (RTOD) C:\Users\Sun\object_detector_app-master>conda install -c bioninja freetype
或者 conda install -c conda-forge jbig
或者 pip install pakcage name 参数-c 指明了 要去什么通道里面取 需要的包
寻找需要安装包的所在通道简装信息 使用 anaconda show xxx(pakcage name)