how to install fiona on windows - python

i am trying to install fiona package. i tried to install it via pip command and as a wheel, but either of them fails and i get the
below posted error.
GDAL, shapely and psycopg2 are installed.
please let me know how to install fiona on windows
error
M:\projects\python\wheels\fiona>pip install --target="M:\projects\python\flask apps\openRoutService\apps\app5\env\Lib\site-packages" Fiona-1.8.20-cp310-cp310-win_amd64.whl
Processing m:\projects\python\wheels\fiona\fiona-1.8.20-cp310-cp310-win_amd64.whl
Collecting six>=1.7
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting gdal~=3.4.1
Using cached GDAL-3.4.1.tar.gz (755 kB)
Collecting click-plugins>=1.0
Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting attrs>=17
Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting click>=4.0
Using cached click-8.0.3-py3-none-any.whl (97 kB)
Collecting certifi
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting munch
Using cached munch-2.5.0-py2.py3-none-any.whl (10 kB)
Collecting setuptools
Using cached setuptools-60.9.2-py3-none-any.whl (1.1 MB)
Collecting cligj>=0.5
Using cached cligj-0.7.2-py3-none-any.whl (7.1 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Using legacy 'setup.py install' for gdal, since package 'wheel' is not installed.
Installing collected packages: colorama, six, click, setuptools, munch, gdal, cligj, click-plugins, certifi, attrs, Fiona
Running setup.py install for gdal ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\xx\\AppData\\Local\\Temp\\pip-install-v2cmia2n\\gdal_18cd6fbde3384489bd2e11f4cb590c81\\setup.py'"'"'; __file__='"'"'C:\\Users\\xx\\AppData\\Local\\Temp\\pip-install-v2cmia2n\\gdal_18cd6fbde3384489bd2e11f4cb590c81\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\xx\AppData\Local\Temp\pip-record-i_y174eu\install-record.txt' --single-version-externally-managed --home 'C:\Users\xx\AppData\Local\Temp\pip-target-psp5q3qc' --compile --install-headers 'C:\Users\xx\AppData\Local\Temp\pip-target-psp5q3qc\include\python\gdal'
cwd: C:\Users\xx\AppData\Local\Temp\pip-install-v2cmia2n\gdal_18cd6fbde3384489bd2e11f4cb590c81\
Complete output (118 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\osgeo
copying osgeo\gdal.py -> build\lib.win-amd64-3.10\osgeo
copying osgeo\gdalconst.py -> build\lib.win-amd64-3.10\osgeo
copying osgeo\gdalnumeric.py -> build\lib.win-amd64-3.10\osgeo
copying osgeo\gdal_array.py -> build\lib.win-amd64-3.10\osgeo
copying osgeo\gnm.py -> build\lib.win-amd64-3.10\osgeo
copying osgeo\ogr.py -> build\lib.win-amd64-3.10\osgeo
copying osgeo\osr.py -> build\lib.win-amd64-3.10\osgeo
copying osgeo\utils.py -> build\lib.win-amd64-3.10\osgeo
copying osgeo\__init__.py -> build\lib.win-amd64-3.10\osgeo
creating build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal2tiles.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal2xyz.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdalattachpct.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdalcompare.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdalmove.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal_calc.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal_edit.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal_fillnodata.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal_merge.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal_pansharpen.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal_polygonize.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal_proximity.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal_retile.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\gdal_sieve.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\ogrmerge.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\pct2rgb.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\rgb2pct.py -> build\lib.win-amd64-3.10\osgeo_utils
copying gdal-utils\osgeo_utils\__init__.py -> build\lib.win-amd64-3.10\osgeo_utils
creating build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\array_util.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\base.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\batch_creator.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\color_palette.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\color_table.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\extent_util.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\gdal_argparse.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\numpy_util.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\osr_util.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\progress.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\raster_creation.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\rectangle.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\util.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
copying gdal-utils\osgeo_utils\auxiliary\__init__.py -> build\lib.win-amd64-3.10\osgeo_utils\auxiliary
creating build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\assemblepoly.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\build_jp2_from_xml.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\classify.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\crs2crs2grid.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\densify.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\dump_jp2.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\epsg_tr.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\esri2wkt.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\fft.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\fix_gpkg.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gcps2ogr.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gcps2vec.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gcps2wld.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal2grd.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdalchksum.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdalcopyproj.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdalfilter.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdalident.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdalimport.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdalinfo.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdallocationinfo.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_auth.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_cp.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_create_pdf.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_ls.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_lut.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_mkdir.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_remove_towgs84.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_rm.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_rmdir.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_vrtmerge.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\gdal_zip.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\get_soundg.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\histrep.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\hsv_merge.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\jpeg_in_tiff_extract.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\load2odbc.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\loslas2ntv2.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\magphase.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\make_fuzzer_friendly_archive.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\mkgraticule.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\ogr2ogr.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\ogr2vrt.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\ogrinfo.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\ogrupdate.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\ogr_build_junction_table.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\ogr_dispatch.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\ogr_layer_algebra.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\rel.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\tigerpoly.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\tile_extent_from_raster.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\tolatlong.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\validate_cloud_optimized_geotiff.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\validate_gpkg.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\validate_jp2.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\val_repl.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\vec_tr.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\vec_tr_spat.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\wcs_virtds_params.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
copying gdal-utils\osgeo_utils\samples\__init__.py -> build\lib.win-amd64-3.10\osgeo_utils\samples
running build_ext
building 'osgeo._gdal' extension
building 'osgeo._ogr' extension
building 'osgeo._osr' extension
building 'osgeo._gnm' extension
building 'osgeo._gdalconst' extension
building 'osgeo._gdal_array' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------

If you're wanting to do geospatial data analysis with the OSgeo suite I recommend going ahead and installing Geopandas in a clean new Python environment. Fiona is one of the dependencies, so it will be installed. Open up an anaconda prompt and run these commands. Of course you can change the name of your new env from geo_env to something else if you'd prefer.
conda create -n geo_env
conda activate geo_env
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda install python=3 geopandas
You might also find this post helpful if you want to try to get your Microsoft Visual C++ 14.0 working. However, from personal experience and stories from others, I've found the conda-forge Geopandas install to be much easier.

Related

I get an error when installing ibm_db with pip

pip version 22.0.4 and python 3.10.4
The end of the error message looks like this:
copying README.md -> build\bdist.win-amd64\wheel\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\Lib\site-packages
copying CHANGES.md -> build\bdist.win-amd64\wheel\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\Lib\site-packages
copying LICENSE -> build\bdist.win-amd64\wheel\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\Lib\site-packages
copying config.py.sample -> build\bdist.win-amd64\wheel\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\Lib\site-packages
error: could not create 'build\bdist.win-amd64\wheel\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\Lib\site-packages\config.py.sample': No such file or directory
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ibm_db
Failed to build ibm_db
ERROR: Could not build wheels for ibm_db, which is required to install pyproject.toml-based projects
Edit: I will copy the start of the error message below since the whole message is too long. The wheel package is installed (tried to run pip install wheel).
Collecting ibm_db
Using cached ibm_db-3.1.1.tar.gz (1.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: ibm_db
Building wheel for ibm_db (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for ibm_db (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [785 lines of output]
Detected 64-bit Python
running bdist_wheel
running build
running build_py
creating build
creating build\lib
copying ibm_db_dbi.py -> build\lib
copying testfunctions.py -> build\lib
copying tests.py -> build\lib
copying ibm_db.py -> build\lib
creating build\lib\certs
copying certs\__init__.py -> build\lib\certs
creating build\lib\clidriver
copying clidriver\__init__.py -> build\lib\clidriver
creating build\lib\ibm_db_dlls
copying ibm_db_dlls\__init__.py -> build\lib\ibm_db_dlls
creating build\lib\ibm_db_tests
copying ibm_db_tests\test_000_PrepareDb.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_001_ConnDb.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_002_ConnDbUncatalogedConn.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_003_NumAffectedRows.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_004_ConnWrongUserPwd.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_005_ConnBadUserBadPwd.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_006_ConnPassingOpts.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_007_pConnPassingOpts.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_008_ColumnInfo.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_010_UpdateRowCount.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_011_DeleteRowCount.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_012_KeysetDrivenCursorSelect01.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_013_KeysetDrivenCursorSelect02.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_014_KeysetDrivenCursorNegativeRow.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_015_InsertDeleteRowCount_01.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_016_InsertDeleteRowCount_02.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_017_selectRowcountPrefetchSTMTOpt.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_018_selectRowcountPrefetchSetOpt.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_019_selectRowcountPrefetchPrepOpt.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_020_RollbackDelete.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_021_CommitDelete.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_022_RollbackInsert.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_023_ColumnPrivileges.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_024_ForeignKeys.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_025_PrimaryKeys.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_030_Result.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_031_ResultIndexPosition.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_032_ResultIndexName.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_033_ResultOutSequenceColumn.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_034_FetchAssoc.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_035_FetchRow_01.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_036_FetchRow_02.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_037_FetchRowIndexPos.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_038_FetchRowIndexPosNested_01.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_039_FetchRowIndexPosNested_02.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_03a_ResultNonExistCol.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_040_FetchTuple.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_041_FetchTupleMany_01.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_042_FetchTupleMany_02.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_043_FetchTupleMany_03.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_044_FetchTupleMany_04.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_045_FetchTupleBinaryData_01.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_046_FetchTupleMany_05.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_047_FetchTupleMany_06.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_048_FetchTupleBinaryData_02.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_049_InsertNoneParam.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_050_AutocommitStatus.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_051_SetAutocommit_01.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_052_SetAutocommit_02.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_053_AttrThruConn.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_054_CursorType.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_060_Tables_01.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_061_Tables_02.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_062_Tables_03.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_063_Tables_04.py -> build\lib\ibm_db_tests
copying ibm_db_tests\test_064_Tables_05.py -> build\lib\ibm_db_tests
Then it just goes on to copying more files.

Installing Keras in pycharm causing failure

I am trying to use Keras for time series forecasting and I stumbled across an error while installing Keras lib.
Here is an error message that I got:
Collecting keras
Using cached Keras-2.4.3-py2.py3-none-any.whl (36 kB)
Requirement already satisfied: numpy>=1.9.1 in e:\program files (x86)\pythonworkspace\r&dproject\venv\lib\site-packages (from keras) (1.20.1)
Collecting h5py
Using cached h5py-3.2.1.tar.gz (368 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: scipy>=0.14 in e:\program files (x86)\pythonworkspace\r&dproject\venv\lib\site-packages (from keras) (1.6.1)
Collecting pyyaml
Using cached PyYAML-5.4.1-cp38-cp38-win32.whl (196 kB)
Building wheels for collected packages: h5py
Building wheel for h5py (PEP 517): started
Building wheel for h5py (PEP 517): finished with status 'error'
Failed to build h5py
DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated and has no effect anymore. pip 21.1 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
ERROR: Command errored out with exit status 1:
command: 'E:\Program Files (x86)\PythonWorkspace\R&DProject\venv\Scripts\python.exe' 'E:\Program Files (x86)\PythonWorkspace\R&DProject\venv\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\Pdani\AppData\Local\Temp\tmp3bkex0vs'
cwd: C:\Users\Pdani\AppData\Local\Temp\pip-install-ohk956w8\h5py_04e48a12b76742f58110ae0bdae41c39
Complete output (73 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\h5py
copying h5py\h5py_warnings.py -> build\lib.win32-3.8\h5py
copying h5py\ipy_completer.py -> build\lib.win32-3.8\h5py
copying h5py\version.py -> build\lib.win32-3.8\h5py
copying h5py\__init__.py -> build\lib.win32-3.8\h5py
creating build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\attrs.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\base.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\compat.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\dataset.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\datatype.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\dims.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\files.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\filters.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\group.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\selections.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\selections2.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\vds.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\__init__.py -> build\lib.win32-3.8\h5py\_hl
creating build\lib.win32-3.8\h5py\tests
copying h5py\tests\common.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\conftest.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_attribute_create.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_attrs.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_attrs_data.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_base.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_big_endian_file.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_completions.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dataset.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dataset_getitem.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dataset_swmr.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_datatype.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dimension_scales.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dims_dimensionproxy.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dtype.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_errors.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_file.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_file2.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_file_image.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_filters.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_group.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5d_direct_chunk.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5f.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5o.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5p.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5pl.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5t.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_objects.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_selections.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_slicing.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\__init__.py -> build\lib.win32-3.8\h5py\tests
creating build\lib.win32-3.8\h5py\tests\data_files
copying h5py\tests\data_files\__init__.py -> build\lib.win32-3.8\h5py\tests\data_files
creating build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\test_highlevel_vds.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\test_lowlevel_vds.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\test_virtual_source.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\__init__.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\data_files\vlen_string_dset.h5 -> build\lib.win32-3.8\h5py\tests\data_files
copying h5py\tests\data_files\vlen_string_dset_utc.h5 -> build\lib.win32-3.8\h5py\tests\data_files
copying h5py\tests\data_files\vlen_string_s390x.h5 -> build\lib.win32-3.8\h5py\tests\data_files
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
Loading library to get build settings and version: hdf5.dll
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: Could not find module 'hdf5.dll' (or one of its dependencies). Try using the full path with constructor syntax.
----------------------------------------
ERROR: Failed building wheel for h5py
ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
I already tried different solutions like downgrading my Python interpreter from 3.9 to 3.7, updating pip to a newer version, but nothing worked so far. Now I'm totally stucked.
Make sure you have 64bit python install.
This error can be because of old pip version. Upgrade pip:
pip3 install --upgrade pip
then try to install h5py directly:
pip install h5py
And reinstall Keras:
pip install keras

installation of gnuhealth client $ pip3 install --user --upgrade gnuhealth-client

the error msg :
Building wheel for PyGObject (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpnfra__iq
cwd: /tmp/pip-install-4p2n3fm2/pygobject
Complete output (43 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pygtkcompat
copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-3.6/pygtkcompat
copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.6/pygtkcompat
copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.6/pygtkcompat
creating build/lib.linux-x86_64-3.6/gi
copying gi/__init__.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_compat.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_constants.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_error.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_gtktemplate.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_option.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.6/gi
copying gi/docstring.py -> build/lib.linux-x86_64-3.6/gi
copying gi/importer.py -> build/lib.linux-x86_64-3.6/gi
copying gi/module.py -> build/lib.linux-x86_64-3.6/gi
copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.6/gi
copying gi/types.py -> build/lib.linux-x86_64-3.6/gi
creating build/lib.linux-x86_64-3.6/gi/repository
copying gi/repository/__init__.py -> build/lib.linux-x86_64-3.6/gi/repository
creating build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GdkPixbuf.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/__init__.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.6/gi/overrides
running build_ext
Package cairo-gobject was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo-gobject.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo-gobject' found
Command '('pkg-config', '--print-errors', '--exists', 'cairo-gobject >= 0')' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for PyGObject
Failed to build PyGObject
ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly
You should install pygobject from your distribution package. Otherwise you need to install all the required headers for cairo and probably GTK.

Installing Django-Fabric-AWS with pip, invalid syntax?

In process of deploying Django on EC2, I'm following a step in this guide that requires me to install Fabric.
In the terminal of Pycharm, I first confirm pip is working by running pip and in the project directory. It is, so then I type in the command that I've been instructed, pip install -r fabfile/requirements.txt which produces the following:
Collecting Fabric==1.4.3 (from -r fabfile/requirements.txt (line 1))
Using cached Fabric-1.4.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Users\david\AppData\Local\Temp\1\pip-build-icytzvd1\Fabric\setup.py", line 7, in <module>
from fabric.version import get_version
File "C:\Users\david\AppData\Local\Temp\1\pip-build-icytzvd1\Fabric\fabric\version.py", line 104
print get_version('all')
^
SyntaxError: invalid syntax
----------------------------------------
←[31mCommand "python setup.py egg_info" failed with error code 1 in C:\Users\david\AppData\Local\Temp\1\pip-build-icytzvd1\Fabric←[0m
My untrained eyes do not see a syntax error that I can recognize. I looked in C:\Users\david\AppData\Local\Temp\1 with hidden files shown, and there is no pip-build-icytzvd1 folder.
I'm completely inexperienced with AWS. If a solution to this problem is worth finding, where could I find the solution? If it isn't worth finding a solution to this, is there an up-to-date guide to manually deploy Django on EC2 using Nginx, Gunicorn, PostreSQL, and Amazon AMI?
edit:
Collecting Fabric
Downloading Fabric-1.10.2.tar.gz (212kB)
Collecting paramiko>=1.10 (from Fabric)
Downloading paramiko-1.16.0-py2.py3-none-any.whl (169kB)
Collecting pycrypto!=2.4,>=2.1 (from paramiko>=1.10->Fabric)
Downloading pycrypto-2.6.1.tar.gz (446kB)
Collecting ecdsa>=0.11 (from paramiko>=1.10->Fabric)
Downloading ecdsa-0.13-py2.py3-none-any.whl (86kB)
Installing collected packages: pycrypto, ecdsa, paramiko, Fabric
Running setup.py install for pycrypto
Complete output from command D:\env\Django\Scripts\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\David\\AppData\\Local\\Temp\\pycharm-packaging0.tmp\\pycrypto\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\David\AppData\Local\Temp\pip-nggph54n-record\install-record.txt --single-version-externally-managed --compile --install-headers D:\env\Django\include\site\python3.5\pycrypto:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\Crypto
copying lib\Crypto\pct_warnings.py -> build\lib.win-amd64-3.5\Crypto
copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.5\Crypto
creating build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\hashalgo.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\HMAC.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\MD2.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\MD4.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\MD5.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\RIPEMD.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA224.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA256.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA384.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA512.py -> build\lib.win-amd64-3.5\Crypto\Hash
copying lib\Crypto\Hash\__init__.py -> build\lib.win-amd64-3.5\Crypto\Hash
creating build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\ARC4.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\blockalgo.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\CAST.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\DES.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\DES3.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_OAEP.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_v1_5.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\XOR.py -> build\lib.win-amd64-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\__init__.py -> build\lib.win-amd64-3.5\Crypto\Cipher
creating build\lib.win-amd64-3.5\Crypto\Util
copying lib\Crypto\Util\asn1.py -> build\lib.win-amd64-3.5\Crypto\Util
copying lib\Crypto\Util\Counter.py -> build\lib.win-amd64-3.5\Crypto\Util
copying lib\Crypto\Util\number.py -> build\lib.win-amd64-3.5\Crypto\Util
copying lib\Crypto\Util\py3compat.py -> build\lib.win-amd64-3.5\Crypto\Util
copying lib\Crypto\Util\randpool.py -> build\lib.win-amd64-3.5\Crypto\Util
copying lib\Crypto\Util\RFC1751.py -> build\lib.win-amd64-3.5\Crypto\Util
copying lib\Crypto\Util\winrandom.py -> build\lib.win-amd64-3.5\Crypto\Util
copying lib\Crypto\Util\_number_new.py -> build\lib.win-amd64-3.5\Crypto\Util
copying lib\Crypto\Util\__init__.py -> build\lib.win-amd64-3.5\Crypto\Util
creating build\lib.win-amd64-3.5\Crypto\Random
copying lib\Crypto\Random\random.py -> build\lib.win-amd64-3.5\Crypto\Random
copying lib\Crypto\Random\_UserFriendlyRNG.py -> build\lib.win-amd64-3.5\Crypto\Random
copying lib\Crypto\Random\__init__.py -> build\lib.win-amd64-3.5\Crypto\Random
creating build\lib.win-amd64-3.5\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaAccumulator.py -> build\lib.win-amd64-3.5\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaGenerator.py -> build\lib.win-amd64-3.5\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\SHAd256.py -> build\lib.win-amd64-3.5\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\__init__.py -> build\lib.win-amd64-3.5\Crypto\Random\Fortuna
creating build\lib.win-amd64-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\fallback.py -> build\lib.win-amd64-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\nt.py -> build\lib.win-amd64-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\posix.py -> build\lib.win-amd64-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\rng_base.py -> build\lib.win-amd64-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\__init__.py -> build\lib.win-amd64-3.5\Crypto\Random\OSRNG
creating build\lib.win-amd64-3.5\Crypto\SelfTest
copying lib\Crypto\SelfTest\st_common.py -> build\lib.win-amd64-3.5\Crypto\SelfTest
copying lib\Crypto\SelfTest\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest
creating build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\common.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_AES.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC2.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC4.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_Blowfish.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_CAST.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES3.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_XOR.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Cipher
creating build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\common.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_HMAC.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD2.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD4.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD5.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_RIPEMD.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA224.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA256.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA384.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA512.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Hash
creating build\lib.win-amd64-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_AllOrNothing.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_chaffing.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_KDF.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_rfc1751.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Protocol
creating build\lib.win-amd64-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_DSA.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_ElGamal.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_importKey.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_RSA.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\PublicKey
creating build\lib.win-amd64-3.5\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_random.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_rpoolcompat.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test__UserFriendlyRNG.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random
creating build\lib.win-amd64-3.5\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaAccumulator.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaGenerator.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\Fortuna
creating build\lib.win-amd64-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_fallback.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_generic.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_nt.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_posix.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_winrandom.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Random\OSRNG
creating build\lib.win-amd64-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_asn1.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_Counter.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_number.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_winrandom.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Util
creating build\lib.win-amd64-3.5\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_15.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_pss.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\__init__.py -> build\lib.win-amd64-3.5\Crypto\SelfTest\Signature
creating build\lib.win-amd64-3.5\Crypto\Protocol
copying lib\Crypto\Protocol\AllOrNothing.py -> build\lib.win-amd64-3.5\Crypto\Protocol
copying lib\Crypto\Protocol\Chaffing.py -> build\lib.win-amd64-3.5\Crypto\Protocol
copying lib\Crypto\Protocol\KDF.py -> build\lib.win-amd64-3.5\Crypto\Protocol
copying lib\Crypto\Protocol\__init__.py -> build\lib.win-amd64-3.5\Crypto\Protocol
creating build\lib.win-amd64-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\DSA.py -> build\lib.win-amd64-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\ElGamal.py -> build\lib.win-amd64-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\pubkey.py -> build\lib.win-amd64-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\RSA.py -> build\lib.win-amd64-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\_DSA.py -> build\lib.win-amd64-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\_RSA.py -> build\lib.win-amd64-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\_slowmath.py -> build\lib.win-amd64-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\__init__.py -> build\lib.win-amd64-3.5\Crypto\PublicKey
creating build\lib.win-amd64-3.5\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_PSS.py -> build\lib.win-amd64-3.5\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win-amd64-3.5\Crypto\Signature
copying lib\Crypto\Signature\__init__.py -> build\lib.win-amd64-3.5\Crypto\Signature
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
warning: PCTBuildPy: byte-compiling is disabled, skipping.
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: [WinError 2] The system cannot find the file specified
Fabric 1.4.3 that old. Really old the current version is 1.10.2. The reason that you can't find that temporary folder is because it's created by pip when you try to install fabric and cleared out afterwards. You can however see the current version.py or if you check out the project you will be able to see it for the version you are trying to install. The current version code looks a bit different from what you posted:
print(get_version('all'))
However I can't figure out why the following should produce an error either.
print get_version('all')
Why don't you just install the latest version of Frabric by using this requirements file: https://github.com/fabric/fabric/blob/master/dev-requirements.txt ? chances are you probably have the requirements installed already. In that case just do
pip install Fabric
I have been having the same issue. e5c5 is correct. It is a pycrypto installation issue. Try installing pycrypto as a standalone pip installation. It will probably throw an error message and ask you to install Visual Studio c++.
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' 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

Error message in terminal when installing pip install xlwt

I downloaded pip via terminal and then after it was downloaded entered "pip install xlwt
and I get the following error message...
Nishons-MacBook-Pro:~ nishon$ pip install xlwt
Collecting xlwt
Downloading xlwt-0.7.5.tar.gz (115kB)
100% |################################| 118kB 737kB/s
Installing collected packages: xlwt
Running setup.py install for xlwt
error: could not create '/Library/Python/2.7/site-packages/xlwt': Permission denied
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/var/folders/x4/fr2l9c7d303146hw0j1hd16c0000gn/T/pip-build-e3QAt5/xlwt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/x4/fr2l9c7d303146hw0j1hd16c0000gn/T/pip-vjmP8d-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/xlwt
copying xlwt/__init__.py -> build/lib/xlwt
copying xlwt/antlr.py -> build/lib/xlwt
copying xlwt/BIFFRecords.py -> build/lib/xlwt
copying xlwt/Bitmap.py -> build/lib/xlwt
copying xlwt/Cell.py -> build/lib/xlwt
copying xlwt/Column.py -> build/lib/xlwt
copying xlwt/CompoundDoc.py -> build/lib/xlwt
copying xlwt/ExcelFormula.py -> build/lib/xlwt
copying xlwt/ExcelFormulaLexer.py -> build/lib/xlwt
copying xlwt/ExcelFormulaParser.py -> build/lib/xlwt
copying xlwt/ExcelMagic.py -> build/lib/xlwt
copying xlwt/Formatting.py -> build/lib/xlwt
copying xlwt/Row.py -> build/lib/xlwt
copying xlwt/Style.py -> build/lib/xlwt
copying xlwt/UnicodeUtils.py -> build/lib/xlwt
copying xlwt/Utils.py -> build/lib/xlwt
copying xlwt/Workbook.py -> build/lib/xlwt
copying xlwt/Worksheet.py -> build/lib/xlwt
creating build/lib/xlwt/doc
copying xlwt/doc/xlwt.html -> build/lib/xlwt/doc
creating build/lib/xlwt/examples
copying xlwt/examples/big-16Mb.py -> build/lib/xlwt/examples
copying xlwt/examples/big-35Mb.py -> build/lib/xlwt/examples
copying xlwt/examples/blanks.py -> build/lib/xlwt/examples
copying xlwt/examples/col_width.py -> build/lib/xlwt/examples
copying xlwt/examples/country.py -> build/lib/xlwt/examples
copying xlwt/examples/dates.py -> build/lib/xlwt/examples
copying xlwt/examples/format.py -> build/lib/xlwt/examples
copying xlwt/examples/formula_names.py -> build/lib/xlwt/examples
copying xlwt/examples/formulas.py -> build/lib/xlwt/examples
copying xlwt/examples/hyperlinks.py -> build/lib/xlwt/examples
copying xlwt/examples/image.py -> build/lib/xlwt/examples
copying xlwt/examples/merged.py -> build/lib/xlwt/examples
copying xlwt/examples/merged0.py -> build/lib/xlwt/examples
copying xlwt/examples/merged1.py -> build/lib/xlwt/examples
copying xlwt/examples/mini.py -> build/lib/xlwt/examples
copying xlwt/examples/num_formats.py -> build/lib/xlwt/examples
copying xlwt/examples/outline.py -> build/lib/xlwt/examples
copying xlwt/examples/panes.py -> build/lib/xlwt/examples
copying xlwt/examples/parse-fmla.py -> build/lib/xlwt/examples
copying xlwt/examples/protection.py -> build/lib/xlwt/examples
copying xlwt/examples/python.bmp -> build/lib/xlwt/examples
copying xlwt/examples/row_styles.py -> build/lib/xlwt/examples
copying xlwt/examples/row_styles_empty.py -> build/lib/xlwt/examples
copying xlwt/examples/simple.py -> build/lib/xlwt/examples
copying xlwt/examples/sst.py -> build/lib/xlwt/examples
copying xlwt/examples/unicode0.py -> build/lib/xlwt/examples
copying xlwt/examples/unicode1.py -> build/lib/xlwt/examples
copying xlwt/examples/unicode2.py -> build/lib/xlwt/examples
copying xlwt/examples/wsprops.py -> build/lib/xlwt/examples
copying xlwt/examples/xlwt_easyxf_simple_demo.py -> build/lib/xlwt/examples
running install_lib
creating /Library/Python/2.7/site-packages/xlwt
error: could not create '/Library/Python/2.7/site-packages/xlwt': Permission denied
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/var/folders/x4/fr2l9c7d303146hw0j1hd16c0000gn/T/pip-build-e3QAt5/xlwt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/x4/fr2l9c7d303146hw0j1hd16c0000gn/T/pip-vjmP8d-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/folders/x4/fr2l9c7d303146hw0j1hd16c0000gn/T/pip-build-e3QAt5/xlwt
Nishons-MacBook-Pro:~ nishon$
You need to use the sudo command when installing packages globally, as your user does not have write permissions to /Library/Python/2.7/site-packages. Try running
sudo pip install xlwt
instead.

Categories

Resources