Impossible to import tensorflow with spyder anaconda - python

I am trying to import tensorflow without success. The installation of each packages is done with Anaconda Navigator or in the Anaconda prompt command with conda install *package* in the right env that I've created previously.
For the test I found this script usefull: https://www.southampton.ac.uk/~fangohr/blog/installation-of-python-spyder-numpy-sympy-scipy-pytest-matplotlib-via-anaconda.html#running-the-tests-with-spyder
and all others packages seems to work.
Something is wrong in the installation of tensorflow.
import tensorflow as tf
Output in the console:
import tensorflow as tf
Traceback (most recent call last):
File "<ipython-input-17-64156d691fe5>", line 1, in <module>
import tensorflow as tf
File "C:\Users\Megaport\Anaconda3\envs\venv\lib\site-packages\tensorflow\__init__.py", line 34, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\Megaport\Anaconda3\envs\venv\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Megaport\Anaconda3\envs\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Megaport\Anaconda3\envs\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Megaport\Anaconda3\envs\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Megaport\Anaconda3\envs\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Megaport\Anaconda3\envs\venv\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Megaport\Anaconda3\envs\venv\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: Impossibile trovare il modulo specificato.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
Thanks in advance.
this is the list of what is installed in the env. OS x64
All the solutions in stackoverflow (avx support of the cpu, microsoft c++ 2015, python path) have already been tried
# packages in environment at C:\Users\Megaport\Anaconda3\envs\venv:
#
# Name Version Build Channel
_py-xgboost-mutex 2.0 cpu_0
_tflow_select 2.3.0 mkl
absl-py 0.8.0 pypi_0 pypi
astor 0.8.0 pypi_0 pypi
atomicwrites 1.3.0 py37_1
attrs 19.1.0 py37_1
backcall 0.1.0 py37_0
blas 1.0 mkl
ca-certificates 2019.5.15 1
certifi 2019.6.16 py37_1
cloudpickle 1.2.1 py_0
colorama 0.4.1 py37_0
cycler 0.10.0 py37_0
decorator 4.4.0 py37_1
fastcache 1.1.0 py37he774522_0
freetype 2.9.1 ha9979f8_1
gast 0.2.2 pypi_0 pypi
google-pasta 0.1.7 pypi_0 pypi
grpcio 1.23.0 pypi_0 pypi
h5py 2.10.0 pypi_0 pypi
hdf5 1.10.2 hac2f561_1
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
importlib_metadata 0.19 py37_0
intel-openmp 2019.4 245
ipykernel 5.1.2 py37h39e3cac_0
ipython 7.8.0 py37h39e3cac_0
ipython_genutils 0.2.0 py37_0
jedi 0.15.1 py37_0
joblib 0.13.2 py37_0
jpeg 9b hb83a4c4_2
jupyter_client 5.3.1 py_0
jupyter_core 4.5.0 py_0
keras-applications 1.0.8 py_0
keras-base 2.2.4 py37_0
keras-preprocessing 1.1.0 py_1
kiwisolver 1.1.0 py37ha925a31_0
libmklml 2019.0.5 0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.8.0 h7bd577a_0
libsodium 1.0.16 h9d3ae62_0
libxgboost 0.90 0
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gmp 6.1.0 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
markdown 3.1.1 py37_0
matplotlib 3.1.1 py37hc8f65d3_0
mkl 2019.4 245
mkl-service 2.0.2 py37he774522_0
mkl_fft 1.0.14 py37h14836fe_0
mkl_random 1.0.2 py37h343c172_0
more-itertools 7.2.0 py37_0
mpmath 1.1.0 py37_0
msys2-conda-epoch 20160418 1
numpy 1.17.2 pypi_0 pypi
numpy-base 1.16.4 py37hc3f5095_0
openssl 1.1.1c he774522_1
opt-einsum 3.0.1 pypi_0 pypi
packaging 19.1 py37_0
pandas 0.25.1 py37ha925a31_0
parso 0.5.1 py_0
pickleshare 0.7.5 py37_0
pip 19.2.2 py37_0
pluggy 0.12.0 py_0
prompt_toolkit 2.0.9 py37_0
protobuf 3.9.1 pypi_0 pypi
py 1.8.0 py37_0
py-xgboost 0.90 py37_0
py-xgboost-cpu 0.90 py37_0
pygments 2.4.2 py_0
pyparsing 2.4.2 py_0
pyqt 5.9.2 py37h6538335_2
pytest 5.0.1 py37_0
python 3.7.4 h5263a28_0
python-dateutil 2.8.0 py37_0
pytz 2019.2 py_0
pyyaml 5.1.2 py37he774522_0
pyzmq 18.1.0 py37ha925a31_0
qt 5.9.7 vc14h73c81de_0
scikit-learn 0.21.2 py37h6288b17_0
scipy 1.3.1 py37h29ff71c_0
setuptools 41.2.0 pypi_0 pypi
sip 4.19.8 py37h6538335_0
six 1.12.0 pypi_0 pypi
spyder-kernels 0.5.1 py37_0
sqlite 3.29.0 he774522_0
sympy 1.4 py37_0
tb-nightly 1.15.0a20190806 pypi_0 pypi
tensorboard 1.14.0 py37he3c9ec2_0
tensorflow 1.14.0 mkl_py37h7908ca0_0
tensorflow-base 1.14.0 mkl_py37ha978198_0
tensorflow-estimator 1.14.0 py_0
termcolor 1.1.0 pypi_0 pypi
tornado 6.0.3 py37he774522_0
traitlets 4.3.2 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_0
wcwidth 0.1.7 py37_0
werkzeug 0.15.6 pypi_0 pypi
wheel 0.33.6 pypi_0 pypi
wincertstore 0.2 py37_0
wrapt 1.11.2 py37he774522_0
yaml 0.1.7 hc54c509_2
zeromq 4.3.1 h33f27b4_3
zipp 0.5.2 py_0
zlib 1.2.11 h62dcd97_3

Installing spyder again inside the environment was the solution.

Related

How do I solve the problem of " 'mssql' isn't an available database backend or couldn't be imported" on windows?

I ran into this problem when trying to deploy some django project on a Windows 10 computer.
Every time I try to access localhost, it displays this error:
Error occurred while reading WSGI handler:
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\site-packages\django\db\utils.py", line 113, in load_backendreturn import_module("%s.base" % backend_name)
File "c:\programdata\anaconda3\lib\importlib\__init__.py", line 127, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_importFile "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mssql'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\XXX\AppData\Roaming\Python\Python38\site-packages\wfastcgi.py", line 791, in mainenv, handler = read_wsgi_handler(response.physical_path)
File "C:\Users\XXX\AppData\Roaming\Python\Python38\site-packages\wfastcgi.py", line 633, in read_wsgi_handlerhandler = get_wsgi_handler(os.getenv("WSGI_HANDLER"))
File "C:\Users\XXX\AppData\Roaming\Python\Python38\site-packages\wfastcgi.py", line 600, in get_wsgi_handlerhandler = __import__(module_name, fromlist=[name_list[0][0]])
File "C:\inetpub\wwwroot\ScenarioAnalysis\ScenarioAnalysis\wsgi.py", line 16, in application = get_wsgi_application()
File "c:\programdata\anaconda3\lib\site-packages\django\core\wsgi.py", line 12, in get_wsgi_applicationdjango.setup(set_prefix=False)
File "c:\programdata\anaconda3\lib\site-packages\django\__init__.py", line 24, in setupapps.populate(settings.INSTALLED_APPS)
File "c:\programdata\anaconda3\lib\site-packages\django\apps\registry.py", line 116, in populateapp_config.import_models()
File "c:\programdata\anaconda3\lib\site-packages\django\apps\config.py", line 269, in import_modelsself.models_module = import_module(models_module_name)
File "c:\programdata\anaconda3\lib\importlib\__init__.py", line 127, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)
File "c:\programdata\anaconda3\lib\site-packages\django\contrib\auth\models.py", line 3, in from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
File "c:\programdata\anaconda3\lib\site-packages\django\contrib\auth\base_user.py", line 49, in class AbstractBaseUser(models.Model):
File "c:\programdata\anaconda3\lib\site-packages\django\db\models\base.py", line 141, in __new__new_class.add_to_class("_meta", Options(meta, app_label))
File "c:\programdata\anaconda3\lib\site-packages\django\db\models\base.py", line 369, in add_to_classvalue.contribute_to_class(cls, name)
File "c:\programdata\anaconda3\lib\site-packages\django\db\models\options.py", line 231, in contribute_to_classself.db_table, connection.ops.max_name_length()
File "c:\programdata\anaconda3\lib\site-packages\django\utils\connection.py", line 15, in __getattr__return getattr(self._connections[self._alias], item)
File "c:\programdata\anaconda3\lib\site-packages\django\utils\connection.py", line 62, in __getitem__conn = self.create_connection(alias)
File "c:\programdata\anaconda3\lib\site-packages\django\db\utils.py", line 193, in create_connectionbackend = load_backend(db["ENGINE"])
File "c:\programdata\anaconda3\lib\site-packages\django\db\utils.py", line 126, in load_backend
raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: 'mssql' isn't an available database backend or couldn't be imported. Check the above exception.
To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of:'mysql', 'oracle', 'postgresql', 'sqlite3' StdOut: StdErr:
A few things I have tried:
Editing settings.py: change "ENGINE": 'mssql' to pyodbc related values. It does not work.
Installing django-mssql related packages: I found that python in conda is used so I suspected that packages are not installed for conda, here are my findings:
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py38_0
alabaster 0.7.12 pyhd3eb1b0_0
anaconda 2021.05 py38_0
anaconda-client 1.7.2 py38_0
anaconda-navigator 2.0.3 py38_0
anaconda-project 0.9.1 pyhd3eb1b0_1
anyio 2.2.0 py38haa95532_2
appdirs 1.4.4 py_0
argh 0.26.2 py38_0
argon2-cffi 20.1.0 py38h2bbff1b_1
asgiref 3.5.2 py38haa95532_0
asn1crypto 1.4.0 py_0
astroid 2.5 py38haa95532_1
astropy 4.2.1 py38h2bbff1b_1
async_generator 1.10 pyhd3eb1b0_0
atomicwrites 1.4.0 py_0
attrs 20.3.0 pyhd3eb1b0_0
autopep8 1.5.6 pyhd3eb1b0_0
babel 2.9.0 pyhd3eb1b0_0
backcall 0.2.0 pyhd3eb1b0_0
backports 1.0 pyhd3eb1b0_2
backports.functools_lru_cache 1.6.4 pyhd3eb1b0_0
backports.shutil_get_terminal_size 1.0.0 pyhd3eb1b0_3
backports.tempfile 1.0 pyhd3eb1b0_1
backports.weakref 1.0.post1 py_1
backports.zoneinfo 0.2.1 py38h2bbff1b_0
bcrypt 3.2.0 py38he774522_0
beautifulsoup4 4.9.3 pyha847dfd_0
bitarray 1.9.2 py38h2bbff1b_1
bkcharts 0.2 py38_0
black 19.10b0 py_0
blas 1.0 mkl
bleach 3.3.0 pyhd3eb1b0_0
blosc 1.21.0 h19a0ad4_0
bokeh 2.3.2 py38haa95532_0
boto 2.49.0 py38_0
bottleneck 1.3.2 py38h2a96729_1
brotli 1.0.9 ha925a31_2
brotlipy 0.7.0 py38h2bbff1b_1003
bzip2 1.0.8 he774522_0
ca-certificates 2021.4.13 haa95532_1
certifi 2020.12.5 py38haa95532_0
cffi 1.14.5 py38hcd4344a_0
chardet 4.0.0 py38haa95532_1003
charls 2.2.0 h6c2663c_0
click 7.1.2 pyhd3eb1b0_0
cloudpickle 1.6.0 py_0
clyent 1.2.2 py38_1
colorama 0.4.4 pyhd3eb1b0_0
comtypes 1.1.9 py38haa95532_1002
conda 4.14.0 py38haa95532_0
conda-build 3.22.0 py38haa95532_0
conda-content-trust 0.1.1 pyhd3eb1b0_0
conda-env 2.6.0 1
conda-package-handling 1.7.3 py38h8cc25b3_1
conda-repo-cli 1.0.4 pyhd3eb1b0_0
conda-token 0.3.0 pyhd3eb1b0_0
conda-verify 3.4.2 py_1
console_shortcut 0.1.1 4
contextlib2 0.6.0.post1 py_0
cryptography 3.4.7 py38h71e12ea_0
curl 7.71.1 h2a8f88b_1
cycler 0.10.0 py38_0
cython 0.29.23 py38hd77b12b_0
cytoolz 0.11.0 py38he774522_0
dask 2021.4.0 pyhd3eb1b0_0
dask-core 2021.4.0 pyhd3eb1b0_0
decorator 5.0.6 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
diff-match-patch 20200713 py_0
distlib 0.3.6 pypi_0 pypi
distributed 2021.4.0 py38haa95532_0
django 4.1 py38haa95532_0
django-environ 0.9.0 pypi_0 pypi
docutils 0.17 py38haa95532_1
entrypoints 0.3 py38_0
et_xmlfile 1.0.1 py_1001
fastcache 1.1.0 py38he774522_0
fastcgi 0.0.3 pypi_0 pypi
fastcore 1.5.24 pypi_0 pypi
filelock 3.8.0 pypi_0 pypi
flake8 3.9.0 pyhd3eb1b0_0
flask 1.1.2 pyhd3eb1b0_0
freetds 1.3 hcd4344a_0
freetype 2.10.4 hd328e21_0
fsspec 0.9.0 pyhd3eb1b0_0
future 0.18.2 py38_1
get_terminal_size 1.0.0 h38e98db_0
gevent 21.1.2 py38h2bbff1b_1
giflib 5.2.1 h62dcd97_0
glob2 0.7 pyhd3eb1b0_0
greenlet 1.0.0 py38hd77b12b_2
h5py 2.10.0 py38h5e291fa_0
hdf5 1.10.4 h7ebc959_0
heapdict 1.0.1 py_0
html5lib 1.1 py_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 2.10 pyhd3eb1b0_0
imagecodecs 2021.3.31 py38h5da4933_0
imageio 2.9.0 pyhd3eb1b0_0
imagesize 1.2.0 pyhd3eb1b0_0
importlib-metadata 3.10.0 py38haa95532_0
importlib_metadata 3.10.0 hd3eb1b0_0
iniconfig 1.1.1 pyhd3eb1b0_0
intel-openmp 2021.2.0 haa95532_616
intervaltree 3.1.0 py_0
ipykernel 5.3.4 py38h5ca1d4c_0
ipython 7.22.0 py38hd4e2768_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 7.6.3 pyhd3eb1b0_1
isort 5.8.0 pyhd3eb1b0_0
itsdangerous 1.1.0 pyhd3eb1b0_0
jdcal 1.4.1 py_0
jedi 0.17.2 py38haa95532_1
jinja2 2.11.3 pyhd3eb1b0_0
joblib 1.0.1 pyhd3eb1b0_0
jpeg 9b hb83a4c4_2
json5 0.9.5 py_0
jsonschema 3.2.0 py_2
jupyter 1.0.0 py38_7
jupyter-packaging 0.7.12 pyhd3eb1b0_0
jupyter_client 6.1.12 pyhd3eb1b0_0
jupyter_console 6.4.0 pyhd3eb1b0_0
jupyter_core 4.7.1 py38haa95532_0
jupyter_server 1.4.1 py38haa95532_0
jupyterlab 3.0.14 pyhd3eb1b0_1
jupyterlab_pygments 0.1.2 py_0
jupyterlab_server 2.4.0 pyhd3eb1b0_0
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1
keyring 22.3.0 py38haa95532_0
kiwisolver 1.3.1 py38hd77b12b_0
krb5 1.18.2 hc04afaa_0
lazy-object-proxy 1.6.0 py38h2bbff1b_0
lcms2 2.12 h83e58a3_0
lerc 2.2.1 hd77b12b_0
libaec 1.0.4 h33f27b4_1
libarchive 3.4.2 h5e25573_0
libcurl 7.71.1 h2a8f88b_1
libdeflate 1.7 h2bbff1b_5
libiconv 1.15 h1df5818_7
liblief 0.10.1 ha925a31_0
libpng 1.6.37 h2a8f88b_0
libsodium 1.0.18 h62dcd97_0
libspatialindex 1.9.3 h6c2663c_0
libssh2 1.9.0 h7a1dbc1_1
libtiff 4.2.0 hd0e1b90_0
libxml2 2.9.10 hb89e7f3_3
libxslt 1.1.34 he774522_0
libzopfli 1.0.3 ha925a31_0
llvmlite 0.36.0 py38h34b8924_4
locket 0.2.1 py38haa95532_1
lxml 4.6.3 py38h9b66d53_0
lz4-c 1.9.3 h2bbff1b_0
lzo 2.10 he774522_2
m2-msys2-runtime 2.5.0.17080.65c939c 3
m2-patch 2.7.5 2
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gmp 6.1.0 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
markupsafe 1.1.1 py38he774522_0
matplotlib 3.3.4 py38haa95532_0
matplotlib-base 3.3.4 py38h49ac443_0
mccabe 0.6.1 py38_1
menuinst 1.4.16 py38he774522_1
mistune 0.8.4 py38he774522_1000
mkl 2021.2.0 haa95532_296
mkl-service 2.3.0 py38h2bbff1b_1
mkl_fft 1.3.0 py38h277e83a_2
mkl_random 1.2.1 py38hf11a4ad_2
mock 4.0.3 pyhd3eb1b0_0
more-itertools 8.7.0 pyhd3eb1b0_0
mpmath 1.2.1 py38haa95532_0
msgpack-python 1.0.2 py38h59b6b97_1
msys2-conda-epoch 20160418 1
multipledispatch 0.6.0 py38_0
mypy_extensions 0.4.3 py38_0
navigator-updater 0.2.1 py38_0
nbclassic 0.2.6 pyhd3eb1b0_0
nbclient 0.5.3 pyhd3eb1b0_0
nbconvert 6.0.7 py38_0
nbformat 5.1.3 pyhd3eb1b0_0
nest-asyncio 1.5.1 pyhd3eb1b0_0
networkx 2.5 py_0
nltk 3.6.1 pyhd3eb1b0_0
nose 1.3.7 pyhd3eb1b0_1006
notebook 6.3.0 py38haa95532_0
numba 0.53.1 py38hf11a4ad_0
numexpr 2.7.3 py38hb80d3ca_1
numpy 1.20.1 py38h34a8a5c_0
numpy-base 1.20.1 py38haf7ebc8_0
numpydoc 1.1.0 pyhd3eb1b0_1
olefile 0.46 py_0
openjpeg 2.3.0 h5ec785f_1
openpyxl 3.0.7 pyhd3eb1b0_0
openssl 1.1.1k h2bbff1b_0
packaging 20.9 pyhd3eb1b0_0
pandas 1.2.4 py38hd77b12b_0
pandoc 2.12 haa95532_0
pandocfilters 1.4.3 py38haa95532_1
paramiko 2.7.2 py_0
parso 0.7.0 py_0
partd 1.2.0 pyhd3eb1b0_0
path 15.1.2 py38haa95532_0
path.py 12.5.0 0
pathlib2 2.3.5 py38haa95532_2
pathspec 0.7.0 py_0
patsy 0.5.1 py38_0
pep8 1.7.1 py38_0
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 8.2.0 py38h4fa10fc_0
pip 21.0.1 py38haa95532_0
pkginfo 1.7.0 py38haa95532_0
platformdirs 2.5.2 pypi_0 pypi
pluggy 0.13.1 py38haa95532_0
ply 3.11 py38_0
powershell_shortcut 0.0.1 3
prometheus_client 0.10.1 pyhd3eb1b0_0
prompt-toolkit 3.0.17 pyh06a4308_0
prompt_toolkit 3.0.17 hd3eb1b0_0
psutil 5.8.0 py38h2bbff1b_1
ptyprocess 0.7.0 pyhd3eb1b0_2
py 1.10.0 pyhd3eb1b0_0
py-lief 0.10.1 py38ha925a31_0
pycodestyle 2.6.0 pyhd3eb1b0_0
pycosat 0.6.3 py38h2bbff1b_0
pycparser 2.20 py_2
pycurl 7.43.0.6 py38h7a1dbc1_0
pydocstyle 6.0.0 pyhd3eb1b0_0
pyerfa 1.7.3 py38h2bbff1b_0
pyflakes 2.2.0 pyhd3eb1b0_0
pygments 2.8.1 pyhd3eb1b0_0
pylint 2.7.4 py38haa95532_1
pyls-black 0.4.6 hd3eb1b0_0
pyls-spyder 0.3.2 pyhd3eb1b0_0
pymssql 2.1.5 py38he774522_0
pynacl 1.4.0 py38h62dcd97_1
pyodbc 4.0.0-unsupported pypi_0 pypi
pyopenssl 20.0.1 pyhd3eb1b0_1
pyparsing 2.4.7 pyhd3eb1b0_0
pyqt 5.9.2 py38ha925a31_4
pyreadline 2.1 py38_1
pyrsistent 0.17.3 py38he774522_0
pysocks 1.7.1 py38haa95532_0
pytables 3.6.1 py38ha5be198_0
pytest 6.2.3 py38haa95532_2
python 3.8.8 hdbf39b2_5
python-dateutil 2.8.1 pyhd3eb1b0_0
python-jsonrpc-server 0.4.0 py_0
python-language-server 0.36.2 pyhd3eb1b0_0
python-libarchive-c 2.9 pyhd3eb1b0_1
python-tzdata 2021.1 pyhd3eb1b0_0
pytz 2021.1 pyhd3eb1b0_0
pywavelets 1.1.1 py38he774522_2
pywin32 227 py38he774522_1
pywin32-ctypes 0.2.0 py38_1000
pywinpty 0.5.7 py38_0
pyyaml 5.4.1 py38h2bbff1b_1
pyzmq 20.0.0 py38hd77b12b_1
qdarkstyle 2.8.1 py_0
qt 5.9.7 vc14h73c81de_0
qtawesome 1.0.2 pyhd3eb1b0_0
qtconsole 5.0.3 pyhd3eb1b0_0
qtpy 1.9.0 py_0
regex 2021.4.4 py38h2bbff1b_0
requests 2.25.1 pyhd3eb1b0_0
rope 0.18.0 py_0
rtree 0.9.7 py38h2eaa2aa_1
ruamel_yaml 0.15.100 py38h2bbff1b_0
scikit-image 0.18.1 py38hf11a4ad_0
scikit-learn 0.24.1 py38hf11a4ad_0
scipy 1.6.2 py38h66253e8_1
seaborn 0.11.1 pyhd3eb1b0_0
send2trash 1.5.0 pyhd3eb1b0_1
setuptools 52.0.0 py38haa95532_0
simplegeneric 0.8.1 py38_2
singledispatch 3.6.1 pyhd3eb1b0_1001
sip 4.19.13 py38ha925a31_0
six 1.15.0 py38haa95532_0
snappy 1.1.8 h33f27b4_0
sniffio 1.2.0 py38haa95532_1
snowballstemmer 2.1.0 pyhd3eb1b0_0
sortedcollections 2.1.0 pyhd3eb1b0_0
sortedcontainers 2.3.0 pyhd3eb1b0_0
soupsieve 2.2.1 pyhd3eb1b0_0
sphinx 4.0.1 pyhd3eb1b0_0
sphinxcontrib 1.0 py38_1
sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-htmlhelp 1.0.3 pyhd3eb1b0_0
sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0
sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0
sphinxcontrib-serializinghtml 1.1.4 pyhd3eb1b0_0
sphinxcontrib-websupport 1.2.4 py_0
spyder 4.2.5 py38haa95532_0
spyder-kernels 1.10.2 py38haa95532_0
sqlalchemy 1.4.7 py38h2bbff1b_0
sqlite 3.35.4 h2bbff1b_0
sqlparse 0.4.2 pypi_0 pypi
statsmodels 0.12.2 py38h2bbff1b_0
sympy 1.8 py38haa95532_0
tbb 2020.3 h74a9793_0
tblib 1.7.0 py_0
terminado 0.9.4 py38haa95532_0
testpath 0.4.4 pyhd3eb1b0_0
textdistance 4.2.1 pyhd3eb1b0_0
threadpoolctl 2.1.0 pyh5ca1d4c_0
three-merge 0.1.1 pyhd3eb1b0_0
tifffile 2021.4.8 pyhd3eb1b0_2
tk 8.6.10 he774522_0
toml 0.10.2 pyhd3eb1b0_0
toolz 0.11.1 pyhd3eb1b0_0
tornado 6.1 py38h2bbff1b_0
tqdm 4.59.0 pyhd3eb1b0_1
traitlets 5.0.5 pyhd3eb1b0_0
typed-ast 1.4.2 py38h2bbff1b_1
typing_extensions 3.7.4.3 pyha847dfd_0
tzdata 2022.2 pypi_0 pypi
ujson 4.0.2 py38hd77b12b_0
unicodecsv 0.14.1 py38_0
urllib3 1.26.4 pyhd3eb1b0_0
vc 14.2 h21ff451_1
virtualenv 20.16.4 pypi_0 pypi
virtualenvwrapper-win 1.2.7 pypi_0 pypi
vs2015_runtime 14.27.29016 h5e58377_2
watchdog 1.0.2 py38haa95532_1
wcwidth 0.2.5 py_0
webencodings 0.5.1 py38_1
werkzeug 1.0.1 pyhd3eb1b0_0
wheel 0.36.2 pyhd3eb1b0_0
widgetsnbextension 3.5.1 py38_0
win_inet_pton 1.1.0 py38haa95532_0
win_unicode_console 0.5 py38_0
wincertstore 0.2 py38_0
winpty 0.4.3 4
wrapt 1.12.1 py38he774522_1
xlrd 2.0.1 pyhd3eb1b0_0
xlsxwriter 1.3.8 pyhd3eb1b0_0
xlwings 0.23.0 py38haa95532_0
xlwt 1.3.0 py38_0
xmltodict 0.12.0 py_0
xz 5.2.5 h62dcd97_0
yaml 0.2.5 he774522_0
yapf 0.31.0 pyhd3eb1b0_0
zeromq 4.3.3 ha925a31_3
zfp 0.5.5 hd77b12b_6
zict 2.0.0 pyhd3eb1b0_0
zipp 3.4.1 pyhd3eb1b0_0
zlib 1.2.11 h62dcd97_4
zope 1.0 py38_1
zope.event 4.5.0 py38_0
zope.interface 5.3.0 py38h2bbff1b_0
zstd 1.4.5 h04227a9_0
It seems that packages like mssql, django-mssql-backend are not installed by conda, and I cannot install them as conda tells me that the packages are just not there for conda. (This is actually strange to me as conda seems to claim that it supports whatever pip is able to download). pyodbc is there but it shows "unsupported."
I tried creating venv and use the python interpreter from the env, and installed packages inside the env, the error is still the same. I edited PATH and removed anaconda from PATH, nothing worked. It seems that this machine does not have a python.exe interpreter that is not from conda.
Limitations:
I cannot switch to a Linux server as the company only allocated a Win10 machine to this project.
I cannot uninstall Anaconda as another project is also running on this machine.
I need to run this project on IIS.
I would like to ask if there is any solution to this, given the situation above. Any help is greatly appreciated, thanks in advance!

Error while installed tensor flow on windows

I created my own virtual environment for my work in python anaconda. I installed tensor flow and checked my version as tensorboard 2.3.1 pypi_0 pypi. However, when I am trying to import the following libraries
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
But even after installing tensor flow and with an upgraded version, I am getting the following error
`ImportError: Traceback (most recent call last):
File "C:\Users\rp603\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
<ipython-input-37-c947233989bd> in <module>
----> 1 from keras.models import Sequential
2 from keras.layers import Dense
3 from keras.layers import LSTM
~\Anaconda3\envs\ML\lib\site-packages\keras\__init__.py in <module>
4 except ImportError:
5 raise ImportError(
----> 6 'Keras requires TensorFlow 2.2 or higher. '
7 'Install TensorFlow via `pip install tensorflow`')
8
ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow`
Any help on how to solve this issue and install using anaconda? Thanks in advance
The output of conda list on my environment as follows
(ML) C:\Users\rp603>conda list
# packages in environment at C:\Users\rp603\Anaconda3\envs\ML:
#
# Name Version Build Channel
_tflow_select 2.2.0 eigen
absl-py 0.11.0 py37haa95532_0
aiohttp 3.7.2 py37h2bbff1b_1
alabaster 0.7.12 py37_0
argh 0.26.2 py37_0
argon2-cffi 20.1.0 py37he774522_1
astor 0.8.1 py37_0
astroid 2.4.2 py37_0
async-timeout 3.0.1 py37_0
async_generator 1.10 py37h28b3542_0
atomicwrites 1.4.0 py_0
attrs 20.3.0 pyhd3eb1b0_0
autopep8 1.5.4 py_0
babel 2.8.1 pyhd3eb1b0_0
backcall 0.2.0 py_0
bcrypt 3.2.0 py37he774522_0
blas 1.0 mkl
bleach 3.2.1 py_0
blinker 1.4 py37_0
brotlipy 0.7.0 py37h2bbff1b_1003
ca-certificates 2020.10.14 0
cached-property 1.5.2 pypi_0 pypi
cachetools 4.1.1 py_0
certifi 2020.6.20 pyhd3eb1b0_3
cffi 1.14.3 py37hcd4344a_2
chardet 3.0.4 py37haa95532_1003
click 7.1.2 py_0
cloudpickle 1.6.0 py_0
colorama 0.4.4 py_0
cpuonly 1.0 0 pytorch
cryptography 3.2.1 py37hcd4344a_1
cycler 0.10.0 py37_0
decorator 4.4.2 py_0
defusedxml 0.6.0 py_0
diff-match-patch 20200713 py_0
docutils 0.16 py37_1
entrypoints 0.3 py37_0
flake8 3.8.4 py_0
freetype 2.10.4 hd328e21_0
future 0.18.2 py37_1
gast 0.2.2 py37_0
google-auth 1.23.0 pyhd3eb1b0_0
google-auth-oauthlib 0.4.2 pyhd3eb1b0_2
google-pasta 0.2.0 py_0
gpytorch 1.2.0 py_0 conda-forge
grpcio 1.31.0 py37he7da953_0
h5py 3.1.0 pypi_0 pypi
hdf5 1.10.4 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 2.10 py_0
imagesize 1.2.0 py_0
importlib-metadata 2.0.0 py_1
importlib_metadata 2.0.0 1
intel-openmp 2020.2 254
intervaltree 3.1.0 py_0
ipykernel 5.3.4 py37h5ca1d4c_0
ipython 7.19.0 py37hd4e2768_0
ipython_genutils 0.2.0 py37_0
isort 5.6.4 py_0
jedi 0.17.1 py37_0
jinja2 2.11.2 py_0
joblib 0.17.0 py_0
jpeg 9b hb83a4c4_2
jsonschema 3.2.0 py_2
jupyter_client 6.1.7 py_0
jupyter_core 4.6.3 py37_0
jupyterlab_pygments 0.1.2 py_0
keras 2.4.3 pypi_0 pypi
keras-applications 1.0.8 py_1
keras-preprocessing 1.1.0 py_1
keyring 21.4.0 py37_1
kiwisolver 1.3.0 py37hd77b12b_0
lazy-object-proxy 1.4.3 py37he774522_0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.13.0.1 h200bbdf_0
libsodium 1.0.18 h62dcd97_0
libspatialindex 1.9.3 h33f27b4_0
libtiff 4.1.0 h56a325e_1
libuv 1.40.0 he774522_0
lz4-c 1.9.2 hf4a77e7_3
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gmp 6.1.0 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
markdown 3.3.3 py37haa95532_0
markupsafe 1.1.1 py37hfa6e2cd_1
matplotlib 3.3.2 0
matplotlib-base 3.3.2 py37hba9282a_0
mccabe 0.6.1 py37_1
mistune 0.8.4 py37hfa6e2cd_1001
mkl 2020.2 256
mkl-service 2.3.0 py37h2bbff1b_0
mkl_fft 1.2.0 py37h45dec08_0
mkl_random 1.1.1 py37h47e9c7a_0
msys2-conda-epoch 20160418 1
multidict 4.7.6 py37he774522_1
nbclient 0.5.1 py_0
nbconvert 6.0.7 py37_0
nbformat 5.0.8 py_0
nest-asyncio 1.4.2 pyhd3eb1b0_0
ninja 1.10.1 py37h7ef1ec2_0
notebook 6.1.4 py37_0
numpy 1.19.4 pypi_0 pypi
numpy-base 1.19.2 py37ha3acd2a_0
numpydoc 1.1.0 pyhd3eb1b0_1
oauthlib 3.1.0 py_0
olefile 0.46 py37_0
openssl 1.1.1h he774522_0
opt_einsum 3.1.0 py_0
packaging 20.4 py_0
pandas 1.1.3 py37ha925a31_0
pandoc 2.11 h9490d1a_0
pandocfilters 1.4.3 py37haa95532_1
paramiko 2.7.2 py_0
parso 0.7.0 py_0
pathtools 0.1.2 py_1
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 py37_1001
pillow 8.0.1 py37h4fa10fc_0
pip 20.2.4 py37haa95532_0
pluggy 0.13.1 py37_0
prometheus_client 0.8.0 py_0
prompt-toolkit 3.0.8 py_0
protobuf 3.13.0.1 py37ha925a31_1
psutil 5.7.2 py37he774522_0
ptyprocess 0.6.0 pyhd3eb1b0_2
pyasn1 0.4.8 py_0
pyasn1-modules 0.2.8 py_0
pycodestyle 2.6.0 py_0
pycparser 2.20 py_2
pydocstyle 5.1.1 py_0
pyflakes 2.2.0 py_0
pygments 2.7.2 pyhd3eb1b0_0
pyjwt 1.7.1 py37_0
pylint 2.6.0 py37_0
pynacl 1.4.0 py37h62dcd97_1
pyopenssl 19.1.0 pyhd3eb1b0_1
pyparsing 2.4.7 py_0
pyqt 5.9.2 py37h6538335_2
pyreadline 2.1 py37_1
pyrsistent 0.17.3 py37he774522_0
pysocks 1.7.1 py37_1
python 3.7.9 h60c2a47_0
python-dateutil 2.8.1 py_0
python-jsonrpc-server 0.4.0 py_0
python-language-server 0.35.1 py_0
python_abi 3.7 1_cp37m conda-forge
pytorch 1.7.0 py3.7_cpu_0 [cpuonly] pytorch
pytz 2020.1 py_0
pywin32 227 py37he774522_1
pywin32-ctypes 0.2.0 py37_1001
pywinpty 0.5.7 py37_0
pyyaml 5.3.1 pypi_0 pypi
pyzmq 19.0.2 py37ha925a31_1
qdarkstyle 2.8.1 py_0
qt 5.9.7 vc14h73c81de_0
qtawesome 1.0.1 py_0
qtconsole 4.7.7 py_0
qtpy 1.9.0 py_0
requests 2.24.0 py_0
requests-oauthlib 1.3.0 py_0
rope 0.18.0 py_0
rsa 4.6 py_0
rtree 0.9.4 py37h21ff451_1
scikit-learn 0.23.2 py37h47e9c7a_0
scipy 1.4.1 pypi_0 pypi
seaborn 0.11.0 py_0
send2trash 1.5.0 py37_0
setuptools 50.3.1 py37haa95532_1
sip 4.19.8 py37h6538335_0
six 1.15.0 py37haa95532_0
snowballstemmer 2.0.0 py_0
sortedcontainers 2.2.2 py_0
sphinx 3.2.1 py_0
sphinxcontrib-applehelp 1.0.2 py_0
sphinxcontrib-devhelp 1.0.2 py_0
sphinxcontrib-htmlhelp 1.0.3 py_0
sphinxcontrib-jsmath 1.0.1 py_0
sphinxcontrib-qthelp 1.0.3 py_0
sphinxcontrib-serializinghtml 1.1.4 py_0
spyder 4.1.5 py37_0
spyder-kernels 1.9.4 py37_0
sqlite 3.33.0 h2a8f88b_0
tensorboard 2.3.0 pyh4dce500_0
tensorboard-plugin-wit 1.6.0 py_0
tensorflow 2.3.1 pypi_0 pypi
tensorflow-estimator 2.3.0 pypi_0 pypi
termcolor 1.1.0 py37_1
terminado 0.9.1 py37_0
testpath 0.4.4 py_0
threadpoolctl 2.1.0 pyh5ca1d4c_0
tk 8.6.10 he774522_0
toml 0.10.1 py_0
torchaudio 0.7.0 py37 pytorch
torchvision 0.8.1 py37_cpu [cpuonly] pytorch
tornado 6.0.4 py37he774522_1
traitlets 5.0.5 py_0
typed-ast 1.4.1 py37he774522_0
typing-extensions 3.7.4.3 0
typing_extensions 3.7.4.3 py_0
ujson 4.0.1 py37ha925a31_0
urllib3 1.25.11 py_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_3
watchdog 0.10.3 py37_0
wcwidth 0.2.5 py_0
webencodings 0.5.1 py37_1
werkzeug 0.14.1 py37_0
wheel 0.35.1 pyhd3eb1b0_0
win_inet_pton 1.1.0 py37haa95532_0
wincertstore 0.2 py37_0
windrose 1.6.8 pyh9f0ad1d_0 conda-forge
winpty 0.4.3 4
wrapt 1.11.2 py37he774522_0
xlrd 1.2.0 pypi_0 pypi
xz 5.2.5 h62dcd97_0
yaml 0.2.5 he774522_0
yapf 0.30.0 py_0
yarl 1.5.1 py37he774522_0
zeromq 4.3.2 ha925a31_3
zipp 3.4.0 pyhd3eb1b0_0
zlib 1.2.11 h62dcd97_4
zstd 1.4.5 h04227a9_0
Your tensorflow is being imported from
File "C:\Users\rp603\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\pywrap_tensorflow.py"
which is a python 3.7 installation that is different from your anaconda one. You are likely seeing issues because of this.
Uninstall any python installation other than the anaconda one, you should not need them anymore. Also remove C:\Users\rp603\AppData\Roaming\Python\Python37 after uninstalling that python version to make sure no residues remain that can cause issues

Conda commands (ie: conda env list, sypder, jupyter lab) no longer work after 'conda update conda'

I used 'conda update conda' and I'm now having some problems. I'm on osx. I can no longer open the Anaconda-Navigator App from finder, nor start spyder or jupyter lab from the terminal. Below is the output I get if I try to open jupyter lab from the terminal.
I also added the contents of the base environment as requested.
I tried the command mentioned in this post but had no luck.
Error Running Jupyter Lab/Notebook and Most Conda Commands Following Update
Any help is much appreciated.
(base) Dylans-Mac-mini:~ dylanquinn$ jupyter lab
Traceback (most recent call last):
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/site-packages/jupyterlab_server/server.py", line 14, in <module>
from notebook.base.handlers import (
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/site-packages/notebook/base/handlers.py", line 35, in <module>
from notebook.utils import is_hidden, url_path_join, url_is_absolute, url_escape
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/site-packages/notebook/utils.py", line 10, in <module>
import ctypes
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: dlopen(/Users/dylanquinn/opt/anaconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so, 2): Library not loaded: #rpath/libffi.6.dylib
Referenced from: /Users/dylanquinn/opt/anaconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so
Reason: image not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/dylanquinn/opt/anaconda3/bin/jupyter-lab", line 6, in <module>
from jupyterlab.labapp import main
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/site-packages/jupyterlab/labapp.py", line 14, in <module>
from jupyterlab_server import slugify, WORKSPACE_EXTENSION
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/site-packages/jupyterlab_server/__init__.py", line 4, in <module>
from .app import LabServerApp
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/site-packages/jupyterlab_server/app.py", line 9, in <module>
from .server import ServerApp
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/site-packages/jupyterlab_server/server.py", line 26, in <module>
from jupyter_server.base.handlers import ( # noqa
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/site-packages/jupyter_server/base/handlers.py", line 43, in <module>
from jupyter_server.utils import is_hidden, url_path_join, url_is_absolute, url_escape
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/site-packages/jupyter_server/utils.py", line 8, in <module>
import ctypes
File "/Users/dylanquinn/opt/anaconda3/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: dlopen(/Users/dylanquinn/opt/anaconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so, 2): Library not loaded: #rpath/libffi.6.dylib
Referenced from: /Users/dylanquinn/opt/anaconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so
Reason: image not found
(base) Dylans-Mac-mini:~ dylanquinn$
# packages in environment at /Users/dylanquinn/opt/anaconda3:
#
# Name Version Build Channel
_anaconda_depends 2019.03 py37_0
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
alabaster 0.7.12 py37_0
anaconda custom py37_1
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.12 py37_0
anaconda-project 0.8.4 py_0
applaunchservices 0.2.1 py_0
appnope 0.1.0 py37_0
appscript 1.1.0 py37h1de35cc_0
apptools 4.4.0 py37_1
argh 0.26.2 py37_0
asgiref 3.2.7 py_0
asn1crypto 1.3.0 py37_0
astroid 2.4.1 py37_0
astropy 4.0.1.post1 py37h01d97ff_1
async_generator 1.10 py37h28b3542_0
atomicwrites 1.4.0 py_0
attrs 19.3.0 py_0
autopep8 1.4.4 py_0
babel 2.8.0 py_0
backcall 0.1.0 py37_0
backports 1.0 py_2
backports.functools_lru_cache 1.6.1 py_0
backports.os 0.1.1 py37_0
backports.shutil_get_terminal_size 1.0.0 py37_2
backports.tempfile 1.0 py_1
backports.weakref 1.0.post1 py_1
beautifulsoup4 4.9.0 py37_0
bitarray 1.2.1 py37h1de35cc_0
bkcharts 0.2 py37_0
blas 1.0 mkl
bleach 3.1.4 py_0
blosc 1.16.3 hd9629dc_0
bokeh 2.0.2 py37_0
boto 2.49.0 py37_0
bottleneck 1.3.2 py37h776bbcc_0
bs4 0.0.1 pypi_0 pypi
bzip2 1.0.8 h1de35cc_0
ca-certificates 2020.1.1 0
certifi 2020.4.5.1 py37_0
cffi 1.14.0 py37hc512035_1
chardet 3.0.4 py37_1003
click 7.1.2 py_0
cloudpickle 1.4.1 py_0
clyent 1.2.2 py37_1
colorama 0.4.3 py_0
conda 4.8.3 py37_0
conda-build 3.18.9 py37_3
conda-env 2.6.0 1
conda-package-handling 1.6.1 py37h1de35cc_0
conda-verify 3.4.2 py_1
configobj 5.0.6 py37_1
contextlib2 0.6.0.post1 py_0
cryptography 2.9.2 py37ha12b0ac_0
curl 7.69.1 ha441bb4_0
cycler 0.10.0 py37_0
cython 0.29.17 py37h0a44026_0
cytoolz 0.10.1 py37h1de35cc_0
dask 2.17.2 py_0
dask-core 2.17.2 py_0
dbus 1.13.14 h517e14e_0
decorator 4.4.2 py_0
defusedxml 0.6.0 py_0
diff-match-patch 20181111 py_0
distributed 2.17.0 py37_0
django 3.0.3 py_0
docutils 0.16 py37_0
entrypoints 0.3 py37_0
envisage 4.8.0 py_0
et_xmlfile 1.0.1 py37_0
expat 2.2.6 h0a44026_0
fastcache 1.1.0 py37h1de35cc_0
filelock 3.0.12 py_0
flake8 3.8.2 py_0
flask 1.1.2 py_0
freetype 2.9.1 hb4e5f40_0
fsspec 0.7.4 py_0
future 0.18.2 py37_0
get_terminal_size 1.0.0 h7520d66_0
gettext 0.19.8.1 hb0f4f8b_2
gevent 1.4.0 py37h1de35cc_0
glib 2.63.1 h70d4741_1
glob2 0.7 py_0
gmp 6.1.2 hb37e062_1
gmpy2 2.0.8 py37h6ef4df4_2
greenlet 0.4.15 py37h1de35cc_0
h5py 2.10.0 py37h3134771_0
hdf4 4.2.13 h39711bb_2
hdf5 1.10.4 hfa1e0ec_0
heapdict 1.0.1 py_0
html5lib 1.0.1 py37_0
hypothesis 5.11.0 py_0
icu 58.2 h0a44026_3
idna 2.9 py_1
imageio 2.8.0 py_0
imagesize 1.2.0 py_0
importlib-metadata 1.6.0 py37_0
importlib_metadata 1.6.0 0
intel-openmp 2019.4 233
intervaltree 3.0.2 py_0
ipykernel 5.1.4 py37h39e3cac_0
ipython 7.13.0 py37h5ca1d4c_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.5.1 py_0
isort 4.3.21 py37_0
itsdangerous 1.1.0 py37_0
jbig 2.1 h4d881f8_0
jdcal 1.4.1 py_0
jedi 0.15.2 py37_0
jinja2 2.11.2 py_0
joblib 0.15.1 py_0
jpeg 9b he5867d9_2
json5 0.9.4 py_0
jsoncpp 1.8.4 h04f5b5a_0
jsonschema 3.2.0 py37_0
jupyter 1.0.0 py37_7
jupyter_client 6.1.3 py_0
jupyter_console 6.1.0 py_0
jupyter_core 4.6.3 py37_0
jupyter_server 0.1.1 py37_0 conda-forge
jupyterlab 2.0.1 py_0 conda-forge
jupyterlab_pygments 0.1.0 py_0 conda-forge
jupyterlab_server 1.1.4 py_0
keyring 21.1.1 py37_2
kiwisolver 1.2.0 py37h04f5b5a_0
krb5 1.17.1 hddcf347_0
lazy-object-proxy 1.4.3 py37h1de35cc_0
libarchive 3.3.3 h786848e_5
libcurl 7.69.1 h051b688_0
libcxx 10.0.0 1
libcxxabi 4.0.1 hcfea43d_1
libedit 3.1.20181209 hb402a30_0
libffi 3.3 h0a44026_1
libgfortran 3.0.1 h93005f0_2
libiconv 1.16 h1de35cc_0
liblief 0.10.1 h0a44026_0
libnetcdf 4.6.1 hd5207e6_2
libogg 1.3.2 h1de35cc_0
libpng 1.6.37 ha441bb4_0
libsodium 1.0.16 h3efe00b_0
libspatialindex 1.9.3 h0a44026_0
libssh2 1.9.0 ha12b0ac_1
libtheora 1.1.1 hb4e5f40_1
libtiff 4.1.0 hcb84e12_0
libvorbis 1.3.6 h1de35cc_0
libxml2 2.9.9 hf6e021a_1
libxslt 1.1.33 h33a18ac_0
llvm-openmp 10.0.0 h28b9765_0
llvmlite 0.32.1 py37h8c7ce04_0
locket 0.2.0 py37_1
lxml 4.5.0 py37hef8c89e_0
lz4-c 1.8.1.2 h1de35cc_0
lzo 2.10 h1de35cc_2
markupsafe 1.1.1 py37h1de35cc_0
matplotlib 3.1.3 py37_0
matplotlib-base 3.1.3 py37h9aa3819_0
mayavi 4.7.1 py37hd5f3a30_2 anaconda
mccabe 0.6.1 py37_1
mistune 0.8.4 py37h1de35cc_0
mkl 2019.4 233
mkl-service 2.3.0 py37hfbe908c_0
mkl_fft 1.0.15 py37h5e564d8_0
mkl_random 1.1.1 py37h959d312_0
mock 4.0.2 py_0
more-itertools 8.3.0 py_0
mpc 1.1.0 h6ef4df4_1
mpfr 4.0.1 h3018a27_3
mpmath 1.1.0 py37_0
msgpack-python 1.0.0 py37h04f5b5a_1
multipledispatch 0.6.0 py37_0
multitasking 0.0.9 pypi_0 pypi
navigator-updater 0.2.1 py37_0
nbconvert 5.6.1 py37_0
nbformat 5.0.6 py_0
ncurses 6.2 h0a44026_1
networkx 2.4 py_0
nltk 3.4.5 py37_0
nose 1.3.7 py37_2
notebook 6.0.3 py37_0 conda-forge
numba 0.49.1 py37h86efe34_0
numexpr 2.7.1 py37hce01a72_0
numpy 1.18.1 py37h7241aed_0
numpy-base 1.18.1 py37h3304bdc_1
numpydoc 0.9.2 py_0
olefile 0.46 py37_0
opencv-python 4.2.0.34 pypi_0 pypi
openpyxl 3.0.3 py_0
openssl 1.1.1g h1de35cc_0
packaging 20.3 py_0
pandas 1.0.3 py37h6c726b0_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
parso 0.5.2 py_0
partd 1.1.0 py_0
path.py 11.5.0 py37_0
pathlib2 2.3.5 py37_0
pathtools 0.1.2 py_1
patsy 0.5.1 py37_0
pcre 8.43 h0a44026_0
pep8 1.7.1 py37_0
pexpect 4.8.0 py37_0
pickleshare 0.7.5 py37_0
pillow 7.1.2 py37h4655f20_0
pip 20.0.2 py37_3
pkginfo 1.5.0.1 py37_0
pluggy 0.13.1 py37_0
ply 3.11 py37_0
prometheus_client 0.7.1 py_0
prompt-toolkit 3.0.4 py_0
prompt_toolkit 3.0.4 0
psutil 5.7.0 py37h1de35cc_0
ptyprocess 0.6.0 py37_0
py 1.8.1 py_0
py-lief 0.10.1 py37haf313ee_0
pycodestyle 2.6.0 py_0
pycosat 0.6.3 py37h1de35cc_0
pycparser 2.20 py_0
pycrypto 2.6.1 py37h1de35cc_9
pycurl 7.43.0.5 py37ha12b0ac_0
pydocstyle 4.0.1 py_0
pyface 6.1.2 py37_0
pyflakes 2.2.0 py_0
pygments 2.6.1 py_0
pylint 2.5.2 py37_0
pyodbc 4.0.30 py37h0a44026_0
pyopenssl 19.1.0 py37_0
pyparsing 2.4.7 py_0
pyqt 5.9.2 py37h655552a_2
pyrsistent 0.16.0 py37h1de35cc_0
pysocks 1.7.1 py37_0
pytables 3.6.1 py37h5bccee9_0
pytest 5.4.2 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.8.0 py_0
pytest-astropy-header 0.1.2 py_0
pytest-doctestplus 0.5.0 py_0
pytest-openfiles 0.5.0 py_0
pytest-remotedata 0.3.2 py37_0
python 3.7.4 h359304d_1
python-dateutil 2.8.1 py_0
python-jsonrpc-server 0.3.4 py_0
python-language-server 0.31.9 py37_0
python-libarchive-c 2.9 py_0
python.app 2 py37_9
pytz 2020.1 py_0
pywavelets 1.1.1 py37h1de35cc_0
pyyaml 5.3.1 py37h1de35cc_0
pyzmq 18.1.1 py37h0a44026_0
qdarkstyle 2.8.1 py_0
qt 5.9.7 h468cd18_1
qtawesome 0.7.0 py_0
qtconsole 4.7.4 py_0
qtpy 1.9.0 py_0
readline 7.0 h1de35cc_5
requests 2.23.0 py37_0
ripgrep 11.0.2 he32d670_0
rope 0.17.0 py_0
rtree 0.9.4 py37_1
ruamel_yaml 0.15.87 py37h1de35cc_0
scikit-image 0.16.2 py37h6c726b0_0
scikit-learn 0.22.1 py37h27c97d8_0
scipy 1.4.1 py37h9fa6033_0
seaborn 0.10.1 py_0
send2trash 1.5.0 py37_0
setuptools 46.4.0 py37_0
simplegeneric 0.8.1 py37_2
simplejson 3.17.0 pypi_0 pypi
singledispatch 3.4.0.3 py37_0
sip 4.19.8 py37h0a44026_0
six 1.14.0 py37_0
snappy 1.1.7 he62c110_3
snowballstemmer 2.0.0 py_0
sortedcollections 1.1.2 py37_0
sortedcontainers 2.1.0 py37_0
soupsieve 2.0.1 py_0
sphinx 3.0.3 py_0
sphinxcontrib 1.0 py37_1
sphinxcontrib-applehelp 1.0.2 py_0
sphinxcontrib-devhelp 1.0.2 py_0
sphinxcontrib-htmlhelp 1.0.3 py_0
sphinxcontrib-jsmath 1.0.1 py_0
sphinxcontrib-qthelp 1.0.3 py_0
sphinxcontrib-serializinghtml 1.1.4 py_0
sphinxcontrib-websupport 1.2.1 py_0
spyder 4.1.1 py37_1
spyder-kernels 1.9.1 py37_0
sqlalchemy 1.3.17 py37haf1e3a3_0
sqlite 3.31.1 h5c1f38d_1
sqlparse 0.3.1 py_0
statsmodels 0.11.1 py37haf1e3a3_0
sympy 1.5.1 py37_0
tbb 2020.0 h04f5b5a_0
tblib 1.6.0 py_0
terminado 0.8.3 py37_0
testpath 0.4.4 py_0
tk 8.6.8 ha441bb4_0
toml 0.10.0 py37h28b3542_0
toolz 0.10.0 py_0
tornado 6.0.4 py37h1de35cc_1
tqdm 4.46.0 py_0
traitlets 4.3.3 py37_0
traits 5.2.0 py37h1de35cc_0 anaconda
traitsui 6.1.3 py_0
typed-ast 1.4.1 py37h1de35cc_0
typing_extensions 3.7.4.1 py37_0
ujson 1.35 py37h1de35cc_0
unicodecsv 0.14.1 py37_0
unixodbc 2.3.7 h1de35cc_0
urllib3 1.25.8 py37_0
voila 0.1.21 py_0 conda-forge
vtk 8.2.0 py37h9bafd54_200
watchdog 0.10.2 py37h1de35cc_0
wcwidth 0.1.9 py_0
webencodings 0.5.1 py37_1
werkzeug 1.0.1 py_0
wheel 0.34.2 py37_0
widgetsnbextension 3.5.1 py37_0
wrapt 1.11.2 py37h1de35cc_0
wurlitzer 2.0.0 py37_0
xlrd 1.2.0 py37_0
xlsxwriter 1.2.8 py_0
xlwings 0.19.4 py37_0
xlwt 1.3.0 py37_0
xmltodict 0.12.0 py_0
xz 5.2.5 h1de35cc_0
yahoo-finance 1.4.0 pypi_0 pypi
yaml 0.1.7 hc338f04_2
yapf 0.28.0 py_0
yfinance 0.1.54 pypi_0 pypi
zeromq 4.3.1 h0a44026_3
zict 2.0.0 py_0
zipp 3.1.0 py_0
zlib 1.2.11 h1de35cc_3
zstd 1.3.7 h5bba6e5_0
Updating conda can be tricky, depending on how it was installed previously.
To fix your current environment:
You can find and revert back to the previously working version using this command:
conda list --revisions
This will return a list of revisions to your conda environment, just
then select the revision you want (most recent working version) and run this command:
conda install --revision [n]

pygpu problem : DLL load failed: The specified procedure could not be found

When Trying to run a model in Theano on anaconda
Using TensorFlow backend.
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
F:\anaconda\lib\site-packages\theano\gpuarray\dnn.py:184: UserWarning: Your cuDNN version is more recent than Theano. If you encounter problems, try updating Theano or downgrading cuDNN to a version >= v5 and <= v7.
warnings.warn("Your cuDNN version is more recent than "
Loading nvrtc 11.0.
(Debug) ERROR 18: Could not load "nvrtc64_110.dll": The specified module could not be found.
Loading nvrtc 10.0.
Loading cuBLAS 10.0.
Using cuDNN version 7500 on context None
Mapped name None to device cuda: GeForce GTX 1050 Ti (0000:01:00.0)
Loading network...
Input shape: (None, 1, 112, 112)
DLL load failed: The specified procedure could not be found.
Traceback (most recent call last):
File "test/test_fast_swapping.py", line 14, in <module>
swapper = SWAPPER(vars, detector, weights_path + all_weights[1])
File "d:\dubflix\video_module\video_module\fast_swap\api.py", line 16, in __init__
self.aligner.loadNetwork(weights)
File "d:\dubflix\video_module\video_module\fast_swap\src\FaceAlignment.py", line 133, in loadNetwork
self.initializeNetwork()
File "d:\dubflix\video_module\video_module\fast_swap\src\FaceAlignment.py", line 41, in initializeNetwork
self.generate_network_output = theano.function([self.data], [self.prediction])
File "F:\anaconda\lib\site-packages\theano\compile\function.py", line 317, in function
output_keys=output_keys)
File "F:\anaconda\lib\site-packages\theano\compile\pfunc.py", line 486, in pfunc
output_keys=output_keys)
File "F:\anaconda\lib\site-packages\theano\compile\function_module.py", line 1841, in orig_function
fn = m.create(defaults)
File "F:\anaconda\lib\site-packages\theano\compile\function_module.py", line 1715, in create
input_storage=input_storage_lists, storage_map=storage_map)
File "F:\anaconda\lib\site-packages\theano\gof\link.py", line 699, in make_thunk
storage_map=storage_map)[:3]
File "F:\anaconda\lib\site-packages\theano\gof\vm.py", line 1091, in make_all
impl=impl))
File "F:\anaconda\lib\site-packages\theano\gof\op.py", line 955, in make_thunk
no_recycling)
File "F:\anaconda\lib\site-packages\theano\gof\op.py", line 858, in make_c_thunk
output_storage=node_output_storage)
File "F:\anaconda\lib\site-packages\theano\gof\cc.py", line 1217, in make_thunk
keep_lock=keep_lock)
File "F:\anaconda\lib\site-packages\theano\gof\cc.py", line 1157, in __compile__
keep_lock=keep_lock)
File "F:\anaconda\lib\site-packages\theano\gof\cc.py", line 1624, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File "F:\anaconda\lib\site-packages\theano\gof\cmodule.py", line 1191, in module_from_key
module = lnk.compile_cmodule(location)
File "F:\anaconda\lib\site-packages\theano\gof\cc.py", line 1527, in compile_cmodule
preargs=preargs)
File "F:\anaconda\lib\site-packages\theano\gof\cmodule.py", line 2422, in compile_str
return dlimport(lib_filename)
File "F:\anaconda\lib\site-packages\theano\gof\cmodule.py", line 327, in dlimport
assert fullpath.startswith(rval.__file__)
AttributeError: ('The following error happened while compiling the node', GpuDnnConv{algo='small', inplace=True, num_groups=1}(GpuContiguous.0, GpuContiguous.0, GpuAllocEmpty{dtype='float64', context_name=None}.0, GpuDnnConvDesc{border_mode='half', subsample=(1, 1), dilation=(1, 1), conv_mode='conv', precision='float64', num_groups=1}.0, Constant{1.0}, Constant{0.0}), '\n', "'NoneType' object has no attribute '__file__'", "[GpuDnnConv{algo='small', inplace=True, num_groups=1}(<GpuArrayType<None>(float64, 4D)>, <GpuArrayType<None>(float64, (False, True, False, False))>, <GpuArrayType<None>(float64, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]")
The important version informations are :
Anaconda (python 3.7)
Theano : 1.0.4 (latest from the master branch)
pygpu : 0.7.6 (installed from conda)
CUDA : 10.0
CUDNN : 7.6.5
I've checked the model loading without gpu and it works.
.theanorc.txt is like this:
[global]
device = cuda
[gcc]
cxxflags = -I"C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin"
[cuda]
root = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0
conda list -n env
gives
# packages in environment at F:\anaconda:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
_pytorch_select 1.1.0 cpu
absl-py 0.9.0 pypi_0 pypi
alabaster 0.7.12 py37_0
anaconda 2020.02 py37_0
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.12 py37_0
anaconda-project 0.8.4 py_0
argh 0.26.2 py37_0
asn1crypto 1.3.0 py37_0
astor 0.8.1 pypi_0 pypi
astroid 2.3.3 py37_0
astropy 4.0 py37he774522_0
atomicwrites 1.3.0 py37_1
attrs 19.3.0 py_0
audio-module 0.0.1 dev_0 <develop>
audioread 2.1.8 pypi_0 pypi
autopep8 1.4.4 py_0
babel 2.8.0 py_0
backcall 0.1.0 py37_0
backports 1.0 py_2
backports.functools_lru_cache 1.6.1 py_0
backports.shutil_get_terminal_size 1.0.0 py37_2
backports.tempfile 1.0 py_1
backports.weakref 1.0.post1 py_1
bcrypt 3.1.7 py37he774522_0
beautifulsoup4 4.8.2 py37_0
bitarray 1.2.1 py37he774522_0
bkcharts 0.2 py37_0
blas 1.0 mkl conda-forge
bleach 3.1.0 py37_0
blosc 1.16.3 h7bd577a_0
bokeh 1.4.0 py37_0
boto 2.49.0 py37_0
boto3 1.12.40 pypi_0 pypi
botocore 1.15.40 pypi_0 pypi
bottleneck 1.3.2 py37h2a96729_0
bzip2 1.0.8 he774522_0
ca-certificates 2020.1.1 0
certifi 2019.11.28 py37_0
cffi 1.14.0 py37h7a1dbc1_0
chardet 3.0.4 py37_1003
click 7.0 py37_0
cloudpickle 1.3.0 py_0
clyent 1.2.2 py37_1
cmake 3.14.0 h33f27b4_0
colorama 0.4.3 py_0
comtypes 1.1.7 py37_0
conda 4.8.3 py37_0
conda-build 3.18.11 py37_0
conda-env 2.6.0 1
conda-package-handling 1.6.0 py37h62dcd97_0
conda-verify 3.4.2 py_1
console_shortcut 0.1.1 4
contextlib2 0.6.0.post1 py_0
cryptography 2.8 py37h7a1dbc1_0
cudatoolkit 10.1.243 h74a9793_0
curl 7.68.0 h2a8f88b_0
cvlib 0.2.5 pypi_0 pypi
cycler 0.10.0 py37_0
cython 0.29.15 py37ha925a31_0
cytoolz 0.10.1 py37he774522_0
dask 2.11.0 py_0
dask-core 2.11.0 py_0
decorator 4.4.1 py_0
defusedxml 0.6.0 py_0
diff-match-patch 20181111 py_0
distributed 2.11.0 py37_0
dlib 19.19.0 pypi_0 pypi
docopt 0.6.2 pypi_0 pypi
docutils 0.15.2 pypi_0 pypi
entrypoints 0.3 py37_0
et_xmlfile 1.0.1 py37_0
face-recognition 1.3.0 pypi_0 pypi
face-recognition-models 0.3.0 pypi_0 pypi
fastcache 1.1.0 py37he774522_0
filelock 3.0.12 py_0
flake8 3.7.9 py37_0
flask 1.1.1 py_0
freetype 2.9.1 ha9979f8_1
fsspec 0.6.2 py_0
future 0.18.2 py37_0
gast 0.3.3 pypi_0 pypi
get_terminal_size 1.0.0 h38e98db_0
gevent 1.4.0 py37he774522_0
glob2 0.7 py_0
google-pasta 0.2.0 pypi_0 pypi
greenlet 0.4.15 py37hfa6e2cd_0
grpcio 1.28.1 pypi_0 pypi
h5py 2.10.0 py37h5e291fa_0
hdf5 1.10.4 h7ebc959_0
heapdict 1.0.1 py_0
html5lib 1.0.1 py37_0
hypothesis 5.5.4 py_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
idna 2.8 py37_0
imageio 2.6.1 py37_0
imagesize 1.2.0 py_0
importlib_metadata 1.5.0 py37_0
imutils 0.5.3 pypi_0 pypi
inaspeechsegmenter 0.5.1 pypi_0 pypi
intel-openmp 2020.0 166
intervaltree 3.0.2 py_0
ipykernel 5.1.4 py37h39e3cac_0
ipython 7.12.0 py37h5ca1d4c_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.5.1 py_0
isort 4.3.21 py37_0
itsdangerous 1.1.0 py37_0
jdcal 1.4.1 py_0
jedi 0.14.1 py37_0
jinja2 2.11.1 py_0
jmespath 0.9.5 pypi_0 pypi
joblib 0.14.1 py_0
jpeg 9b hb83a4c4_2
json5 0.9.1 py_0
jsonschema 3.2.0 py37_0
jupyter 1.0.0 py37_7
jupyter_client 5.3.4 py37_0
jupyter_console 6.1.0 py_0
jupyter_core 4.6.1 py37_0
jupyterlab 1.2.6 pyhf63ae98_0
jupyterlab_server 1.0.6 py_0
keras 2.3.1 pypi_0 pypi
keras-applications 1.0.8 pypi_0 pypi
keras-preprocessing 1.1.0 pypi_0 pypi
keras-vggface 0.6 pypi_0 pypi
keyring 21.1.0 py37_0
kiwisolver 1.1.0 py37ha925a31_0
krb5 1.17.1 hc04afaa_0
lasagne 0.2.dev1 pypi_0 pypi
lazy-object-proxy 1.4.3 py37he774522_0
libarchive 3.3.3 h0643e63_5
libcurl 7.68.0 h2a8f88b_0
libgpuarray 0.7.6 hfa6e2cd_0
libiconv 1.15 h1df5818_7
liblief 0.9.0 ha925a31_2
libpng 1.6.37 h2a8f88b_0
libpython 2.1 py37_0
librosa 0.7.2 pypi_0 pypi
libsodium 1.0.16 h9d3ae62_0
libspatialindex 1.9.3 h33f27b4_0
libssh2 1.8.2 h7a1dbc1_0
libtiff 4.1.0 h56a325e_0
libxml2 2.9.9 h464c3ec_0
libxslt 1.1.33 h579f668_0
llvmlite 0.31.0 py37ha925a31_0
locket 0.2.0 py37_1
lxml 4.5.0 py37h1350720_0
lz4-c 1.8.1.2 h2fa13f4_0
lzo 2.10 h6df0209_2
m2w64-binutils 2.25.1 5
m2w64-bzip2 1.0.6 6
m2w64-crt-git 5.0.0.4636.2595836 2
m2w64-gcc 5.3.0 6
m2w64-gcc-ada 5.3.0 6
m2w64-gcc-fortran 5.3.0 6
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gcc-objc 5.3.0 6
m2w64-gmp 6.1.0 2
m2w64-headers-git 5.0.0.4636.c0ad18a 2
m2w64-isl 0.16.1 2
m2w64-libiconv 1.14 6
m2w64-libmangle-git 5.0.0.4509.2e5a9a2 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
m2w64-make 4.1.2351.a80a8b8 2
m2w64-mpc 1.0.3 3
m2w64-mpfr 3.1.4 4
m2w64-pkg-config 0.29.1 2
m2w64-toolchain 5.3.0 7
m2w64-tools-git 5.0.0.4592.90b8472 2
m2w64-windows-default-manifest 6.4 3
m2w64-winpthreads-git 5.0.0.4634.697f757 2
m2w64-zlib 1.2.8 10
mako 1.1.2 py_0
markdown 3.2.1 pypi_0 pypi
markupsafe 1.1.1 py37he774522_0
matplotlib 3.1.3 py37_0
matplotlib-base 3.1.3 py37h64f37c6_0
mccabe 0.6.1 py37_1
menuinst 1.4.16 py37he774522_0
mistune 0.8.4 py37he774522_0
mkl 2020.0 166
mkl-service 2.3.0 py37hb782905_0
mkl_fft 1.0.15 py37h14836fe_0
mkl_random 1.1.0 py37h675688f_0
mock 4.0.1 py_0
more-itertools 8.2.0 py_0
mpmath 1.1.0 py37_0
msgpack-python 0.6.1 py37h74a9793_1
msys2-conda-epoch 20160418 1
multipledispatch 0.6.0 py37_0
munkres 1.1.2 pypi_0 pypi
navigator-updater 0.2.1 py37_0
nbconvert 5.6.1 py37_0
nbformat 5.0.4 py_0
networkx 2.4 py_0
ninja 1.9.0 py37h74a9793_0
nltk 3.4.5 py37_0
nose 1.3.7 py37_2
notebook 6.0.3 py37_0
numba 0.48.0 py37h47e9c7a_0
numexpr 2.7.1 py37h25d0782_0
numpy 1.16.0 pypi_0 pypi
numpydoc 0.9.2 py_0
olefile 0.46 py37_0
opencv-python 4.2.0.34 pypi_0 pypi
openpyxl 3.0.3 py_0
openssl 1.1.1d he774522_4
packaging 20.1 py_0
pandas 1.0.1 py37h47e9c7a_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
paramiko 2.7.1 py_0
parso 0.5.2 py_0
partd 1.1.0 py_0
path 13.1.0 py37_0
path.py 12.4.0 0
pathlib2 2.3.5 py37_0
pathtools 0.1.2 py_1
patsy 0.5.1 py37_0
pep8 1.7.1 py37_0
pexpect 4.8.0 py37_0
pickleshare 0.7.5 py37_0
pillow 7.0.0 py37hcc1f983_0
pip 20.0.2 py37_1
pkginfo 1.5.0.1 py37_0
pluggy 0.13.1 py37_0
ply 3.11 py37_0
powershell_shortcut 0.0.1 3
progressbar 2.5 pypi_0 pypi
prometheus_client 0.7.1 py_0
prompt_toolkit 3.0.3 py_0
protobuf 3.11.3 pypi_0 pypi
psutil 5.6.7 py37he774522_0
py 1.8.1 py_0
py-lief 0.9.0 py37ha925a31_2
pyannote-algorithms 0.8 pypi_0 pypi
pyannote-core 3.7.1 pypi_0 pypi
pyannote-parser 0.8 pypi_0 pypi
pycodestyle 2.5.0 py37_0
pycosat 0.6.3 py37he774522_0
pycparser 2.19 py37_0
pycrypto 2.6.1 py37hfa6e2cd_9
pycurl 7.43.0.5 py37h7a1dbc1_0
pydocstyle 4.0.1 py_0
pydub 0.23.1 pypi_0 pypi
pyflakes 2.1.1 py37_0
pygame 1.9.6 pypi_0 pypi
pygments 2.5.2 py_0
pygpu 0.7.6 py37hc8d92b1_1000 conda-forge
pylint 2.4.4 py37_0
pynacl 1.3.0 py37h62dcd97_0
pyodbc 4.0.30 py37ha925a31_0
pyopengl 3.1.5 pypi_0 pypi
pyopenssl 19.1.0 py37_0
pyparsing 2.4.6 py_0
pyqt 5.9.2 py37h6538335_2
pyreadline 2.1 py37_1
pyro4 4.79 pypi_0 pypi
pyrsistent 0.15.7 py37he774522_0
pysocks 1.7.1 py37_0
pytables 3.6.1 py37h1da0976_0
pytest 5.3.5 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.8.0 py_0
pytest-astropy-header 0.1.2 py_0
pytest-doctestplus 0.5.0 py_0
pytest-openfiles 0.4.0 py_0
pytest-remotedata 0.3.2 py37_0
python 3.7.6 h60c2a47_2
python-dateutil 2.8.1 py_0
python-jsonrpc-server 0.3.4 py_0
python-language-server 0.31.7 py37_0
python-libarchive-c 2.8 py37_13
python_abi 3.7 1_cp37m conda-forge
pytorch 1.4.0 py3.7_cuda101_cudnn7_0 pytorch
pytz 2019.3 py_0
pywavelets 1.1.1 py37he774522_0
pywin32 227 py37he774522_1
pywin32-ctypes 0.2.0 py37_1000
pywinpty 0.5.7 py37_0
pyyaml 5.3 py37he774522_0
pyzmq 18.1.1 py37ha925a31_0
qdarkstyle 2.8 py_0
qt 5.9.7 vc14h73c81de_0
qtawesome 0.6.1 py_0
qtconsole 4.6.0 py_1
qtpy 1.9.0 py_0
requests 2.22.0 py37_1
resampy 0.2.2 pypi_0 pypi
rope 0.16.0 py_0
rtree 0.9.3 py37h21ff451_0
ruamel_yaml 0.15.87 py37he774522_0
s3transfer 0.3.3 pypi_0 pypi
scikit-image 0.16.2 py37h47e9c7a_0
scikit-learn 0.22.1 py37h6288b17_0
scipy 1.4.1 py37h9439919_0
seaborn 0.10.0 py_0
send2trash 1.5.0 py37_0
serpent 1.30.2 pypi_0 pypi
setuptools 45.2.0 py37_0
sidekit 1.3.6.6 pypi_0 pypi
simplegeneric 0.8.1 py37_2
simplejson 3.17.0 pypi_0 pypi
singledispatch 3.4.0.3 py37_0
sip 4.19.8 py37h6538335_0
six 1.14.0 py37_0
snappy 1.1.7 h777316e_3
snowballstemmer 2.0.0 py_0
sortedcollections 1.1.2 py37_0
sortedcontainers 2.1.0 py37_0
soundfile 0.10.3.post1 pypi_0 pypi
soupsieve 1.9.5 py37_0
spectralcluster 0.0.9 pypi_0 pypi
sphinx 2.4.0 py_0
sphinxcontrib 1.0 py37_1
sphinxcontrib-applehelp 1.0.1 py_0
sphinxcontrib-devhelp 1.0.1 py_0
sphinxcontrib-htmlhelp 1.0.2 py_0
sphinxcontrib-jsmath 1.0.1 py_0
sphinxcontrib-qthelp 1.0.2 py_0
sphinxcontrib-serializinghtml 1.1.3 py_0
sphinxcontrib-websupport 1.2.0 py_0
spyder 4.0.1 py37_0
spyder-kernels 1.8.1 py37_0
sqlalchemy 1.3.13 py37he774522_0
sqlite 3.31.1 he774522_0
statsmodels 0.11.0 py37he774522_0
sympy 1.5.1 py37_0
tbb 2020.0 h74a9793_0
tblib 1.6.0 py_0
tensorboard 1.14.0 pypi_0 pypi
tensorflow-estimator 1.14.0 pypi_0 pypi
tensorflow-gpu 1.14.0 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
terminado 0.8.3 py37_0
testpath 0.4.4 py_0
theano 1.0.4+51.gf1e4ec47c pypi_0 pypi
tk 8.6.8 hfa6e2cd_0
toolz 0.10.0 py_0
torchvision 0.5.0 py37_cu101 pytorch
tornado 6.0.3 py37he774522_3
tqdm 4.42.1 py_0
traitlets 4.3.3 py37_0
typing-extensions 3.7.4.2 pypi_0 pypi
ujson 1.35 py37hfa6e2cd_0
unicodecsv 0.14.1 py37_0
urllib3 1.25.8 py37_0
vc 14.1 h0510ff6_4
video-module 0.0.1 dev_0 <develop>
vs2015_runtime 14.16.27012 hf0eaf9b_1
watchdog 0.10.2 py37_0
wcwidth 0.1.8 py_0
webencodings 0.5.1 py37_1
webrtcvad 2.0.10 pypi_0 pypi
werkzeug 1.0.0 py_0
wheel 0.34.2 py37_0
widgetsnbextension 3.5.1 py37_0
win_inet_pton 1.1.0 py37_0
win_unicode_console 0.5 py37_0
wincertstore 0.2 py37_0
winpty 0.4.3 4
wrapt 1.11.2 py37he774522_0
xarray 0.15.1 pypi_0 pypi
xlrd 1.2.0 py37_0
xlsxwriter 1.2.7 py_0
xlwings 0.17.1 py37_0
xlwt 1.3.0 py37_0
xmltodict 0.12.0 py_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
yapf 0.28.0 py_0
zeromq 4.3.1 h33f27b4_3
zict 1.0.0 py_0
zipp 2.2.0 py_0
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0
Create two different virtual environments. One for the CPU and another for the GPU. In the CPU install the TensorFlow CPU and in the GPU use the TensorFlow GPU. See if it works well separately.

Error trying to generate a jupyter notebook config file

I want to change some settings in the jupyter notebook interface --- e.g., display line numbers, display right margin guide --- so that they are always displayed.
Since my ~/.jupyter/ dir contains only one file (migrated) and no /nbconfig/ dir or notebook.json file, I ran jupyter notebook --generate-config at the prompt to create a new config file. This produced a couple errors related to sqlite3 and pysqlite2.
I checked my installed packages and I do have sqlite 3.26.0 installed, though not pysqlite2.
From the error message I'm not sure if the second error related to pysqlite2 is raised only b/c sqlite3 wasn't found, or if I need to install pysqlite2. If it's required for such a basic operation as creating a config file I'm wondering why it wouldn't be part of the Anaconda full install I did a few weeks ago.
I'm on Windows 10 running Anaconda 2018.12, anaconda-client 1.7.2, jupyter notebook server 5.7.4-f6790e4 on Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)], IPython 7.2.0.
Here's the commands and full output in case seeing other installed packages is helpful:
k#DESKTOP-VAQRJL8 MINGW64 ~ (master)
$ jupyter notebook --generate-config
Traceback (most recent call last):
File "C:\Users\karls\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 10, in <module>
import sqlite3
File "C:\Users\karls\Anaconda3\lib\sqlite3\__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "C:\Users\karls\Anaconda3\lib\sqlite3\dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: DLL load failed: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\karls\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\karls\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 86, in <module>
from .services.sessions.sessionmanager import SessionManager
File "C:\Users\karls\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 13, in <module>
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'
k#DESKTOP-VAQRJL8 MINGW64 ~ (master)
$ conda list
# packages in environment at C:\Users\karls\Anaconda3:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
alabaster 0.7.12 py37_0
anaconda 2018.12 py37_0
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.6 py37_0
anaconda-project 0.8.2 py37_0
asn1crypto 0.24.0 py37_0
astroid 2.1.0 py37_0
astropy 3.1 py37he774522_0
atomicwrites 1.2.1 py37_0
attrs 18.2.0 py37h28b3542_0
babel 2.6.0 py37_0
backcall 0.1.0 py37_0
backports 1.0 py37_1
backports.os 0.1.1 py37_0
backports.shutil_get_terminal_size 1.0.0 py37_2
bcrypt 3.1.6 pypi_0 pypi
beautifulsoup4 4.6.3 py37_0
bitarray 0.8.3 py37hfa6e2cd_0
bkcharts 0.2 py37_0
blas 1.0 mkl
blaze 0.11.3 py37_0
bleach 3.0.2 py37_0
blosc 1.14.4 he51fdeb_0
bokeh 1.0.2 py37_0
boto 2.49.0 py37_0
bottleneck 1.2.1 py37h452e1ab_1
bzip2 1.0.6 hfa6e2cd_5
ca-certificates 2018.03.07 0
certifi 2018.11.29 py37_0
cffi 1.11.5 py37h74b6da3_1
chardet 3.0.4 py37_1
click 7.0 py37_0
cloudpickle 0.6.1 py37_0
clyent 1.2.2 py37_1
colorama 0.4.1 py37_0
comtypes 1.1.7 py37_0
conda 4.6.3 py37_0
conda-build 3.17.6 py37_0
conda-env 2.6.0 1
conda-verify 3.1.1 py37_0
console_shortcut 0.1.1 3
contextlib2 0.5.5 py37_0
cryptography 2.4.2 py37h7a1dbc1_0
curl 7.63.0 h2a8f88b_1000
cycler 0.10.0 py37_0
cython 0.29.2 py37ha925a31_0
cytoolz 0.9.0.1 py37hfa6e2cd_1
dask 1.0.0 py37_0
dask-core 1.0.0 py37_0
datashape 0.5.4 py37_1
decorator 4.3.0 py37_0
defusedxml 0.5.0 py37_1
distributed 1.25.1 py37_0
dnspython 1.15.0 pypi_0 pypi
docutils 0.14 py37_0
entrypoints 0.2.3 py37_2
et_xmlfile 1.0.1 py37_0
faker 0.8.13 pypi_0 pypi
fastcache 1.0.2 py37hfa6e2cd_2
filelock 3.0.10 py37_0
flask 0.12.4 pypi_0 pypi
flask-bcrypt 0.7.1 pypi_0 pypi
flask-cors 3.0.3 pypi_0 pypi
flask-jwt-extended 3.7.0 pypi_0 pypi
flask-login 0.4.0 pypi_0 pypi
freetype 2.9.1 ha9979f8_1
future 0.17.1 py37_0
get_terminal_size 1.0.0 h38e98db_0
gevent 1.3.7 py37he774522_1
glob2 0.6 py37_1
greenlet 0.4.15 py37hfa6e2cd_0
h5py 2.8.0 py37h3bdd7fb_2
hdf5 1.10.2 hac2f561_1
heapdict 1.0.0 py37_2
html5lib 1.0.1 py37_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
idna 2.8 py37_0
imageio 2.4.1 py37_0
imagesize 1.1.0 py37_0
importlib_metadata 0.6 py37_0
intel-openmp 2019.1 144
ipykernel 5.1.0 py37h39e3cac_0
ipython 7.2.0 py37h39e3cac_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.4.2 py37_0
isort 4.3.4 py37_0
itsdangerous 1.1.0 py37_0
jdcal 1.4 py37_0
jedi 0.13.2 py37_0
jinja2 2.10 py37_0
jpeg 9b hb83a4c4_2
jsonschema 2.6.0 py37_0
jupyter 1.0.0 py37_7
jupyter-client 5.2.3 pypi_0 pypi
jupyter-console 6.0.0 pypi_0 pypi
jupyter_core 4.4.0 py37_0
jupyterlab 0.35.3 py37_0
jupyterlab_server 0.2.0 py37_0
keyring 17.0.0 py37_0
kiwisolver 1.0.1 py37h6538335_0
krb5 1.16.1 hc04afaa_7
lazy-object-proxy 1.3.1 py37hfa6e2cd_2
libarchive 3.3.3 h0643e63_5
libcurl 7.63.0 h2a8f88b_1000
libiconv 1.15 h1df5818_7
libpng 1.6.35 h2a8f88b_0
libsodium 1.0.16 h9d3ae62_0
libssh2 1.8.0 h7a1dbc1_4
libtiff 4.0.9 h36446d0_2
libxml2 2.9.8 hadb2253_1
libxslt 1.1.32 hf6f1972_0
llvmlite 0.26.0 py37ha925a31_0
locket 0.2.0 py37_1
lxml 4.2.5 py37hef2cd61_0
lz4-c 1.8.1.2 h2fa13f4_0
lzo 2.10 h6df0209_2
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gmp 6.1.0 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
markupsafe 1.1.0 py37he774522_0
matplotlib 3.0.2 py37hc8f65d3_0
mccabe 0.6.1 py37_1
menuinst 1.4.14 py37hfa6e2cd_0
mistune 0.8.4 py37he774522_0
mkl 2019.1 144
mkl-service 1.1.2 py37hb782905_5
mkl_fft 1.0.6 py37h6288b17_0
mkl_random 1.0.2 py37h343c172_0
more-itertools 4.3.0 py37_0
mpmath 1.1.0 py37_0
msgpack-python 0.5.6 py37he980bc4_1
msys2-conda-epoch 20160418 1
multipledispatch 0.6.0 py37_0
navigator-updater 0.2.1 py37_0
nbconvert 5.4.0 py37_1
nbformat 4.4.0 py37_0
networkx 2.2 py37_1
nltk 3.4 py37_1
nose 1.3.7 py37_2
notebook 5.7.4 py37_0
numba 0.41.0 py37hf9181ef_0
numexpr 2.6.8 py37hdce8814_0
numpy 1.15.4 py37h19fb1c0_0
numpy-base 1.15.4 py37hc3f5095_0
numpydoc 0.8.0 py37_0
objgraph 3.4.0 pypi_0 pypi
odo 0.5.1 py37_0
olefile 0.46 py37_0
openpyxl 2.5.12 py37_0
openssl 1.1.1a he774522_0
packaging 18.0 py37_0
pandas 0.23.4 py37h830ac7b_0
pandoc 1.19.2.1 hb2460c7_1
pandocfilters 1.4.2 py37_1
parso 0.3.1 py37_0
partd 0.3.9 py37_0
path.py 11.5.0 py37_0
pathlib2 2.3.3 py37_0
patsy 0.5.1 py37_0
pep8 1.7.1 py37_0
pickleshare 0.7.5 py37_0
pillow 5.3.0 py37hdc69c19_0
pip 18.1 py37_0
pkginfo 1.4.2 py37_1
pluggy 0.8.0 py37_0
ply 3.11 py37_0
prometheus_client 0.5.0 py37_0
prompt-toolkit 2.0.8 pypi_0 pypi
psutil 5.4.8 py37he774522_0
py 1.7.0 py37_0
pycodestyle 2.4.0 py37_0
pycosat 0.6.3 py37hfa6e2cd_0
pycparser 2.19 py37_0
pycrypto 2.6.1 py37hfa6e2cd_9
pycurl 7.43.0.2 py37h7a1dbc1_0
pyflakes 2.0.0 py37_0
pygments 2.3.1 py37_0
pyjwt 1.7.1 pypi_0 pypi
pylint 2.2.2 py37_0
pymongo 3.7.0 pypi_0 pypi
pyodbc 4.0.25 py37ha925a31_0
pyopenssl 18.0.0 py37_0
pyparsing 2.3.0 py37_0
pyqt 5.9.2 py37h6538335_2
pysocks 1.6.8 py37_0
pytables 3.4.4 py37he6f6034_0
pytest 4.0.2 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.5.0 py37_0
pytest-doctestplus 0.2.0 py37_0
pytest-flask 0.10.0 pypi_0 pypi
pytest-openfiles 0.3.1 py37_0
pytest-remotedata 0.3.1 py37_0
python 3.7.1 h8c8aaf0_6
python-dateutil 2.7.5 py37_0
python-graphviz 0.10.1 pypi_0 pypi
python-libarchive-c 2.8 py37_6
pytz 2018.7 py37_0
pywavelets 1.0.1 py37h8c2d366_0
pywin32 223 py37hfa6e2cd_1
pywinpty 0.5.5 py37_1000
pyyaml 3.13 py37hfa6e2cd_0
pyzmq 17.1.2 pypi_0 pypi
qt 5.9.7 vc14h73c81de_0 [vc14]
qtawesome 0.5.3 py37_0
qtconsole 4.4.3 py37_0
qtpy 1.5.2 py37_0
requests 2.21.0 py37_0
rope 0.11.0 py37_0
ruamel_yaml 0.15.46 py37hfa6e2cd_0
scikit-image 0.14.1 py37ha925a31_0
scikit-learn 0.20.1 py37h343c172_0
scipy 1.1.0 py37h29ff71c_2
seaborn 0.9.0 py37_0
send2trash 1.5.0 py37_0
setuptools 40.6.3 py37_0
simplegeneric 0.8.1 py37_2
singledispatch 3.4.0.3 py37_0
sip 4.19.8 py37h6538335_0
six 1.12.0 py37_0
snappy 1.1.7 h777316e_3
snowballstemmer 1.2.1 py37_0
sortedcollections 1.0.1 py37_0
sortedcontainers 2.1.0 py37_0
sphinx 1.8.2 py37_0
sphinxcontrib 1.0 py37_1
sphinxcontrib-websupport 1.1.0 py37_1
spyder 3.3.2 py37_0
spyder-kernels 0.3.0 py37_0
sqlalchemy 1.2.15 py37he774522_0
sqlite 3.26.0 he774522_0
statsmodels 0.9.0 py37h452e1ab_0
sympy 1.3 py37_0
tblib 1.3.2 py37_0
terminado 0.8.1 py37_1
testpath 0.4.2 py37_0
text-unidecode 1.2 pypi_0 pypi
tk 8.6.8 hfa6e2cd_0
toolz 0.9.0 py37_0
tornado 5.1.1 py37hfa6e2cd_0
tqdm 4.28.1 py37h28b3542_0
traitlets 4.3.2 py37_0
unicodecsv 0.14.1 py37_0
urllib3 1.24.1 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.15.26706 h3a45250_0
wcwidth 0.1.7 py37_0
webencodings 0.5.1 py37_1
werkzeug 0.14.1 py37_0
wheel 0.32.3 py37_0
widgetsnbextension 3.4.2 py37_0
win_inet_pton 1.0.1 py37_1
win_unicode_console 0.5 py37_0
wincertstore 0.2 py37_0
winpty 0.4.3 4
wrapt 1.10.11 py37hfa6e2cd_2
xdot 1.0 pypi_0 pypi
xlrd 1.2.0 py37_0
xlsxwriter 1.1.2 py37_0
xlwings 0.15.1 py37_0
xlwt 1.3.0 py37_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zeromq 4.2.5 he025d50_1
zict 0.1.3 py37_0
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0

Categories

Resources