-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Description
Hi,
I am trying to use keras with CNTK backend. Things work well in Python, meaning I can import Keras and it loads CNTK module successfully. When switching to R session, while I can load 'keras' library (
I have set environment variables, KERAS_BACKEDN='cntk' and KERAS_PYTHON='<path_to_my_python_bin>', before loading keras R library) but when I did 'backend()', it popped up error as following:
Error in py_module_import(module, convert = convert) :
ImportError: cannot import name 'HTTPSHandler'
Detailed traceback:
File "/anaconda/envs/py35/lib/python3.5/site-packages/keras/__init__.py", line 3, in <module>
from . import activations
File "/anaconda/envs/py35/lib/python3.5/site-packages/keras/activations.py", line 4, in <module>
from . import backend as K
File "/anaconda/envs/py35/lib/python3.5/site-packages/keras/backend/__init__.py", line 77, in <module>
from .cntk_backend import *
File "/anaconda/envs/py35/lib/python3.5/site-packages/keras/backend/cntk_backend.py", line 2, in <module>
import cntk as C
File "/anaconda/envs/py35/lib/python3.5/site-packages/cntk/__init__.py", line 34, in <module>
from .sample_installer import install_samples
File "/anaconda/envs/py35/lib/python3.5/site-packages/cntk/sample_installer.py", line 13, in <module>
import pip
File "/anaconda/envs/py35/lib/python3.5/site-packages/pip/__init__.py", line 16, in <module>
from pip.vcs import git, mercurial,
In addition: Warning message:
In stop(e, call. = FALSE) : additional arguments ignored in stop()
- My OS is Linux Ubuntu 16.04.2 LTS.
- Python 3.5.
- R 3.3.3
Any advice? Many thanks!
Metadata
Metadata
Assignees
Labels
No labels