[R-SIG-Finance] Problem while installing keras package

Baki UNAL b@k|un@| @end|ng |rom y@hoo@com
Wed Mar 27 22:06:34 CET 2019


Hello
I am trying to install keras package. But I got the following error:


> library(keras)> install_keras(method = "conda")Creating r-tensorflow conda environment for TensorFlow installation...Solving environment: ...working... failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
    Traceback (most recent call last):      File "C:\Users\user\ANACON~1\lib\site-packages\requests\adapters.py", line 412, in send        conn = self.get_connection(request.url, proxies)      File "C:\Users\user\ANACON~1\lib\site-packages\requests\adapters.py", line 305, in get_connection        proxy_url = parse_url(proxy)      File "C:\Users\user\ANACON~1\lib\site-packages\urllib3\util\url.py", line 199, in parse_url        raise LocationParseError(url)    urllib3.exceptions.LocationParseError: Failed to parse: proxy.server.com:port        During handling of the above exception, another exception occurred:        Traceback (most recent call last):      File "C:\Users\user\ANACON~1\lib\site-packages\conda\exceptions.py", line 819, in __call__        return func(*args, **kwargs)      File "C:\Users\user\ANACON~1\lib\site-packages\conda\cli\main.py", line 78, in _main        exit_code = do_call(args, p)      File "C:\Users\user\ANACON~1\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call        exit_code = getattr(module, func_name)(args, parser)      File "C:\Users\user\ANACON~1\lib\site-packages\conda\cli\main_create.py", line 11, in execute        install(args, parser, 'create')      File "C:\Users\user\ANACON~1\lib\site-packages\conda\cli\install.py", line 235, in install        force_reinstall=context.force,      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\solve.py", line 518, in solve_for_transaction        force_remove, force_reinstall)      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\solve.py", line 451, in solve_for_diff        final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\solve.py", line 180, in solve_final_state        index, r = self._prepare(prepared_specs)      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\solve.py", line 592, in _prepare        self.subdirs, prepared_specs)      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index        new_records = query_all(spec)      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\index.py", line 184, in query_all        return tuple(concat(future.result() for future in as_completed(futures)))      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\subdir_data.py", line 95, in query        self.load()      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\subdir_data.py", line 149, in load        _internal_state = self._load()      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\subdir_data.py", line 227, in _load        mod_etag_headers.get('_mod'))      File "C:\Users\user\ANACON~1\lib\site-packages\conda\core\subdir_data.py", line 437, in fetch_repodata_remote_request        timeout=timeout)      File "C:\Users\user\ANACON~1\lib\site-packages\requests\sessions.py", line 546, in get        return self.request('GET', url, **kwargs)      File "C:\Users\user\ANACON~1\lib\site-packages\requests\sessions.py", line 533, in request        resp = self.send(prep, **send_kwargs)      File "C:\Users\user\ANACON~1\lib\site-packages\requests\sessions.py", line 646, in send        r = adapter.send(request, **kwargs)      File "C:\Users\user\ANACON~1\lib\site-packages\requests\adapters.py", line 414, in send        raise InvalidURL(e, request=request)    requests.exceptions.InvalidURL: Failed to parse: proxy.server.com:port
`$ C:\Users\user\ANACON~1\Scripts\conda create --yes --name r-tensorflow python=3.6`
  environment variables:                 CIO_TEST=<not set>               CONDA_ROOT=C:\Users\user\ANACON~1                 HOMEPATH=\Users\user              HTTPS_PROXY=<set>               HTTP_PROXY=<set>          MOZ_PLUGIN_PATH=C:\Program Files (x86)\Foxit Software\Foxit Reader\plugins\                     PATH=C:\Program Files\R\R-3.5.3\bin\x64;C:\Program Files\Common                          Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common                          Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\                          Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\P                          rogram Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program                          Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files                          (x86)\Windows Live\Shared;C:\Program Files\WIDCOMM\Bluetooth                          Software\;C:\Program Files\WIDCOMM\Bluetooth                          Software\syswow64;C:\Program                          Files\MATLAB\R2011a\runtime\win64;C:\Program                          Files\MATLAB\R2011a\bin;C:\Program Files\R\R-3.2.1\bin\i386;C:\Program                          Files (x86)\NetLogo 5.1.0\jre\bin;C:\Users\user\AppData\Local\Programs                          \Python\Python37\Scripts\;C:\Users\user\AppData\Local\Programs\Python\                          Python37\;C:\Program Files\JetBrains\PyCharm Community Edition                          2018.3.5\bin;             PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\       REQUESTS_CA_BUNDLE=<not set>   RMARKDOWN_MATHJAX_PATH=C:/Program Files/RStudio/resources/mathjax-26        RS_RPOSTBACK_PATH=C:/Program Files/RStudio/bin/rpostback            SSL_CERT_FILE=<not set>
     active environment : None       user config file : C:\Users\user\Documents\.condarc populated config files :           conda version : 4.5.12    conda-build version : 3.17.6         python version : 3.7.1.final.0       base environment : C:\Users\user\ANACON~1  (writable)           channel URLs : https://repo.anaconda.com/pkgs/main/win-64                          https://repo.anaconda.com/pkgs/main/noarch                          https://repo.anaconda.com/pkgs/free/win-64                          https://repo.anaconda.com/pkgs/free/noarch                          https://repo.anaconda.com/pkgs/r/win-64                          https://repo.anaconda.com/pkgs/r/noarch                          https://repo.anaconda.com/pkgs/pro/win-64                          https://repo.anaconda.com/pkgs/pro/noarch                          https://repo.anaconda.com/pkgs/msys2/win-64                          https://repo.anaconda.com/pkgs/msys2/noarch          package cache : C:\Users\user\ANACON~1\pkgs                          C:\Users\user\AppData\Local\conda\conda\pkgs       envs directories : C:\Users\user\ANACON~1\envs                          C:\Users\user\AppData\Local\conda\conda\envs                          C:\Users\user\Documents\.conda\envs               platform : win-64             user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Windows/7 Windows/6.1.7601          administrator : False             netrc file : None           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.Upload did not complete.Error: Error 1 occurred creating conda environment r-tensorflow> 
How can I fix this problem.
Thanks


	[[alternative HTML version deleted]]



More information about the R-SIG-Finance mailing list