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.
Related
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.
Im trying to install Lxml
Error Message: ERROR: Command errored out with exit status 1:
command: 'c:\users\hp\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\HP\AppData\Local\Temp\pip-install-qgxmbfo1\lxml\setup.py'"'"'; file='"'"'C:\Users\HP\AppData\Local\Temp\pip-install-qgxmbfo1\lxml\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\HP\AppData\Local\Temp\pip-record-365qwxej\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\hp\appdata\local\programs\python\python39\Include\lxml'
cwd: C:\Users\HP\AppData\Local\Temp\pip-install-qgxmbfo1\lxml
Complete output (74 lines):
Building lxml version 4.5.2.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\lxml
copying src\lxml\builder.py -> build\lib.win-amd64-3.9\lxml
copying src\lxml\cssselect.py -> build\lib.win-amd64-3.9\lxml
copying src\lxml\doctestcompare.py -> build\lib.win-amd64-3.9\lxml
copying src\lxml\ElementInclude.py -> build\lib.win-amd64-3.9\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-3.9\lxml
copying src\lxml\sax.py -> build\lib.win-amd64-3.9\lxml
copying src\lxml\usedoctest.py -> build\lib.win-amd64-3.9\lxml
copying src\lxml_elementpath.py -> build\lib.win-amd64-3.9\lxml
copying src\lxml_init_.py -> build\lib.win-amd64-3.9\lxml
creating build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes_init_.py -> build\lib.win-amd64-3.9\lxml\includes
creating build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html\builder.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html\clean.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html\defs.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html\diff.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html_diffcommand.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html_html5builder.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html_setmixin.py -> build\lib.win-amd64-3.9\lxml\html
copying src\lxml\html_init_.py -> build\lib.win-amd64-3.9\lxml\html
creating build\lib.win-amd64-3.9\lxml\isoschematron
copying src\lxml\isoschematron_init_.py -> build\lib.win-amd64-3.9\lxml\isoschematron
copying src\lxml\etree.h -> build\lib.win-amd64-3.9\lxml
copying src\lxml\etree_api.h -> build\lib.win-amd64-3.9\lxml
copying src\lxml\lxml.etree.h -> build\lib.win-amd64-3.9\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-3.9\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes_init_.pxd -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-3.9\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-3.9\lxml\includes
creating build\lib.win-amd64-3.9\lxml\isoschematron\resources
creating build\lib.win-amd64-3.9\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\rng
creating build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl
creating build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\hp\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\HP\AppData\Local\Temp\pip-install-qgxmbfo1\lxml\setup.py'"'"'; file='"'"'C:\Users\HP\AppData\Local\Temp\pip-install-qgxmbfo1\lxml\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\HP\AppData\Local\Temp\pip-record-365qwxej\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\hp\appdata\local\programs\python\python39\Include\lxml' Check the logs for full command output.
I really dont know what to do pls help
Yesterday i upgraded to Python 3.9 and the pip install lxml also failed.
But i managers to install it from a downloaded whl file. Can not remember from where i downloaded it, but you should be avle to find the answer somewhere on stackoverflow .
The lxml package installation seems to work fine for me with bs4 👍
Maybe it was from here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
lxml‑4.5.2‑cp39‑cp39‑win_amd64.whl <---
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.
What version of gRPC and what language are you using?
lastest
What operating system (Linux, Windows,...) and version?
Windows 10 Server
What runtime / compiler are you using (e.g. python version or version of gcc) python
What did you do?
Tried to install it from pip install command
ERROR: Command errored out with exit status 1: command:
'c:\users\administrator\appdata\local\programs\python\python38-32\python.exe'
-u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\setup.py'"'"';
file='"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\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\Administrator\AppData\Local\Temp\2\pip-record-nkilt9xu\install-record.txt'
--single-version-externally-managed --compile
cwd: C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\
Complete output (66 lines): Found cython-generated files... running
install running build running build_py running build_project_metadata
creating python_build creating python_build\lib.win32-3.8 creating
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_auth.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_channel.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_common.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_compression.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_grpcio_metadata.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_interceptor.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_plugin_wrapping.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_server.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_utilities.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc__init__.py -> python_build\lib.win32-3.8\grpc
creating python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta\implementations.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta\interfaces.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta\utilities.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta_client_adaptations.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta_metadata.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta_server_adaptations.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta__init__.py ->
python_build\lib.win32-3.8\grpc\beta creating
python_build\lib.win32-3.8\grpc\experimental copying
src\python\grpcio\grpc\experimental\gevent.py ->
python_build\lib.win32-3.8\grpc\experimental copying
src\python\grpcio\grpc\experimental\session_cache.py ->
python_build\lib.win32-3.8\grpc\experimental copying
src\python\grpcio\grpc\experimental__init__.py ->
python_build\lib.win32-3.8\grpc\experimental creating
python_build\lib.win32-3.8\grpc\framework copying
src\python\grpcio\grpc\framework__init__.py ->
python_build\lib.win32-3.8\grpc\framework creating
python_build\lib.win32-3.8\grpc_cython copying
src\python\grpcio\grpc_cython__init__.py ->
python_build\lib.win32-3.8\grpc_cython creating
python_build\lib.win32-3.8\grpc\experimental\aio copying
src\python\grpcio\grpc\experimental\aio_channel.py ->
python_build\lib.win32-3.8\grpc\experimental\aio copying
src\python\grpcio\grpc\experimental\aio_server.py ->
python_build\lib.win32-3.8\grpc\experimental\aio copying
src\python\grpcio\grpc\experimental\aio__init__.py ->
python_build\lib.win32-3.8\grpc\experimental\aio creating
python_build\lib.win32-3.8\grpc\framework\common copying
src\python\grpcio\grpc\framework\common\cardinality.py ->
python_build\lib.win32-3.8\grpc\framework\common copying
src\python\grpcio\grpc\framework\common\style.py ->
python_build\lib.win32-3.8\grpc\framework\common copying
src\python\grpcio\grpc\framework\common__init__.py ->
python_build\lib.win32-3.8\grpc\framework\common creating
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\abandonment.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\callable_util.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\future.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\logging_pool.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\stream.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\stream_util.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation__init__.py ->
python_build\lib.win32-3.8\grpc\framework\foundation creating
python_build\lib.win32-3.8\grpc\framework\interfaces copying
src\python\grpcio\grpc\framework\interfaces__init__.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces creating
python_build\lib.win32-3.8\grpc\framework\interfaces\base copying
src\python\grpcio\grpc\framework\interfaces\base\base.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\base copying
src\python\grpcio\grpc\framework\interfaces\base\utilities.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\base copying
src\python\grpcio\grpc\framework\interfaces\base__init__.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\base creating
python_build\lib.win32-3.8\grpc\framework\interfaces\face copying
src\python\grpcio\grpc\framework\interfaces\face\face.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\face copying
src\python\grpcio\grpc\framework\interfaces\face\utilities.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\face copying
src\python\grpcio\grpc\framework\interfaces\face__init__.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\face creating
python_build\lib.win32-3.8\grpc_cython_cygrpc copying
src\python\grpcio\grpc_cython_cygrpc__init__.py ->
python_build\lib.win32-3.8\grpc_cython_cygrpc creating
python_build\lib.win32-3.8\grpc_cython_credentials copying
src\python\grpcio\grpc_cython_credentials\roots.pem ->
python_build\lib.win32-3.8\grpc_cython_credentials running build_ext
error: [WinError 2] Impossibile trovare il file specificato
---------------------------------------- ERROR: Command errored out with exit status 1:
'c:\users\administrator\appdata\local\programs\python\python38-32\python.exe'
-u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\setup.py'"'"';
file='"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\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\Administrator\AppData\Local\Temp\2\pip-record-nkilt9xu\install-record.txt'
--single-v
ersion-externally-managed --compile Check the logs for full command output.
Expected to install it as it did on my personal computer
gRPC team has an issue to track adding 3.8 pre-compiled wheels https://github.com/grpc/grpc/issues/20615. Currently, 3.8 wheels are only available in Linux, but not for Windows or macOS. I would recommend:
Switch to CPython 3.7;
Help the community by digging into the compilation error.
I am unable to install M2Crypto on OSX 10.11.1. I have swig and pcre already installed.
Below is the trace from my installation. Please help !!
$ pip install M2Crypto
Collecting M2Crypto
Using cached M2Crypto-0.22.5.tar.gz
Installing collected packages: M2Crypto
Running setup.py install for M2Crypto
Complete output from command /Users/nitish/edmarket/bin/python3.4 -c "import setuptools, tokenize;__file__='/private/var/folders/zw/142ltd2d3t7f8vx3sk_v_fyw0000gn/T/pip-build-wdu6z7dn/M2Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zw/142ltd2d3t7f8vx3sk_v_fyw0000gn/T/pip-hgwirik3-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/nitish/edmarket/include/site/python3.4/M2Crypto:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.4
creating build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/__init__.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/ASN1.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/AuthCookie.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/BIO.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/BN.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/callback.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/DH.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/DSA.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/EC.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/Engine.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/Err.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/EVP.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/httpslib.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/m2.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/m2urllib.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/m2urllib2.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/m2xmlrpclib.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/Rand.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/RC4.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/RSA.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/threading.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/util.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/X509.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
creating build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/__init__.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/cb.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Context.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Session.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
creating build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/__init__.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/constants.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/packet.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/PublicKey.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/RSA.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/Users/nitish/edmarket/include -I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -I/usr/include -includeall -modern -builtin -outdir build/lib.macosx-10.6-intel-3.4/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:45: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
Use below command to resolve you problem
env LDFLAGS="-L$(brew --prefix openssl)/lib" \
CFLAGS="-I$(brew --prefix openssl)/include" \
SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl)/include" \
pip install M2Crypto
You need to install openssl-dev package.