Unable to install Python Libraries

I am getting the following error when setting up an environment with machine learning libraries specific to Quantra Environment using the command “conda env create -f Learn algorithmic trading from top institutions and experts | Quantra by QuantInsti. Appreciate suggestions on what should (can) I do to resolve the error?



++++++++++++++++++++++++++++++++++++++++++++++++



running build_ext

  building 'bottleneck.reduce' extension

  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": Microsoft C++ Build Tools - Visual Studio

  ----------------------------------------

  ERROR: Failed building wheel for bottleneck

    ERROR: Command errored out with exit status 1:

     command: 'C:\Users\adama\anaconda3\envs\quantra_py\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\adama\AppData\Local\Temp\pip-install-mupq8mvb\bottleneck_294aa4ff04254806a3a0fb444f2f6814\setup.py'"'"'; file='"'"'C:\Users\adama\AppData\Local\Temp\pip-install-mupq8mvb\bottleneck_294aa4ff04254806a3a0fb444f2f6814\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\adama\AppData\Local\Temp\pip-record-2mrt6ygu\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\adama\anaconda3\envs\quantra_py\Include\bottleneck'

         cwd: C:\Users\adama\AppData\Local\Temp\pip-install-mupq8mvb\bottleneck_294aa4ff04254806a3a0fb444f2f6814<br />
    Complete output (8 lines):

    running install

    C:\Users\adama\anaconda3\envs\quantra_py\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

      warnings.warn(

    running build

    running build_py

    running build_ext

    building 'bottleneck.reduce' extension

    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": Microsoft C++ Build Tools - Visual Studio

    ----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Users\adama\anaconda3\envs\quantra_py\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\adama\AppData\Local\Temp\pip-install-mupq8mvb\bottleneck_294aa4ff04254806a3a0fb444f2f6814\setup.py'"'"'; file='"'"'C:\Users\adama\AppData\Local\Temp\pip-install-mupq8mvb\bottleneck_294aa4ff04254806a3a0fb444f2f6814\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\adama\AppData\Local\Temp\pip-record-2mrt6ygu\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\adama\anaconda3\envs\quantra_py\Include\bottleneck' Check the logs for full command output.



failed



CondaEnvException: Pip failed

Hi Anish Adamane, 



This error can be solved by updating the Microsoft Visual C++ to version 14.0 or greater.



Please follow the instructions given under "Troubleshooting Tips For Setting Environment" section in the QuantInsti blog post -https://blog.quantinsti.com/set-up-python-system/.



Thank you,

Varun Kumar