{'msg': "module 'numpy' has no attribute 'int'.\nnp.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.\nThe aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:\n https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations", 'results': '', 'status': '101'}
解决方案:
numpy降级,修改requirements.txt中的numpy改为:numpy==1.23.3
2、Polygon3
正常安装报错如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
error:subprocess-exited-with-error python setuppy bdist_wheel did not run successfully. exit code: 1 [14 Lines of output] Using NumPy extension! running bdist_wheel runningbuild runningbuild_py creating build creatingbuild\lib.win-amd64-cpython-39 creating build\lib.win-amd64-cpython-39\Polygon copying Polygon\Io.py -> build\lib.win-amd64-cpython-39\Polygon copying Polygon\shapes.py -> build\lib.win-amd64-cpython-39\Polygon copying Polygon\utils.py -> buildlib.win-amd64-cpython-39\Polygon copying Polygon-_init_-.py -> build\lib.win-amd64-cpython-39\Polygon running build_ext building 'Polygon.cPolygon' extensionerror: Microsoft Visual C++ 14. or greater is required. Get it with "Microsoft C++ Build Tools" : https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]