在存储库目录/keras-retinanet/
中,执行pip install . --user 后,出现错误:
D:\>cd D:\JupyterWorkSpace\keras-retinanet D:\JupyterWorkSpace\keras-retinanet>pip install . --user
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing d:\jupyterworkspace\keras-retinanet
Requirement already satisfied: keras in c:\programdata\anaconda3\lib\site-packages (from keras-retinanet==0.4.1) (2.2.0)
Collecting keras-resnet (from keras-retinanet==0.4.1)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/05/46/ad0b2d1a05d9497bd80c98a2c3f4d8be38a4601ace69af72814f5fafd851/keras-resnet-0.1.0.tar.gz
Requirement already satisfied: six in c:\programdata\anaconda3\lib\site-packages (from keras-retinanet==0.4.1) (1.11.0)
Requirement already satisfied: scipy in c:\programdata\anaconda3\lib\site-packages (from keras-retinanet==0.4.1) (1.0.0)
Requirement already satisfied: cython in c:\programdata\anaconda3\lib\site-packages (from keras-retinanet==0.4.1) (0.28.4)
Requirement already satisfied: keras-preprocessing==1.0.1 in c:\programdata\anaconda3\lib\site-packages (from keras->keras-retinanet==0.4.1) (1.0.1)
Requirement already satisfied: keras-applications==1.0.2 in c:\programdata\anaconda3\lib\site-packages (from keras->keras-retinanet==0.4.1) (1.0.2)
Requirement already satisfied: numpy>=1.9.1 in c:\programdata\anaconda3\lib\site-packages (from keras->keras-retinanet==0.4.1) (1.14.0)
Requirement already satisfied: pyyaml in c:\programdata\anaconda3\lib\site-packages (from keras->keras-retinanet==0.4.1) (3.12)
Requirement already satisfied: h5py in c:\programdata\anaconda3\lib\site-packages (from keras->keras-retinanet==0.4.1) (2.7.1)
Building wheels for collected packages: keras-retinanet, keras-resnet
Running setup.py bdist_wheel for keras-retinanet ... error
Complete output from command c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-req-build-ecoryr2p\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\ADMINI~1\AppData\Local\Temp\pip-wheel-ica_gqsh --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\keras_retinanet
copying keras_retinanet\initializers.py -> build\lib.win-amd64-3.6\keras_retinanet
copying keras_retinanet\losses.py -> build\lib.win-amd64-3.6\keras_retinanet
copying keras_retinanet\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet
creating build\lib.win-amd64-3.6\tests
copying tests\test_losses.py -> build\lib.win-amd64-3.6\tests
copying tests\__init__.py -> build\lib.win-amd64-3.6\tests
creating build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\cntk_backend.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\common.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\dynamic.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\tensorflow_backend.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\theano_backend.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
creating build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\convert_model.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\debug.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\evaluate.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\train.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
creating build\lib.win-amd64-3.6\keras_retinanet\callbacks
copying keras_retinanet\callbacks\coco.py -> build\lib.win-amd64-3.6\keras_retinanet\callbacks
copying keras_retinanet\callbacks\common.py -> build\lib.win-amd64-3.6\keras_retinanet\callbacks
copying keras_retinanet\callbacks\eval.py -> build\lib.win-amd64-3.6\keras_retinanet\callbacks
copying keras_retinanet\callbacks\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\callbacks
creating build\lib.win-amd64-3.6\keras_retinanet\layers
copying keras_retinanet\layers\filter_detections.py -> build\lib.win-amd64-3.6\keras_retinanet\layers
copying keras_retinanet\layers\_misc.py -> build\lib.win-amd64-3.6\keras_retinanet\layers
copying keras_retinanet\layers\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\layers
creating build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\densenet.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\mobilenet.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\resnet.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\retinanet.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\vgg.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\models
creating build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\coco.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\csv_generator.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\generator.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\kitti.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\open_images.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\pascal_voc.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
creating build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\anchors.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\coco_eval.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\colors.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\eval.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\image.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\keras_version.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\model.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\transform.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\visualization.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
creating build\lib.win-amd64-3.6\tests\backend
copying tests\backend\test_common.py -> build\lib.win-amd64-3.6\tests\backend
copying tests\backend\__init__.py -> build\lib.win-amd64-3.6\tests\backend
creating build\lib.win-amd64-3.6\tests\layers
copying tests\layers\test_filter_detections.py -> build\lib.win-amd64-3.6\tests\layers
copying tests\layers\test_misc.py -> build\lib.win-amd64-3.6\tests\layers
copying tests\layers\__init__.py -> build\lib.win-amd64-3.6\tests\layers
creating build\lib.win-amd64-3.6\tests\models
copying tests\models\test_densenet.py -> build\lib.win-amd64-3.6\tests\models
copying tests\models\test_mobilenet.py -> build\lib.win-amd64-3.6\tests\models
copying tests\models\__init__.py -> build\lib.win-amd64-3.6\tests\models
creating build\lib.win-amd64-3.6\tests\preprocessing
copying tests\preprocessing\test_csv_generator.py -> build\lib.win-amd64-3.6\tests\preprocessing
copying tests\preprocessing\test_generator.py -> build\lib.win-amd64-3.6\tests\preprocessing
copying tests\preprocessing\__init__.py -> build\lib.win-amd64-3.6\tests\preprocessing
creating build\lib.win-amd64-3.6\tests\utils
copying tests\utils\test_transform.py -> build\lib.win-amd64-3.6\tests\utils
copying tests\utils\__init__.py -> build\lib.win-amd64-3.6\tests\utils
running build_ext
cythoning keras_retinanet/utils/compute_overlap.pyx to keras_retinanet/utils\compute_overlap.c
building 'keras_retinanet.utils.compute_overlap' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools ----------------------------------------
Failed building wheel for keras-retinanet
Running setup.py clean for keras-retinanet
Running setup.py bdist_wheel for keras-resnet ... done
Stored in directory: C:\Users\Administrator\AppData\Local\pip\Cache\wheels\7f\48\1e\b0b8fdd329b2546bfe9d407d7496327bdd668d7fa0a041f809
Successfully built keras-resnet
Failed to build keras-retinanet
Installing collected packages: keras-resnet, keras-retinanet
Running setup.py install for keras-retinanet ... error
Complete output from command c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-req-build-ecoryr2p\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-7tdlp8uk\install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\keras_retinanet
copying keras_retinanet\initializers.py -> build\lib.win-amd64-3.6\keras_retinanet
copying keras_retinanet\losses.py -> build\lib.win-amd64-3.6\keras_retinanet
copying keras_retinanet\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet
creating build\lib.win-amd64-3.6\tests
copying tests\test_losses.py -> build\lib.win-amd64-3.6\tests
copying tests\__init__.py -> build\lib.win-amd64-3.6\tests
creating build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\cntk_backend.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\common.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\dynamic.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\tensorflow_backend.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\theano_backend.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
copying keras_retinanet\backend\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\backend
creating build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\convert_model.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\debug.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\evaluate.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\train.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
copying keras_retinanet\bin\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\bin
creating build\lib.win-amd64-3.6\keras_retinanet\callbacks
copying keras_retinanet\callbacks\coco.py -> build\lib.win-amd64-3.6\keras_retinanet\callbacks
copying keras_retinanet\callbacks\common.py -> build\lib.win-amd64-3.6\keras_retinanet\callbacks
copying keras_retinanet\callbacks\eval.py -> build\lib.win-amd64-3.6\keras_retinanet\callbacks
copying keras_retinanet\callbacks\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\callbacks
creating build\lib.win-amd64-3.6\keras_retinanet\layers
copying keras_retinanet\layers\filter_detections.py -> build\lib.win-amd64-3.6\keras_retinanet\layers
copying keras_retinanet\layers\_misc.py -> build\lib.win-amd64-3.6\keras_retinanet\layers
copying keras_retinanet\layers\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\layers
creating build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\densenet.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\mobilenet.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\resnet.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\retinanet.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\vgg.py -> build\lib.win-amd64-3.6\keras_retinanet\models
copying keras_retinanet\models\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\models
creating build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\coco.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\csv_generator.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\generator.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\kitti.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\open_images.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\pascal_voc.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
copying keras_retinanet\preprocessing\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\preprocessing
creating build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\anchors.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\coco_eval.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\colors.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\eval.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\image.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\keras_version.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\model.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\transform.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\visualization.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
copying keras_retinanet\utils\__init__.py -> build\lib.win-amd64-3.6\keras_retinanet\utils
creating build\lib.win-amd64-3.6\tests\backend
copying tests\backend\test_common.py -> build\lib.win-amd64-3.6\tests\backend
copying tests\backend\__init__.py -> build\lib.win-amd64-3.6\tests\backend
creating build\lib.win-amd64-3.6\tests\layers
copying tests\layers\test_filter_detections.py -> build\lib.win-amd64-3.6\tests\layers
copying tests\layers\test_misc.py -> build\lib.win-amd64-3.6\tests\layers
copying tests\layers\__init__.py -> build\lib.win-amd64-3.6\tests\layers
creating build\lib.win-amd64-3.6\tests\models
copying tests\models\test_densenet.py -> build\lib.win-amd64-3.6\tests\models
copying tests\models\test_mobilenet.py -> build\lib.win-amd64-3.6\tests\models
copying tests\models\__init__.py -> build\lib.win-amd64-3.6\tests\models
creating build\lib.win-amd64-3.6\tests\preprocessing
copying tests\preprocessing\test_csv_generator.py -> build\lib.win-amd64-3.6\tests\preprocessing
copying tests\preprocessing\test_generator.py -> build\lib.win-amd64-3.6\tests\preprocessing
copying tests\preprocessing\__init__.py -> build\lib.win-amd64-3.6\tests\preprocessing
creating build\lib.win-amd64-3.6\tests\utils
copying tests\utils\test_transform.py -> build\lib.win-amd64-3.6\tests\utils
copying tests\utils\__init__.py -> build\lib.win-amd64-3.6\tests\utils
running build_ext
skipping 'keras_retinanet/utils\compute_overlap.c' Cython extension (up-to-date)
building 'keras_retinanet.utils.compute_overlap' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools ----------------------------------------
Command "c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-req-build-ecoryr2p\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-7tdlp8uk\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-req-build-ecoryr2p\
Microsoft visual c++ 14.0 is required的问题,可以安装Microsoft visual c++ 14.0进行解决,点此链接下载,下载安装后,Keras RetinaNet github项目顺利安装成功。