First off, let me say I'm a newbie to the Unix command line, so forgive me if anything sounds naive. I've installed pip on my machine and I'm trying to use it to install nose. I have a nose zip file in my downloads folder and I'm trying to install it into my sitepackages directory so I can begin using it for unit testing. In terminal, I typed in pip install nose and got what you see below.Any idea what's going on here? Do I need to use sudo or does the nose zip file need to be placed in another directory to be accessed by pip perhaps?...
Downloading/unpacking nose
Downloading nose-1.3.0.tar.gz (404kB): 404kB downloaded
Running setup.py egg_info for package nose
no previously-included directories found matching 'doc/.build'
Installing collected packages: nose
Running setup.py install for nose
error: could not create '/Library/Python/2.7/site-packages/nose': Permission denied
Complete output from command /usr/bin/python -c "import setuptools;__file__='/private/var/folders/yy/4vm2zy7j5_s32zv4rwdhn5500000gn/T/pip-build-mikaschiller/nose/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/yy/4vm2zy7j5_s32zv4rwdhn5500000gn/T/pip-YKue2u-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/nose
copying nose/__init__.py -> build/lib/nose
copying nose/__main__.py -> build/lib/nose
copying nose/case.py -> build/lib/nose
copying nose/commands.py -> build/lib/nose
copying nose/config.py -> build/lib/nose
copying nose/core.py -> build/lib/nose
copying nose/exc.py -> build/lib/nose
copying nose/failure.py -> build/lib/nose
copying nose/importer.py -> build/lib/nose
copying nose/inspector.py -> build/lib/nose
copying nose/loader.py -> build/lib/nose
copying nose/proxy.py -> build/lib/nose
copying nose/pyversion.py -> build/lib/nose
copying nose/result.py -> build/lib/nose
copying nose/selector.py -> build/lib/nose
copying nose/suite.py -> build/lib/nose
copying nose/twistedtools.py -> build/lib/nose
copying nose/util.py -> build/lib/nose
creating build/lib/nose/ext
copying nose/ext/__init__.py -> build/lib/nose/ext
copying nose/ext/dtcompat.py -> build/lib/nose/ext
creating build/lib/nose/plugins
copying nose/plugins/__init__.py -> build/lib/nose/plugins
copying nose/plugins/allmodules.py -> build/lib/nose/plugins
copying nose/plugins/attrib.py -> build/lib/nose/plugins
copying nose/plugins/base.py -> build/lib/nose/plugins
copying nose/plugins/builtin.py -> build/lib/nose/plugins
copying nose/plugins/capture.py -> build/lib/nose/plugins
copying nose/plugins/collect.py -> build/lib/nose/plugins
copying nose/plugins/cover.py -> build/lib/nose/plugins
copying nose/plugins/debug.py -> build/lib/nose/plugins
copying nose/plugins/deprecated.py -> build/lib/nose/plugins
copying nose/plugins/doctests.py -> build/lib/nose/plugins
copying nose/plugins/errorclass.py -> build/lib/nose/plugins
copying nose/plugins/failuredetail.py -> build/lib/nose/plugins
copying nose/plugins/isolate.py -> build/lib/nose/plugins
copying nose/plugins/logcapture.py -> build/lib/nose/plugins
copying nose/plugins/manager.py -> build/lib/nose/plugins
copying nose/plugins/multiprocess.py -> build/lib/nose/plugins
copying nose/plugins/plugintest.py -> build/lib/nose/plugins
copying nose/plugins/prof.py -> build/lib/nose/plugins
copying nose/plugins/skip.py -> build/lib/nose/plugins
copying nose/plugins/testid.py -> build/lib/nose/plugins
copying nose/plugins/xunit.py -> build/lib/nose/plugins
creating build/lib/nose/sphinx
copying nose/sphinx/__init__.py -> build/lib/nose/sphinx
copying nose/sphinx/pluginopts.py -> build/lib/nose/sphinx
creating build/lib/nose/tools
copying nose/tools/__init__.py -> build/lib/nose/tools
copying nose/tools/nontrivial.py -> build/lib/nose/tools
copying nose/tools/trivial.py -> build/lib/nose/tools
copying nose/usage.txt -> build/lib/nose
running install_lib
creating /Library/Python/2.7/site-packages/nose
error: could not create '/Library/Python/2.7/site-packages/nose': Permission denied
You'll need to preface pip install nose with sudo.
You are trying to install nose globally without having the necessary permissions.
You can either use sudo pip install nose, or, preferably, use virtual environments (https://virtualenv.readthedocs.org/en/latest/) for your development. With those, you can install and remove things without root permissions, you cannot mess up your global setup and you can use different versions of libraries within different projects you are working on.
If you try virtual environments, also take a look at virtualenvwrapper, that helps a lot in keeping them organized.
Related
I followed cocotb officials instructions to install package on windows with miniconda3 and :
conda install -c msys2 m2-base m2-make
but I'm blocked on this error :
(base) PS C:\Users\me> pip install cocotb
Collecting cocotb
Using cached cocotb-1.6.2.tar.gz (209 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cocotb
Building wheel for cocotb (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cocotb (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [86 lines of output]
Modelsim/Questa executable (vdbg) executable not found. No FLI interface will be available.
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\cocotb
copying cocotb\ANSI.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\binary.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\clock.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\config.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\decorators.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\handle.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\ipython_support.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\log.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\memdebug.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\outcomes.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\queue.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\regression.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\result.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\scheduler.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\triggers.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\utils.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\wavedrom.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\xunit_reporter.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\_py_compat.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\_sim_versions.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\_version.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\__init__.py -> build\lib.win-amd64-3.9\cocotb
creating build\lib.win-amd64-3.9\pygpi
copying pygpi\entry.py -> build\lib.win-amd64-3.9\pygpi
copying pygpi\__init__.py -> build\lib.win-amd64-3.9\pygpi
creating build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\array.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\logic.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\logic_array.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\range.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\__init__.py -> build\lib.win-amd64-3.9\cocotb\types
creating build\lib.win-amd64-3.9\cocotb\_vendor
copying cocotb\_vendor\distutils_version.py -> build\lib.win-amd64-3.9\cocotb\_vendor
copying cocotb\_vendor\__init__.py -> build\lib.win-amd64-3.9\cocotb\_vendor
creating build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
copying cocotb\_vendor\find_libpython\_version.py -> build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
copying cocotb\_vendor\find_libpython\__init__.py -> build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
copying cocotb\_vendor\find_libpython\__main__.py -> build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
creating build\lib.win-amd64-3.9\cocotb\share
creating build\lib.win-amd64-3.9\cocotb\share\makefiles
copying cocotb\share\makefiles\Makefile.deprecations -> build\lib.win-amd64-3.9\cocotb\share\makefiles
copying cocotb\share\makefiles\Makefile.inc -> build\lib.win-amd64-3.9\cocotb\share\makefiles
copying cocotb\share\makefiles\Makefile.sim -> build\lib.win-amd64-3.9\cocotb\share\makefiles
creating build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.activehdl -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.cvc -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.ghdl -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.icarus -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.ius -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.modelsim -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.questa -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.riviera -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.vcs -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.verilator -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.xcelium -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
creating build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\cocotb_utils.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\embed.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\exports.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\gpi.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\gpi_logging.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\py_gpi_logging.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\sv_vpi_user.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vhpi_user.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vhpi_user_ext.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vpi_user.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vpi_user_ext.h -> build\lib.win-amd64-3.9\cocotb\share\include
creating build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\.gitignore -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\aldec.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\ghdl.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\icarus.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\modelsim.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\README.md -> build\lib.win-amd64-3.9\cocotb\share\def
creating build\lib.win-amd64-3.9\cocotb\share\lib
creating build\lib.win-amd64-3.9\cocotb\share\lib\verilator
copying cocotb\share\lib\verilator\verilator.cpp -> build\lib.win-amd64-3.9\cocotb\share\lib\verilator
running build_ext
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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cocotb
Failed to build cocotb
ERROR: Could not build wheels for cocotb, which is required to install pyproject.toml-based projects
(base) PS C:\Users\me>
I tried with global option :
pip install --global-option build_ext --global-option --compiler=mingw32 cocotb
With exactly the same error.
It seems to be a verilator install error. I don't need verilator, maybe there is an option to not install it ?
I finally managed to install cocotb with following procedure on msys2.
Download and install msys2.
update msys2 :
$ pacman -Syu
[close then re-launch terminal]
$ pacman -Su
Install Gcc and git
$ pacman -S –needed base-devel mingw-w64-x86_64-toolchain
$ pacman -S git
Install GHDL
$ pacman -S mingw-w64-x86_64-ghdl-llvm
Install gtkwave
$ pacman -S mingw-w64-x86_64-gtkwave
Install python3
$ pacman -S mingw-w64-x86_64-python-scipy mingw-w64-x86_64-python-matplotlib mingw-w64-x86_64-python-numpy
$ pacman -S --needed make mingw-w64-x86_64-gcc mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-setuptools mingw-w64-x86_64-python3-wheel
Close terminal then open «MSYS2 MinGW 64-bit» from windows start menu.
And finally install cocotb with pip install :
$ pip install --no-build-isolation cocotb
$ pip install --no-build-isolation pytest
$ pip install --no-build-isolation cocotbext-axi
then enjoy classical cocotb makefile to simulate VHDL with GHDL. And visualize vcd traces with gtkwave.
I tested this procedure on other windows computer with succes.
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.
I'm trying to install a library which relies on h5py.
However, when I try to install it I get this error:
Collecting h5py Using cached h5py-3.1.0.tar.gz (371 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done
Preparing wheel metadata ... done Collecting markdown>=2.6.8 Using cached Markdown-3.3.3-py3-none-any.whl (96 kB) Collecting werkzeug>=0.11.10 Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB) Requirement already satisfied, skipping upgrade: setuptools in c:\users\user\desktop\projects\python\mlagents\venv\lib\site-packages (from protobuf>=3.6.1-
tensorflow==1.12.0) (50.3.2) Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed. Building wheels for collected packages: h5py Building wheel for h5py (PEP 517) ... error ERROR: Command errored out with exit status 1: command: 'c:\users\user\desktop\projects\python\mlagents\venv\scripts\python.exe' 'c:\users\user\desktop\projects\python\mlagents\venv\lib\site-packages \pip_vendor\pep517_in_process.py' build_wheel 'C:\Users\USER\AppData\Local\Temp\tmpf62jt8ch'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-7diegpjl\h5py Complete output (70 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_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 running build_ext Loading library to get version: hdf5.dll error: Unable to load dependency HDF5, make sure HDF5 is installed properly error: Could not find module 'hdf5.dll'. Try using the full path with constructor syntax.
ERROR: Failed building wheel for h5py Failed to build h5py ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
I realize from that that i"m missing HDF5 however I could not find a proper way to install it.
And even if I do, I have no idea where h5py wants its dll to be in order to be read.
Edit
I am using Python 3.8.0
And if someone wonders what library I tried to install is tensorflow.
pip install tensorflow
is not working for me so I used the direct wheel file for version 1.14.0
Appreciating your help :)
I'm using Python 3.9 on Apple Silicon and faced with the same error.
I fixed it by the following procedures:
brew install hdf5
git clone https://github.com/h5py/h5py
Open setup_configure.py and modify this line:
- default_path = 'libhdf5.dylib'
+ default_path = '/opt/homebrew/lib/libhdf5.dylib'
H5PY_SETUP_REQUIRES=0 python3 setup.py build
python3 -m pip install . --no-build-isolation
This is because of the major update (python 3.9) has so many bugs. I tried to install opencv module in python and it prompts the same error, you have two options;
you can download the older version of python like python 3.8/7, which can support H5PY.
Be patient and wait for python to fix all the bugs, it will be all good at mid december or earlier.
hope it helped ya! :)
Downgrade to older versions of python until you can install keras(i guess this is where you are facing the problem). Went from python 3.8 to 3.7 and at last to 3.6.8, where i did not face any errors like the previous versions. Nothing to worry as this python version supports almost every library as the latest versions.
This is strange because I've seen people install tensorflow on versions newer than Python 3.8.. but I found somewhere that H5PY is not compatible with python 3.8
and that I need to downgrade...
However, I think it's because older versions of tensorflow do work for me, but what I do requires at least 1.14.0...
I'll try to downgrade python more(to python 3.7.) and update you on it
EDIT
It's working. I am using Python 3.7.2 and everything works perfectly!
I didn't even have to get the wheel file for tensorflow I could just do pip install tensorflow normally.
Thanks for everyone who commented :)
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
I am trying to install pysqlite, but getting the below error-
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\pysqlite2
copying lib\dbapi2.py -> build\lib.win-amd64-2.7\pysqlite2
copying lib\dump.py -> build\lib.win-amd64-2.7\pysqlite2
copying lib\__init__.py -> build\lib.win-amd64-2.7\pysqlite2
creating build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\dbapi.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\dump.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\factory.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\hooks.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\regression.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\transactions.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\types.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\userfunctions.py -> build\lib.win-amd64-2.7\pysqlite2\test
copying lib\test\__init__.py -> build\lib.win-amd64-2.7\pysqlite2\test
creating build\lib.win-amd64-2.7\pysqlite2\test\py25
copying lib\test\py25\py25tests.py -> build\lib.win-amd64-2.7\pysqlite2\test\py25
copying lib\test\py25\__init__.py -> build\lib.win-amd64-2.7\pysqlite2\test\py25
running build_ext
building 'pysqlite2._sqlite' extension
error: Unable to find vcvarsall.bat
I have tried pip also.. but no luck !!
Can anyone please suggest the how to trace this error ? Thanks !
You will ned to use a compiled binaries, you can download yours here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pysqlite
Keep in mine that this is an Unofficial Windows Binaries, but it is works for me.