Closed elafmusa closed 2 years ago
Hello
I am not a Windows user but this seems to be the problem:
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/
AT is distributed in 2 formats: a "source" distribution (python and C files, which have to be compiled upon installation), and "pre-compiled", so-called binary, distribution (*.whl files). These have been prepared for most platforms. When you call pip install --user accelerator-toolbox
, it looks 1st for a binary version, if one corresponds to your system, and if not, for the source distribution. I am surprised that in your example it did not take the pre-compiled one, since a Windows distribution exists. May be your system is older than the one used on GitHub to compile. For confirmation, could you try pip install --user --only-binary :all: accelerator-toolbox
, which restricts to binary distribution ? Anyway, if it appears that no pre-compiled version fits your machine, you will indeed have to use the source distribution, which requires you to install the Visual C++ compile as mentioned in the error message.
Hello everyone,
I'm move from using Jupyter notebook to PyCharm. I need to install the accelerator toolbox there, i used the normal PyCharm packing installation to look for the AT, When i install it i got the error massage (below) , i tried also to use the command " pip install --user accelerator-toolbox " in the PyCharm terminal but i got the error "pip install --user accelerator-toolbox SyntaxError: invalid syntax". Could you plese help me installing the AT.
**" Collecting accelerator-toolbox Using cached accelerator-toolbox-0.2.1.tar.gz (151 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Requirement already satisfied: numpy>=1.16.6 in c:\users\musa\appdata\local\programs\python\python310\lib\site-packages (from accelerator-toolbox) (1.22.1) Requirement already satisfied: scipy>=0.16 in c:\users\musa\appdata\local\programs\python\python310\lib\site-packages (from accelerator-toolbox) (1.7.3) Using legacy 'setup.py install' for accelerator-toolbox, since package 'wheel' is not installed. Installing collected packages: accelerator-toolbox Running setup.py install for accelerator-toolbox: started Running setup.py install for accelerator-toolbox: finished with status 'error'
ERROR: Command errored out with exit status 1: 'C:\Users\musa\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\musa\AppData\Local\Temp\pip-install-7iujpsb4\accelerator-toolbox_6e48c669af4b4b3aa04266b2db4b23a8\setup.py'"'"'; file='"'"'C:\Users\musa\AppData\Local\Temp\pip-install-7iujpsb4\accelerator-toolbox_6e48c669af4b4b3aa04266b2db4b23a8\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\musa\AppData\Local\Temp\pip-record-dzdgdou0\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\musa\AppData\Roaming\Python\Python310\Include\accelerator-toolbox' Check the logs for full command output**