No module named 'matplotlib' after conda installation - python

I created a new environment and added it to jupyter like this:
conda create --name tf_plot tensorflow matplotlib
conda install -c anaconda ipykernel
python -m ipykernel install --user --name tf_plot
but when I try to
import matplotlib
I get ModuleNotFoundError: No module named 'matplotlib'
conda list shows
_tflow_select 2.3.0 eigen
absl-py 0.13.0 py38haa95532_0
aiohttp 3.7.4.post0 py38h2bbff1b_2
astor 0.8.1 py38haa95532_0
astunparse 1.6.3 py_0
async-timeout 3.0.1 py38haa95532_0
attrs 21.2.0 pyhd3eb1b0_0
blas 1.0 mkl
blinker 1.4 py38haa95532_0
brotli 1.0.9 ha925a31_2
brotlipy 0.7.0 py38h2bbff1b_1003
ca-certificates 2021.10.26 haa95532_2
cachetools 4.2.2 pyhd3eb1b0_0
certifi 2021.10.8 py38haa95532_0
cffi 1.15.0 py38h2bbff1b_0
chardet 4.0.0 py38haa95532_1003
charset-normalizer 2.0.4 pyhd3eb1b0_0
click 8.0.3 pyhd3eb1b0_0
coverage 5.5 py38h2bbff1b_2
cryptography 3.4.8 py38h71e12ea_0
cycler 0.10.0 py38_0
cython 0.29.24 py38h604cdb4_0
dataclasses 0.8 pyh6d0b6a4_7
fonttools 4.25.0 pyhd3eb1b0_0
freetype 2.10.4 hd328e21_0
gast 0.4.0 pyhd3eb1b0_0
google-auth 1.33.0 pyhd3eb1b0_0
google-auth-oauthlib 0.4.4 pyhd3eb1b0_0
google-pasta 0.2.0 pyhd3eb1b0_0
grpcio 1.36.1 py38hc60d5dd_1
h5py 2.10.0 py38h5e291fa_0
hdf5 1.10.4 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 3.2 pyhd3eb1b0_0
importlib-metadata 4.8.1 py38haa95532_0
intel-openmp 2021.4.0 haa95532_3556
jpeg 9d h2bbff1b_0
keras-applications 1.0.8 py_1
keras-preprocessing 1.1.2 pyhd3eb1b0_0
kiwisolver 1.3.1 py38hd77b12b_0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.17.2 h23ce68f_1
libtiff 4.2.0 hd0e1b90_0
libwebp 1.2.0 h2bbff1b_0
lz4-c 1.9.3 h2bbff1b_1
markdown 3.3.4 py38haa95532_0
matplotlib 3.4.3 py38haa95532_0
matplotlib-base 3.4.3 py38h49ac443_0
mkl 2021.4.0 haa95532_640
mkl-service 2.4.0 py38h2bbff1b_0
mkl_fft 1.3.1 py38h277e83a_0
mkl_random 1.2.2 py38hf11a4ad_0
multidict 5.1.0 py38h2bbff1b_2
munkres 1.1.4 py_0
numpy 1.21.2 py38hfca59bb_0
numpy-base 1.21.2 py38h0829f74_0
oauthlib 3.1.1 pyhd3eb1b0_0
olefile 0.46 pyhd3eb1b0_0
openssl 1.1.1l h2bbff1b_0
opt_einsum 3.3.0 pyhd3eb1b0_1
pillow 8.4.0 py38hd45dc43_0
pip 21.2.2 py38haa95532_0
protobuf 3.17.2 py38hd77b12b_0
pyasn1 0.4.8 pyhd3eb1b0_0
pyasn1-modules 0.2.8 py_0
pycparser 2.21 pyhd3eb1b0_0
pyjwt 2.1.0 py38haa95532_0
pyopenssl 21.0.0 pyhd3eb1b0_1
pyparsing 3.0.4 pyhd3eb1b0_0
pyqt 5.9.2 py38ha925a31_4
pyreadline 2.1 py38_1
pysocks 1.7.1 py38haa95532_0
python 3.8.12 h6244533_0
python-dateutil 2.8.2 pyhd3eb1b0_0
qt 5.9.7 vc14h73c81de_0
requests 2.26.0 pyhd3eb1b0_0
requests-oauthlib 1.3.0 py_0
rsa 4.7.2 pyhd3eb1b0_1
scipy 1.7.1 py38hbe87c03_2
setuptools 58.0.4 py38haa95532_0
sip 4.19.13 py38ha925a31_0
six 1.16.0 pyhd3eb1b0_0
sqlite 3.36.0 h2bbff1b_0
tensorboard 2.4.0 pyhc547734_0
tensorboard-plugin-wit 1.6.0 py_0
tensorflow 2.3.0 mkl_py38h8c0d9a2_0
tensorflow-base 2.3.0 eigen_py38h75a453f_0
tensorflow-estimator 2.6.0 pyh7b7c402_0
termcolor 1.1.0 py38haa95532_1
tk 8.6.11 h2bbff1b_0
tornado 6.1 py38h2bbff1b_0
typing-extensions 3.10.0.2 hd3eb1b0_0
typing_extensions 3.10.0.2 pyh06a4308_0
urllib3 1.26.7 pyhd3eb1b0_0
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
werkzeug 2.0.2 pyhd3eb1b0_0
wheel 0.37.0 pyhd3eb1b0_1
win_inet_pton 1.1.0 py38haa95532_0
wincertstore 0.2 py38haa95532_2
wrapt 1.12.1 py38he774522_1
xz 5.2.5 h62dcd97_0
yarl 1.6.3 py38h2bbff1b_0
zipp 3.6.0 pyhd3eb1b0_0
zlib 1.2.11 h62dcd97_4
zstd 1.4.9 h19a0ad4_0
This sentence is here because stackoverflow requires me to add more details to this question but I'm not sure what more info can I provide. If this question is unclear in any way please inform me about this in the comments and I'll edit it

Going by the SO answer here the virtual environment named tf_plot needs to be activated first before import. i.e,
conda activate -n tf_plot
Please check conda documentation here for more details

Related

Can't open jupyter and get an import error

Last time I closed jupyter, there were a few files running(not sure if this had an effect on this problem) Now when trying to run it, it gives me an error. I tried running pip install markupsafe==2.0.1 in my command prompt and that didn't work. I've provided my pip and conda lists below because I believe some upgrade or installation that I did caused this. I had just installed a few things today.
Traceback (most recent call last):
File "C:\Users\crist\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\crist\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 44, in <module>
from jinja2 import Environment, FileSystemLoader
File "C:\Users\crist\Anaconda3\lib\site-packages\jinja2\__init__.py", line 12, in <module>
from .environment import Environment
File "C:\Users\crist\Anaconda3\lib\site-packages\jinja2\environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "C:\Users\crist\Anaconda3\lib\site-packages\jinja2\defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "C:\Users\crist\Anaconda3\lib\site-packages\jinja2\filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\crist\Anaconda3\lib\site-packages\markupsafe\__init__.py)
Conda list:
_anaconda_depends 2022.05 py39_0
_ipyw_jlab_nb_ext_conf 0.1.0 py39haa95532_0
absl-py 0.15.0 pypi_0 pypi
aiohttp 3.8.1 py39h2bbff1b_1
aiosignal 1.2.0 pyhd3eb1b0_0
alabaster 0.7.12 pyhd3eb1b0_0
anaconda custom py39_1
anaconda-client 1.9.0 py39haa95532_0
anaconda-navigator 2.2.0 py39haa95532_0
anaconda-project 0.10.2 pyhd3eb1b0_0
anyio 3.5.0 py39haa95532_0
appdirs 1.4.4 pyhd3eb1b0_0
argon2-cffi 21.3.0 pyhd3eb1b0_0
argon2-cffi-bindings 21.2.0 py39h2bbff1b_0
arrow 1.2.2 pyhd3eb1b0_0
astroid 2.6.6 py39haa95532_0
astropy 5.0.4 py39h080aedc_0
asttokens 2.0.5 pyhd3eb1b0_0
astunparse 1.6.3 pypi_0 pypi
async-timeout 4.0.1 pyhd3eb1b0_0
atomicwrites 1.4.0 py_0
attrs 21.4.0 pyhd3eb1b0_0
automat 20.2.0 py_0
autopep8 1.6.0 pyhd3eb1b0_0
babel 2.9.1 pyhd3eb1b0_0
backcall 0.2.0 pyhd3eb1b0_0
backports 1.1 pyhd3eb1b0_0
backports.functools_lru_cache 1.6.4 pyhd3eb1b0_0
backports.tempfile 1.0 pyhd3eb1b0_1
backports.weakref 1.0.post1 py_1
bcrypt 3.2.0 py39h196d8e1_0
beautifulsoup4 4.11.1 py39haa95532_0
binaryornot 0.4.4 pyhd3eb1b0_1
bitarray 2.4.1 py39h2bbff1b_0
bkcharts 0.2 py39haa95532_0
black 19.10b0 py_0
blas 1.0 mkl
bleach 4.1.0 pyhd3eb1b0_0
blosc 1.21.0 h19a0ad4_0
bokeh 2.4.2 py39haa95532_0
boto3 1.21.32 pyhd3eb1b0_0
botocore 1.24.32 pyhd3eb1b0_0
bottleneck 1.3.4 py39h080aedc_0
brotli 1.0.9 ha925a31_2
brotlipy 0.7.0 py39h2bbff1b_1003
bzip2 1.0.8 he774522_0
ca-certificates 2022.07.19 haa95532_0
cachetools 5.2.0 pypi_0 pypi
certifi 2022.9.24 py39haa95532_0
cffi 1.15.0 py39h2bbff1b_1
cfitsio 3.470 he774522_6
chardet 4.0.0 py39haa95532_1003
charls 2.2.0 h6c2663c_0
charset-normalizer 2.1.1 pypi_0 pypi
click 8.0.4 py39haa95532_0
cloudpickle 2.0.0 pyhd3eb1b0_0
clyent 1.2.2 py39haa95532_1
colorama 0.4.4 pyhd3eb1b0_0
colorcet 2.0.6 pyhd3eb1b0_0
comtypes 1.1.10 py39haa95532_1002
conda 22.9.0 py39haa95532_0
conda-build 3.21.8 py39haa95532_2
conda-content-trust 0.1.1 pyhd3eb1b0_0
conda-env 2.6.0 haa95532_1
conda-pack 0.6.0 pyhd3eb1b0_0
conda-package-handling 1.8.1 py39h8cc25b3_0
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
constantly 15.1.0 pyh2b92418_0
cookiecutter 1.7.3 pyhd3eb1b0_0
cryptography 3.4.8 py39h71e12ea_0
cssselect 1.1.0 pyhd3eb1b0_0
curl 7.82.0 h2bbff1b_0
cycler 0.11.0 pyhd3eb1b0_0
cython 0.29.28 py39hd77b12b_0
cytoolz 0.11.0 py39h2bbff1b_0
daal4py 2021.5.0 py39h8cb3d55_0
dal 2021.5.0 haa95532_796
dask 2022.2.1 pyhd3eb1b0_0
dask-core 2022.2.1 pyhd3eb1b0_0
dataclasses 0.8 pyh6d0b6a4_7
datashader 0.13.0 pyhd3eb1b0_1
datashape 0.5.4 py39haa95532_1
debugpy 1.5.1 py39hd77b12b_0
decorator 5.1.1 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
diff-match-patch 20200713 pyhd3eb1b0_0
dill 0.3.5.1 pypi_0 pypi
distributed 2022.2.1 pyhd3eb1b0_0
docutils 0.17.1 py39haa95532_1
entrypoints 0.4 py39haa95532_0
et_xmlfile 1.1.0 py39haa95532_0
executing 0.8.3 pyhd3eb1b0_0
filelock 3.6.0 pyhd3eb1b0_0
flake8 3.9.2 pyhd3eb1b0_0
flask 1.1.2 pyhd3eb1b0_0
flatbuffers 1.12 pypi_0 pypi
fonttools 4.25.0 pyhd3eb1b0_0
freetype 2.10.4 hd328e21_0
frozenlist 1.2.0 py39h2bbff1b_0
fsspec 2022.2.0 pyhd3eb1b0_0
future 0.18.2 py39haa95532_1
gast 0.4.0 pypi_0 pypi
gensim 4.1.2 py39hd77b12b_0
giflib 5.2.1 h62dcd97_0
glob2 0.7 pyhd3eb1b0_0
google-api-core 1.25.1 pyhd3eb1b0_0
google-auth 2.12.0 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
google-cloud-core 1.7.1 pyhd3eb1b0_0
google-cloud-storage 1.31.0 py_0
google-crc32c 1.1.2 py39h2bbff1b_0
google-pasta 0.2.0 pypi_0 pypi
google-resumable-media 1.3.1 pyhd3eb1b0_1
googleapis-common-protos 1.53.0 py39h2eaa2aa_0
greenlet 1.1.1 py39hd77b12b_0
grpcio 1.34.1 pypi_0 pypi
h5py 3.1.0 pypi_0 pypi
hdf5 1.10.6 h7ebc959_0
heapdict 1.0.1 pyhd3eb1b0_0
holoviews 1.14.8 pyhd3eb1b0_0
hvplot 0.7.3 pyhd3eb1b0_1
hyperlink 21.0.0 pyhd3eb1b0_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 3.4 pypi_0 pypi
imagecodecs 2021.8.26 py39ha1f97ea_0
imageio 2.9.0 pyhd3eb1b0_0
imagesize 1.3.0 pyhd3eb1b0_0
importlib-metadata 5.0.0 pypi_0 pypi
importlib_metadata 4.11.3 hd3eb1b0_0
incremental 21.3.0 pyhd3eb1b0_0
inflection 0.5.1 py39haa95532_0
iniconfig 1.1.1 pyhd3eb1b0_0
intake 0.6.5 pyhd3eb1b0_0
intel-openmp 2021.4.0 haa95532_3556
intervaltree 3.1.0 pyhd3eb1b0_0
ipykernel 6.9.1 py39haa95532_0
ipython 8.2.0 py39haa95532_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 7.6.5 pyhd3eb1b0_1
isort 5.9.3 pyhd3eb1b0_0
itemadapter 0.3.0 pyhd3eb1b0_0
itemloaders 1.0.4 pyhd3eb1b0_1
itsdangerous 2.0.1 pyhd3eb1b0_0
jdcal 1.4.1 pyhd3eb1b0_0
jedi 0.18.1 py39haa95532_1
jinja2 2.11.3 pyhd3eb1b0_0
jinja2-time 0.2.0 pyhd3eb1b0_3
jmespath 0.10.0 pyhd3eb1b0_0
joblib 1.1.0 pyhd3eb1b0_0
jpeg 9e h2bbff1b_0
jq 1.6 haa95532_1
json5 0.9.6 pyhd3eb1b0_0
jsonschema 4.4.0 py39haa95532_0
jupyter 1.0.0 py39haa95532_7
jupyter_client 6.1.12 pyhd3eb1b0_0
jupyter_console 6.4.0 pyhd3eb1b0_0
jupyter_core 4.9.2 py39haa95532_0
jupyter_server 1.13.5 pyhd3eb1b0_0
jupyterlab 3.3.2 pyhd3eb1b0_0
jupyterlab_pygments 0.1.2 py_0
jupyterlab_server 2.10.3 pyhd3eb1b0_1
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1
keras-nightly 2.5.0.dev2021032900 pypi_0 pypi
keras-preprocessing 1.1.2 pypi_0 pypi
keyring 23.4.0 py39haa95532_0
kiwisolver 1.3.2 py39hd77b12b_0
lazy-object-proxy 1.6.0 py39h2bbff1b_0
lcms2 2.12 h83e58a3_0
lerc 3.0 hd77b12b_0
libaec 1.0.4 h33f27b4_1
libarchive 3.4.2 h5e25573_0
libcrc32c 1.1.1 ha925a31_2
libcurl 7.82.0 h86230a5_0
libdeflate 1.8 h2bbff1b_5
libiconv 1.16 h2bbff1b_2
liblief 0.11.5 hd77b12b_1
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.19.1 h23ce68f_0
libspatialindex 1.9.3 h6c2663c_0
libssh2 1.10.0 hcd4344a_0
libtiff 4.2.0 hd0e1b90_0
libwebp 1.2.2 h2bbff1b_0
libxml2 2.9.12 h0ad7f3c_0
libxslt 1.1.34 he774522_0
libzopfli 1.0.3 ha925a31_0
llvmlite 0.38.0 py39h23ce68f_0
locket 0.2.1 py39haa95532_2
lxml 4.8.0 py39h1985fb9_0
lz4-c 1.9.3 h2bbff1b_1
lzo 2.10 he774522_2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
markdown 3.4.1 pypi_0 pypi
matplotlib 3.5.1 py39haa95532_1
matplotlib-base 3.5.1 py39hd77b12b_1
matplotlib-inline 0.1.2 pyhd3eb1b0_2
mccabe 0.6.1 py39haa95532_1
menuinst 1.4.18 py39h59b6b97_0
mistune 0.8.4 py39h2bbff1b_1000
mkl 2021.4.0 haa95532_640
mkl-service 2.4.0 py39h2bbff1b_0
mkl_fft 1.3.1 py39h277e83a_0
mkl_random 1.2.2 py39hf11a4ad_0
mock 4.0.3 pyhd3eb1b0_0
mpmath 1.2.1 py39haa95532_0
msgpack-python 1.0.2 py39h59b6b97_1
msys2-conda-epoch 20160418 1
multidict 5.1.0 py39h2bbff1b_2
multipledispatch 0.6.0 py39haa95532_0
munkres 1.1.4 py_0
mypy_extensions 0.4.3 py39haa95532_1
navigator-updater 0.2.1 py39_1
nbclassic 0.3.5 pyhd3eb1b0_0
nbclient 0.5.13 py39haa95532_0
nbconvert 6.4.4 py39haa95532_0
nbformat 5.3.0 py39haa95532_0
nest-asyncio 1.5.5 py39haa95532_0
networkx 2.7.1 pyhd3eb1b0_0
nltk 3.4 pypi_0 pypi
nose 1.3.7 pyhd3eb1b0_1008
notebook 6.4.8 py39haa95532_0
numba 0.55.1 py39hf11a4ad_0
numexpr 2.8.1 py39hb80d3ca_0
numpy 1.19.5 pypi_0 pypi
numpy-base 1.21.5 py39hca35cd5_1
numpydoc 1.2 pyhd3eb1b0_0
oauthlib 3.2.1 pypi_0 pypi
olefile 0.46 pyhd3eb1b0_0
openjpeg 2.4.0 h4fc8c34_0
openpyxl 3.0.9 pyhd3eb1b0_0
openssl 1.1.1q h2bbff1b_0
opt-einsum 3.3.0 pypi_0 pypi
packaging 21.3 pyhd3eb1b0_0
pandas 1.4.2 py39hd77b12b_0
pandocfilters 1.5.0 pyhd3eb1b0_0
panel 0.13.0 py39haa95532_0
param 1.12.0 pyhd3eb1b0_0
paramiko 2.8.1 pyhd3eb1b0_0
parsel 1.6.0 py39haa95532_0
parso 0.8.3 pyhd3eb1b0_0
partd 1.2.0 pyhd3eb1b0_1
pathspec 0.7.0 py_0
patsy 0.5.2 py39haa95532_1
pep8 1.7.1 py39haa95532_0
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 9.0.1 py39hdc2b20a_0
pip 22.2.2 pypi_0 pypi
pkginfo 1.8.2 pyhd3eb1b0_0
plotly 5.6.0 pyhd3eb1b0_0
pluggy 1.0.0 py39haa95532_1
powershell_shortcut 0.0.1 3
poyo 0.5.0 pyhd3eb1b0_0
prometheus_client 0.13.1 pyhd3eb1b0_0
prompt-toolkit 3.0.20 pyhd3eb1b0_0
prompt_toolkit 3.0.20 hd3eb1b0_0
protego 0.1.16 py_0
protobuf 3.19.6 pypi_0 pypi
psutil 5.8.0 py39h2bbff1b_1
ptyprocess 0.7.0 pyhd3eb1b0_2
pure_eval 0.2.2 pyhd3eb1b0_0
py 1.11.0 pyhd3eb1b0_0
py-lief 0.11.5 py39hd77b12b_1
pyasn1 0.4.8 pyhd3eb1b0_0
pyasn1-modules 0.2.8 pypi_0 pypi
pycodestyle 2.7.0 pyhd3eb1b0_0
pycosat 0.6.3 py39h2bbff1b_0
pycparser 2.21 pyhd3eb1b0_0
pyct 0.4.6 py39haa95532_0
pycurl 7.44.1 py39hcd4344a_1
pydispatcher 2.0.5 py39haa95532_2
pydocstyle 6.1.1 pyhd3eb1b0_0
pyerfa 2.0.0 py39h2bbff1b_0
pyflakes 2.3.1 pyhd3eb1b0_0
pygments 2.11.2 pyhd3eb1b0_0
pyhamcrest 2.0.2 pyhd3eb1b0_2
pyjwt 2.1.0 py39haa95532_0
pylint 2.9.6 py39haa95532_1
pyls-spyder 0.4.0 pyhd3eb1b0_0
pynacl 1.4.0 py39hbd8134f_1
pyodbc 4.0.32 py39hd77b12b_1
pyopenssl 21.0.0 pyhd3eb1b0_1
pyparsing 3.0.4 pyhd3eb1b0_0
pyqt 5.9.2 py39hd77b12b_6
pyreadline 2.1 py39haa95532_1
pyrsistent 0.18.0 py39h196d8e1_0
pysocks 1.7.1 py39haa95532_0
pytables 3.6.1 py39h56d22b6_1
pytest 7.1.1 py39haa95532_0
python 3.9.12 h6244533_0
python-dateutil 2.8.2 pyhd3eb1b0_0
python-fastjsonschema 2.15.1 pyhd3eb1b0_0
python-levenshtein 0.12.2 pypi_0 pypi
python-libarchive-c 2.9 pyhd3eb1b0_1
python-lsp-black 1.0.0 pyhd3eb1b0_0
python-lsp-jsonrpc 1.0.0 pyhd3eb1b0_0
python-lsp-server 1.2.4 pyhd3eb1b0_0
python-slugify 5.0.2 pyhd3eb1b0_0
python-snappy 0.6.0 py39hd77b12b_3
pytz 2021.3 pyhd3eb1b0_0
pyviz_comms 2.0.2 pyhd3eb1b0_0
pywavelets 1.3.0 py39h2bbff1b_0
pywin32 302 py39h2bbff1b_2
pywin32-ctypes 0.2.0 py39haa95532_1000
pywinpty 2.0.2 py39h5da7b33_0
pyyaml 6.0 py39h2bbff1b_1
pyzmq 22.3.0 py39hd77b12b_2
qdarkstyle 3.0.2 pyhd3eb1b0_0
qstylizer 0.1.10 pyhd3eb1b0_0
qt 5.9.7 vc14h73c81de_0
qtawesome 1.0.3 pyhd3eb1b0_0
qtconsole 5.3.0 pyhd3eb1b0_0
qtpy 2.0.1 pyhd3eb1b0_0
queuelib 1.5.0 py39haa95532_0
regex 2022.3.15 py39h2bbff1b_0
requests 2.28.1 pypi_0 pypi
requests-file 1.5.1 pyhd3eb1b0_0
requests-oauthlib 1.3.1 pypi_0 pypi
rope 0.22.0 pyhd3eb1b0_0
rsa 4.9 pypi_0 pypi
rtree 0.9.7 py39h2eaa2aa_1
ruamel_yaml 0.15.100 py39h2bbff1b_0
s3transfer 0.5.0 pyhd3eb1b0_0
scikit-image 0.19.2 py39hf11a4ad_0
scikit-learn 1.0.2 py39hf11a4ad_1
scikit-learn-intelex 2021.5.0 py39haa95532_0
scipy 1.7.3 py39h0a974cb_0
scrapy 2.6.1 py39haa95532_0
seaborn 0.11.2 pyhd3eb1b0_0
send2trash 1.8.0 pyhd3eb1b0_1
service_identity 18.1.0 pyhd3eb1b0_1
setuptools 65.4.1 pypi_0 pypi
singledispatch 3.7.0 pypi_0 pypi
sip 4.19.13 py39hd77b12b_0
six 1.15.0 pypi_0 pypi
smart_open 5.1.0 pyhd3eb1b0_0
snappy 1.1.9 h6c2663c_0
sniffio 1.2.0 py39haa95532_1
snowballstemmer 2.2.0 pyhd3eb1b0_0
sortedcollections 2.1.0 pyhd3eb1b0_0
sortedcontainers 2.4.0 pyhd3eb1b0_0
soupsieve 2.3.1 pyhd3eb1b0_0
sphinx 4.4.0 pyhd3eb1b0_0
sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-htmlhelp 2.0.0 pyhd3eb1b0_0
sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0
sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0
sphinxcontrib-serializinghtml 1.1.5 pyhd3eb1b0_0
spyder 5.1.5 py39haa95532_1
spyder-kernels 2.1.3 py39haa95532_0
sqlalchemy 1.4.32 py39h2bbff1b_0
sqlite 3.38.2 h2bbff1b_0
stack_data 0.2.0 pyhd3eb1b0_0
statsmodels 0.13.2 py39h2bbff1b_0
sympy 1.10.1 py39haa95532_0
tabulate 0.8.9 py39haa95532_0
tbb 2021.5.0 h59b6b97_0
tbb4py 2021.5.0 py39h59b6b97_0
tblib 1.7.0 pyhd3eb1b0_0
tenacity 8.0.1 py39haa95532_0
tensorboard 2.10.1 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
tensorflow 2.5.0 pypi_0 pypi
tensorflow-estimator 2.5.0 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
terminado 0.13.1 py39haa95532_0
testpath 0.5.0 pyhd3eb1b0_0
text-unidecode 1.3 pyhd3eb1b0_0
textdistance 4.2.1 pyhd3eb1b0_0
threadpoolctl 2.2.0 pyh0d69192_0
three-merge 0.1.1 pyhd3eb1b0_0
tifffile 2021.7.2 pyhd3eb1b0_2
tinycss 0.4 pyhd3eb1b0_1002
tk 8.6.11 h2bbff1b_0
tldextract 3.2.0 pyhd3eb1b0_0
toml 0.10.2 pyhd3eb1b0_0
tomli 1.2.2 pyhd3eb1b0_0
toolz 0.11.2 pyhd3eb1b0_0
tornado 6.1 py39h2bbff1b_0
tqdm 4.64.0 py39haa95532_0
traitlets 5.1.1 pyhd3eb1b0_0
twisted 22.2.0 py39h2bbff1b_0
twisted-iocpsupport 1.0.2 py39h2bbff1b_0
typed-ast 1.4.3 py39h2bbff1b_1
typing-extensions 3.7.4.3 pypi_0 pypi
typing_extensions 4.1.1 pyh06a4308_0
tzdata 2022a hda174b7_0
ujson 5.1.0 py39hd77b12b_0
unidecode 1.2.0 pyhd3eb1b0_0
urllib3 1.26.12 pypi_0 pypi
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
w3lib 1.21.0 pyhd3eb1b0_0
watchdog 2.1.6 py39haa95532_0
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py39haa95532_1
websocket-client 0.58.0 py39haa95532_4
werkzeug 2.2.2 pypi_0 pypi
wheel 0.37.1 pypi_0 pypi
widgetsnbextension 3.5.2 py39haa95532_0
win_inet_pton 1.1.0 py39haa95532_0
win_unicode_console 0.5 py39haa95532_0
wincertstore 0.2 py39haa95532_2
winpty 0.4.3 4
wrapt 1.12.1 py39h196d8e1_1
xarray 0.20.1 pyhd3eb1b0_1
xgboost 1.6.2 pypi_0 pypi
xlrd 2.0.1 pyhd3eb1b0_0
xlsxwriter 3.0.3 pyhd3eb1b0_0
xlwings 0.24.9 py39haa95532_0
xz 5.2.5 h62dcd97_0
yaml 0.2.5 he774522_0
yapf 0.31.0 pyhd3eb1b0_0
yarl 1.6.3 py39h2bbff1b_0
zfp 0.5.5 hd77b12b_6
zict 2.0.0 pyhd3eb1b0_0
zipp 3.9.0 pypi_0 pypi
zlib 1.2.12 h8cc25b3_2
zope 1.0 py39haa95532_1
zope.interface 5.4.0 py39h2bbff1b_0
zstd 1.4.9 h19a0ad4_0
Pip list:
ansi2html 1.8.0
arrow 1.2.3
asttokens 2.0.8
attrs 22.1.0
aws-lambda-builders 1.19.0
aws-sam-cli 1.59.0
aws-sam-translator 1.52.0
backcall 0.2.0
backports.zoneinfo 0.2.1
binaryornot 0.4.4
boto3 1.24.89
botocore 1.27.89
Brotli 1.0.9
category-encoders 2.5.1.post0
certifi 2020.11.8
chardet 3.0.4
charset-normalizer 2.1.1
chevron 0.14.0
chromedriver-py 81.0.4044.69
click 8.1.3
colorama 0.4.3
contourpy 1.0.5
cookiecutter 2.1.1
cycler 0.11.0
Cython 3.0.0a11
darkdetect 0.1.1
dash 2.6.2
dash-core-components 2.0.0
dash-html-components 2.0.0
dash-table 5.0.0
dateparser 1.1.1
debugpy 1.6.3
decorator 5.1.1
Deprecated 1.2.13
docker 4.2.2
entrypoints 0.4
executing 1.1.1
Flask 2.2.2
Flask-Compress 1.13
Flask-Cors 3.0.10
fonttools 4.37.4
idna 2.10
imbalanced-learn 0.9.1
importlib-metadata 5.0.0
ipykernel 6.16.0
ipython 8.5.0
ipywidgets 8.0.2
itsdangerous 2.1.2
jedi 0.18.1
Jinja2 3.1.2
jinja2-time 0.2.0
jmespath 0.10.0
joblib 1.2.0
Js2Py 0.68
jsonschema 3.2.0
jupyter_client 7.3.5
jupyter_core 5.0.0rc1
jupyter-dash 0.4.2
jupyterlab-widgets 3.0.3
kaleido 0.2.1
kiwisolver 1.4.4
lightgbm 3.3.2
llvmlite 0.38.1
lxml 4.5.0
MarkupSafe 2.0.1
matplotlib 3.6.1
matplotlib-inline 0.1.6
nest-asyncio 1.5.6
nltk 3.4
numba 0.55.2
numpy 1.22.4
orjson 3.8.0
packaging 21.3
pandas 1.4.4
parso 0.8.3
patsy 0.5.2
pickleshare 0.7.5
Pillow 9.2.0
pip 22.2.2
platformdirs 2.5.2
plotly 5.10.0
plotly-resampler 0.8.2rc3
pmdarima 1.8.5
prompt-toolkit 3.0.31
psutil 5.9.2
pure-eval 0.2.2
pycaret 3.0.0rc4
pycryptodomex 3.9.9
Pygments 2.13.0
pyjsparser 2.7.1
pyod 1.0.5
pyparsing 3.0.9
pypiwin32 223
PyQt5 5.14.2
PyQt5-sip 12.8.1
pyrsistent 0.18.1
python-dateutil 2.8.2
python-Levenshtein 0.12.2
python-slugify 6.1.2
pytz 2020.4
pywin32 304
PyYAML 5.4.1
pyzmq 24.0.1
regex 2021.9.30
requests 2.28.1
retrying 1.3.3
s3transfer 0.6.0
schemdraw 0.15
scikit-learn 1.1.2
scikit-plot 0.3.7
scipy 1.8.1
selenium 3.141.0
serverlessrepo 0.1.10
setuptools 41.2.0
singledispatch 3.7.0
six 1.15.0
sktime 0.13.4
stack-data 0.5.1
statsmodels 0.13.2
tbats 1.1.1
tenacity 8.1.0
text-unidecode 1.3
threadpoolctl 3.1.0
tomlkit 0.7.2
tornado 6.2
tqdm 4.64.1
trace-updater 0.0.8
traitlets 5.4.0
typing-extensions 3.10.0.0
tzdata 2022.4
tzlocal 3.0
urllib3 1.25.11
watchdog 2.1.2
wcwidth 0.2.5
websocket-client 1.4.1
Werkzeug 2.2.2
wheel 0.37.1
widgetsnbextension 4.0.3
wrapt 1.14.1
yellowbrick 1.5
zipp 3.9.0
zmq 0.0.0
Can you please type pip freeze to check which is your current markupsafe version?

(Conda)Tensorflow-gpu installing

My goal is to use gpu(GE FORCE GTX 850M). I have tried according to this guide(https://docs.anaconda.com/anaconda/user-guide/tasks/tensorflow/). Tensoflow 2.8 is installed and keras also. But when I execute the test code, the output is as below. It must be that the code does not or cannot use gpu. What went wrong?
(my_tf) PS C:\WINDOWS\system32> python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
2022-03-01 23:30:30.626829: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
※ Below is all the installed packages(Name/Version/Build/Channel) at my C:\Anaconda3
_ipyw_jlab_nb_ext_conf 0.1.0 py38_0
_py-xgboost-mutex 2.0 cpu_0
absl-py 0.15.0 pyhd3eb1b0_0
anaconda-client 1.9.0 py38haa95532_0
anaconda-navigator 2.1.2 py38haa95532_0
anyio 3.5.0 py38haa95532_0
argon2-cffi 21.3.0 pyhd3eb1b0_0
argon2-cffi-bindings 21.2.0 py38h2bbff1b_0
astunparse 1.6.3 pypi_0 pypi
attrs 21.4.0 pyhd3eb1b0_0
babel 2.9.1 pyhd3eb1b0_0
backcall 0.2.0 pyhd3eb1b0_0
backports 1.1 pyhd3eb1b0_0
backports.functools_lru_cache 1.6.4 pyhd3eb1b0_0
backports.tempfile 1.0 pyhd3eb1b0_1
backports.weakref 1.0.post1 py_1
beautifulsoup4 4.10.0 pyh06a4308_0
blas 1.0 mkl
bleach 4.1.0 pyhd3eb1b0_0
bottleneck 1.3.2 py38h2a96729_1
brotli 1.0.9 ha925a31_2
brotlipy 0.7.0 py38h2bbff1b_1003
bs4 0.0.1 pypi_0 pypi
bzip2 1.0.8 he774522_0
ca-certificates 2021.10.26 haa95532_4
cachetools 5.0.0 pypi_0 pypi
certifi 2021.10.8 py38haa95532_2
cffi 1.15.0 py38h2bbff1b_1
chardet 4.0.0 py38haa95532_1003
charset-normalizer 2.0.4 pyhd3eb1b0_0
chime 0.6.0 pypi_0 pypi
click 8.0.3 pyhd3eb1b0_0
clyent 1.2.2 py38_1
colorama 0.4.4 pyhd3eb1b0_0
conda 4.11.0 py38haa95532_0
conda-build 3.21.7 py38haa95532_1
conda-content-trust 0.1.1 pyhd3eb1b0_0
conda-env 2.6.0 haa95532_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
cryptography 3.4.8 py38h71e12ea_0
cupy 7.0.0 pypi_0 pypi
cycler 0.11.0 pyhd3eb1b0_0
datetime 4.3 pypi_0 pypi
debugpy 1.5.1 py38hd77b12b_0
decorator 5.1.1 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
descartes 1.1.0 pyhd3eb1b0_4
entrypoints 0.3 py38_0
fastrlock 0.8 pypi_0 pypi
filelock 3.4.2 pyhd3eb1b0_0
flatbuffers 2.0 pypi_0 pypi
fonttools 4.25.0 pyhd3eb1b0_0
freetype 2.10.4 hd328e21_0
future 0.18.2 py38_1
gast 0.5.3 pyhd3eb1b0_0
glob2 0.7 pyhd3eb1b0_0
google-auth 2.6.0 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
graphviz 2.38 hfd603c8_2
grpcio 1.44.0 pypi_0 pypi
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 3.3 pyhd3eb1b0_0
imap-tools 0.34.0 pypi_0 pypi
importlib-metadata 4.11.1 pypi_0 pypi
importlib_metadata 4.8.2 hd3eb1b0_0
intel-openmp 2021.4.0 haa95532_3556
ipykernel 6.4.1 py38haa95532_1
ipython 7.31.1 py38haa95532_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 7.6.5 pyhd3eb1b0_1
jedi 0.18.1 py38haa95532_1
jinja2 2.11.3 pyhd3eb1b0_0
joblib 1.1.0 pyhd3eb1b0_0
jpeg 9d h2bbff1b_0
json5 0.9.6 pyhd3eb1b0_0
jsonschema 3.2.0 pyhd3eb1b0_2
jupyter_client 7.1.2 pyhd3eb1b0_0
jupyter_core 4.9.1 py38haa95532_0
jupyter_server 1.13.5 pyhd3eb1b0_0
jupyterlab 3.2.9 pyhd3eb1b0_0
jupyterlab_pygments 0.1.2 py_0
jupyterlab_server 2.10.3 pyhd3eb1b0_1
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1
keras 2.8.0 pypi_0 pypi
keras-preprocessing 1.1.2 pypi_0 pypi
kiwisolver 1.3.2 py38hd77b12b_0
libarchive 3.4.2 h5e25573_0
libclang 13.0.0 pypi_0 pypi
libiconv 1.15 h1df5818_7
liblief 0.10.1 ha925a31_0
libpng 1.6.37 h2a8f88b_0
libtiff 4.2.0 hd0e1b90_0
libwebp 1.2.2 h2bbff1b_0
libxgboost 1.5.0 hd77b12b_1
libxml2 2.9.12 h0ad7f3c_0
lz4-c 1.9.3 h2bbff1b_1
markdown 3.3.6 pypi_0 pypi
markupsafe 2.0.1 py38h2bbff1b_0
matplotlib 3.5.1 py38haa95532_0
matplotlib-base 3.5.1 py38hd77b12b_0
matplotlib-inline 0.1.2 pyhd3eb1b0_2
menuinst 1.4.18 py38h59b6b97_0
mistune 0.8.4 py38he774522_1000
mizani 0.7.3 pyhd8ed1ab_0 conda-forge
mkl 2021.4.0 haa95532_640
mkl-service 2.4.0 py38h2bbff1b_0
mkl_fft 1.3.1 py38h277e83a_0
mkl_random 1.2.2 py38hf11a4ad_0
mouseinfo 0.1.3 pypi_0 pypi
multitasking 0.0.10 pypi_0 pypi
munkres 1.1.4 py_0
navigator-updater 0.2.1 py38_1
nbclassic 0.3.5 pyhd3eb1b0_0
nbclient 0.5.11 pyhd3eb1b0_0
nbconvert 6.1.0 py38haa95532_0
nbformat 5.1.3 pyhd3eb1b0_0
nest-asyncio 1.5.1 pyhd3eb1b0_0
notebook 6.4.8 py38haa95532_0
numexpr 2.8.1 py38hb80d3ca_0
numpy 1.22.2 pypi_0 pypi
numpy-base 1.21.5 py38hc2deb75_0
oauthlib 3.2.0 pypi_0 pypi
olefile 0.46 pyhd3eb1b0_0
openssl 1.1.1m h2bbff1b_0
opt-einsum 3.3.0 pypi_0 pypi
packaging 21.3 pyhd3eb1b0_0
palettable 3.3.0 pyhd3eb1b0_0
pandas 1.4.1 py38hd77b12b_0
pandas-datareader 0.10.0 pypi_0 pypi
pandocfilters 1.5.0 pyhd3eb1b0_0
parso 0.8.3 pyhd3eb1b0_0
patsy 0.5.2 py38haa95532_1
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 8.4.0 py38hd45dc43_0
pip 22.0.3 pypi_0 pypi
pkginfo 1.8.2 pyhd3eb1b0_0
plotnine 0.8.0 pyhd8ed1ab_0 conda-forge
powershell_shortcut 0.0.1 3
prometheus_client 0.13.1 pyhd3eb1b0_0
prompt-toolkit 3.0.20 pyhd3eb1b0_0
protobuf 3.19.4 pypi_0 pypi
psutil 5.8.0 py38h2bbff1b_1
py-lief 0.10.1 py38ha925a31_0
py-xgboost 1.5.0 py38haa95532_1
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pyautogui 0.9.52 pypi_0 pypi
pybithumb 1.0.21 pypi_0 pypi
pycosat 0.6.3 py38h2bbff1b_0
pycparser 2.21 pyhd3eb1b0_0
pygetwindow 0.0.9 pypi_0 pypi
pygments 2.11.2 pyhd3eb1b0_0
pyjwt 2.1.0 py38haa95532_0
pykorbit 0.1.10 pypi_0 pypi
pymsgbox 1.0.9 pypi_0 pypi
pyopenssl 19.1.0 py38_0
pyparsing 3.0.4 pyhd3eb1b0_0
pyperclip 1.8.1 pypi_0 pypi
pyqt 5.9.2 py38hd77b12b_6
pyqt5 5.15.4 pypi_0 pypi
pyqt5-qt5 5.15.2 pypi_0 pypi
pyqt5-sip 12.9.0 pypi_0 pypi
pyqtchart 5.15.4 pypi_0 pypi
pyqtchart-qt5 5.15.2 pypi_0 pypi
pyrect 0.1.4 pypi_0 pypi
pyrsistent 0.18.0 py38h196d8e1_0
pyscreeze 0.1.26 pypi_0 pypi
pysocks 1.7.1 py38haa95532_0
python 3.8.12 h6244533_0
python-dateutil 2.8.2 pyhd3eb1b0_0
python-graphviz 0.16 pyhd3eb1b0_1
python-libarchive-c 2.9 pyhd3eb1b0_1
pytweening 1.0.3 pypi_0 pypi
pytz 2021.3 pyhd3eb1b0_0
pyupbit 0.2.21 pypi_0 pypi
pywin32 302 py38h827c3e9_1
pywinauto 0.6.8 pypi_0 pypi
pywinpty 2.0.2 py38h5da7b33_0
pyyaml 6.0 py38h2bbff1b_1
pyzmq 22.3.0 py38hd77b12b_2
qt 5.9.7 vc14h73c81de_0
qtpy 1.11.2 pyhd3eb1b0_0
requests 2.27.1 pyhd3eb1b0_0
requests-oauthlib 1.3.1 pypi_0 pypi
rsa 4.8 pypi_0 pypi
ruamel_yaml 0.15.100 py38h2bbff1b_0
scikit-learn 1.0.2 py38hf11a4ad_1
scipy 1.7.3 py38h0a974cb_0
selenium 3.141.0 pypi_0 pypi
send2trash 1.8.0 pyhd3eb1b0_1
setuptools 58.0.4 py38haa95532_0
sip 4.19.13 py38hd77b12b_0
six 1.16.0 pyhd3eb1b0_1
sniffio 1.2.0 py38haa95532_1
soupsieve 2.3.1 pyhd3eb1b0_0
sqlite 3.37.2 h2bbff1b_0
statsmodels 0.13.0 py38h2bbff1b_0
tensorboard 2.8.0 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
tensorflow 2.8.0 pypi_0 pypi
tensorflow-io-gcs-filesystem 0.24.0 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
terminado 0.13.1 py38haa95532_0
testpath 0.5.0 pyhd3eb1b0_0
tf-estimator-nightly 2.8.0.dev2021122109 pypi_0 pypi
threadpoolctl 2.2.0 pyh0d69192_0
tk 8.6.11 h2bbff1b_0
tornado 6.1 py38h2bbff1b_0
tqdm 4.62.3 pyhd3eb1b0_1
traitlets 5.1.1 pyhd3eb1b0_0
typing-extensions 3.10.0.2 hd3eb1b0_0
typing_extensions 3.10.0.2 pyh06a4308_0
ujson 4.0.2 py38hd77b12b_0
urllib3 1.26.8 pyhd3eb1b0_0
utils 1.0.1 pypi_0 pypi
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py38_1
websocket-client 0.58.0 py38haa95532_4
websockets 9.1 pypi_0 pypi
wheel 0.37.1 pyhd3eb1b0_0
widgetsnbextension 3.5.2 py38haa95532_0
win_inet_pton 1.1.0 py38haa95532_0
wincertstore 0.2 py38haa95532_2
winpty 0.4.3 4
xgboost 1.5.0 py38haa95532_1
xz 5.2.5 h62dcd97_0
yaml 0.2.5 he774522_0
yfinance 0.1.66 pypi_0 pypi
zipp 3.7.0 pyhd3eb1b0_0
zlib 1.2.11 h8cc25b3_4
zstd 1.4.9 h19a0ad4_0
The anaconda guide looks outdated, because since Tensorflow 2.0, tensorflow and tensorflow-gpu are merged into one.
If you are using Tensorflow 2, I would advise you this guide https://www.tensorflow.org/install/gpu which has worked for me (do not download the latest cuDNN SDK version which is bugged but the one indicated in the tutorial)
In this guide https://www.tensorflow.org/install/source_windows, there are version configuration .It helped.

Python: matplotlib.pyplot.show() is not showing the plot [duplicate]

This question already has answers here:
After conda update, python kernel crashes when matplotlib is used
(3 answers)
Closed 1 year ago.
import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.show()
input("Press enter to continue...")
If I run the script above within VS Code, or even within command prompt, the plot canvas only flashes for a fraction of a second and the program ends without any error. It doesn't even wait for perssing the Enter.
May be interesting:
when I installed the Miniconda and set up the environment for the first time it worked. Then I installed pydicom I successfully run the test script (with pydicom test image). When I tried to process my own DICOMs it requested for jpeg decoders etc. I installed them, and also others I don't remember. From some point it started to behave like described.
I tried to roll back to revision I knew it worked conda install --revision XX, but that yielded an error
I removed the environment conda remove --name myenv --all and created it from the scratch
I removed the environment and uninstalled the Miniconda, and redid everything
The problem still remains.
What can be the reason? How can I debug this? Is there any error log?
The environment packages:
_tflow_select 2.3.0 mkl anaconda
absl-py 0.10.0 py38_0 anaconda
aiohttp 3.6.3 py38he774522_0 anaconda
argon2-cffi 20.1.0 py38h2bbff1b_1
astunparse 1.6.3 py_0 anaconda
async-timeout 3.0.1 py38_0 anaconda
async_generator 1.10 pyhd3eb1b0_0
attrs 21.2.0 pyhd3eb1b0_0
backcall 0.2.0 pyhd3eb1b0_0
bayesian-optimization 1.2.0 pypi_0 pypi
blas 1.0 mkl anaconda
bleach 4.0.0 pyhd3eb1b0_0
blinker 1.4 py38_0 anaconda
boto3 1.18.21 pyhd3eb1b0_0
botocore 1.21.41 pyhd3eb1b0_1
brotli 1.0.9 ha925a31_2
brotlipy 0.7.0 py38he774522_1000 anaconda
ca-certificates 2021.10.26 haa95532_2
cachetools 4.1.1 py_0 anaconda
certifi 2021.10.8 py38haa95532_0
cffi 1.14.6 py38h2bbff1b_0
chardet 3.0.4 py38_1003 anaconda
charset-normalizer 2.0.4 pyhd3eb1b0_0
click 7.1.2 py_0 anaconda
cloudpickle 2.0.0 pypi_0 pypi
colorama 0.4.4 pyhd3eb1b0_0
cryptography 3.1.1 py38h7a1dbc1_0 anaconda
cycler 0.10.0 py38_0
daal4py 2021.3.0 py38h757b272_0
dal 2021.3.0 haa95532_564
debugpy 1.4.1 py38hd77b12b_0
decorator 5.1.0 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
entrypoints 0.3 py38_0
flask 1.1.2 pyhd3eb1b0_0
fonttools 4.25.0 pyhd3eb1b0_0
freetype 2.11.0 ha860e81_0
gast 0.4.0 py_0 anaconda
google-auth 1.22.1 py_0 anaconda
google-auth-oauthlib 0.4.1 py_2 anaconda
google-pasta 0.2.0 py_0 anaconda
grpcio 1.31.0 py38he7da953_0 anaconda
gym 0.21.0 pypi_0 pypi
h5py 2.10.0 py38h5e291fa_0
hdf5 1.10.4 h7ebc959_0 anaconda
icc_rt 2019.0.0 h0cc432a_1 anaconda
icu 58.2 ha925a31_3
idna 2.10 py_0 anaconda
importlib-metadata 4.8.1 py38haa95532_0
importlib_metadata 4.8.1 hd3eb1b0_0
intel-openmp 2020.2 254 anaconda
ipykernel 6.4.1 py38haa95532_1
ipython 7.27.0 py38hd4e2768_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 7.6.5 pyhd3eb1b0_1
itsdangerous 2.0.1 pyhd3eb1b0_0
jedi 0.18.0 py38haa95532_1
jinja2 3.0.2 pyhd3eb1b0_0
jmespath 0.10.0 pyhd3eb1b0_0
joblib 1.1.0 pyhd3eb1b0_0
jpeg 9d h2bbff1b_0
jsonschema 3.2.0 pyhd3eb1b0_2
jupyter 1.0.0 py38_7
jupyter_client 7.0.1 pyhd3eb1b0_0
jupyter_console 6.4.0 pyhd3eb1b0_0
jupyter_core 4.8.1 py38haa95532_0
jupyterlab_pygments 0.1.2 py_0
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1
kaggle 1.5.12 pypi_0 pypi
keras-applications 1.0.8 py_1 anaconda
keras-preprocessing 1.1.0 py_1 anaconda
kiwisolver 1.3.1 py38hd77b12b_0
libiconv 1.15 h1df5818_7
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.13.0.1 h200bbdf_0 anaconda
libtiff 4.2.0 hd0e1b90_0
libwebp 1.2.0 h2bbff1b_0
libxml2 2.9.12 h0ad7f3c_0
libxslt 1.1.34 he774522_0
lxml 4.6.3 py38h9b66d53_0
lz4-c 1.9.3 h2bbff1b_1
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.2 py38_0 anaconda
markupsafe 2.0.1 py38h2bbff1b_0
matplotlib 3.4.3 py38haa95532_0
matplotlib-base 3.4.3 py38h49ac443_0
matplotlib-inline 0.1.2 pyhd3eb1b0_2
mistune 0.8.4 py38he774522_1000
mkl 2019.4 245 anaconda
mkl-service 2.3.0 py38hb782905_0 anaconda
mkl_fft 1.2.0 py38h45dec08_0 anaconda
mkl_random 1.1.0 py38hf9181ef_0 anaconda
msys2-conda-epoch 20160418 1
multidict 4.7.6 py38he774522_1 anaconda
munkres 1.1.4 py_0
nb_conda 2.2.1 py38_1
nb_conda_kernels 2.3.1 py38haa95532_0
nbclient 0.5.3 pyhd3eb1b0_0
nbconvert 6.1.0 py38haa95532_0
nbformat 5.1.3 pyhd3eb1b0_0
nest-asyncio 1.5.1 pyhd3eb1b0_0
notebook 6.4.5 py38haa95532_0
numpy 1.19.1 py38h5510c5b_0 anaconda
numpy-base 1.19.1 py38ha3acd2a_0 anaconda
oauthlib 3.1.0 py_0 anaconda
olefile 0.46 pyhd3eb1b0_0
openssl 1.1.1l h2bbff1b_0
opt_einsum 3.1.0 py_0 anaconda
packaging 21.0 pyhd3eb1b0_0
pandas 1.2.4 py38hf11a4ad_0
pandas-datareader 0.10.0 pyhd3eb1b0_0
pandocfilters 1.4.3 py38haa95532_1
parso 0.8.2 pyhd3eb1b0_0
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 8.4.0 py38hd45dc43_0
pip 21.2.2 py38haa95532_0
prometheus_client 0.11.0 pyhd3eb1b0_0
prompt-toolkit 3.0.20 pyhd3eb1b0_0
prompt_toolkit 3.0.20 hd3eb1b0_0
protobuf 3.13.0.1 py38ha925a31_1 anaconda
pyasn1 0.4.8 py_0 anaconda
pyasn1-modules 0.2.8 py_0 anaconda
pycparser 2.20 py_2
pygments 2.10.0 pyhd3eb1b0_0
pyjwt 1.7.1 py38_0 anaconda
pyopenssl 19.1.0 py_1 anaconda
pyparsing 3.0.4 pyhd3eb1b0_0
pyqt 5.9.2 py38ha925a31_4
pyreadline 2.1 py38_1 anaconda
pyrsistent 0.17.3 py38he774522_0
pysocks 1.7.1 py38_0 anaconda
python 3.8.12 h6244533_0
python-dateutil 2.8.2 pyhd3eb1b0_0
python-slugify 5.0.2 pypi_0 pypi
pytz 2021.3 pyhd3eb1b0_0
pywin32 228 py38hbaba5e8_1
pywinpty 0.5.7 py38_0
pyyaml 6.0 py38h2bbff1b_1
pyzmq 22.2.1 py38hd77b12b_1
qt 5.9.7 vc14h73c81de_0
qtconsole 5.1.1 pyhd3eb1b0_0
qtpy 1.10.0 pyhd3eb1b0_0
requests 2.26.0 pyhd3eb1b0_0
requests-oauthlib 1.3.0 py_0 anaconda
rsa 4.6 py_0 anaconda
s3transfer 0.5.0 pyhd3eb1b0_0
scikit-learn 1.0.1 py38hf11a4ad_0
scikit-learn-intelex 2021.3.0 py38haa95532_0
scipy 1.6.2 py38h14eb087_0
send2trash 1.8.0 pyhd3eb1b0_1
setuptools 58.0.4 py38haa95532_0
sip 4.19.13 py38ha925a31_0
six 1.16.0 pyhd3eb1b0_0
sqlite 3.36.0 h2bbff1b_0
tbb 2021.4.0 h59b6b97_0
tensorboard 2.6.0 py_1
tensorboard-data-server 0.6.0 py38haa95532_0
tensorboard-plugin-wit 1.6.0 py_0 anaconda
tensorflow 2.3.0 mkl_py38h37f7ee5_0
tensorflow-base 2.3.0 eigen_py38h75a453f_0
tensorflow-estimator 2.3.0 pyheb71bc4_0 anaconda
termcolor 1.1.0 py38_1 anaconda
terminado 0.9.4 py38haa95532_0
testpath 0.5.0 pyhd3eb1b0_0
text-unidecode 1.3 pypi_0 pypi
threadpoolctl 2.2.0 pyh0d69192_0
tk 8.6.11 h2bbff1b_0
tornado 6.1 py38h2bbff1b_0
tqdm 4.62.3 pyhd3eb1b0_1
traitlets 5.1.0 pyhd3eb1b0_0
urllib3 1.25.11 py_0 anaconda
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py38_1
werkzeug 1.0.1 py_0 anaconda
wheel 0.37.0 pyhd3eb1b0_1
widgetsnbextension 3.5.1 py38_0
win_inet_pton 1.1.0 py38_0 anaconda
wincertstore 0.2 py38haa95532_2
winpty 0.4.3 4
wrapt 1.12.1 py38he774522_1 anaconda
xz 5.2.5 h62dcd97_0
yaml 0.2.5 he774522_0
yarl 1.6.2 py38he774522_0 anaconda
zipp 3.6.0 pyhd3eb1b0_0
zlib 1.2.11 vc14h1cdd9ab_1 [vc14] anaconda
zstd 1.4.9 h19a0ad4_0
As of late, conda and matplotlib have been having issues.
You can try to downgrade freetype from 2.11.0 to 2.10.4 by doing conda install freetype=2.10.4

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

How do I install the most recent Tensorflow (here: 2.2) on Windows when conda does not yet support it?

I have conda 4.8.3 and Python 3.7.4 on Windows 8.1.
I have tf 2.0.0 installed in a conda environment. How do I upgrade to 2.2.x?
Or, how do I just install 2.2.x in a conda environment?
Edit 1: pip install --upgrade tensorflow says: Requirement already up-to-date: tensorflow in d:\anaconda3\envs\tf2\lib\site-packages (2.1.0)
but tf version is still 2.0.
Edit 2: conda install tensorflow==2.2.0 says:
PackagesNotFoundError: The following packages are not available from current channels:
tensorflow==2.2.0
I did have some luck here.
Edit 3:
(tf2) D:\ray\dev\covid-19>conda list -n tf2
# packages in environment at D:\Anaconda3\envs\tf2:
#
# Name Version Build Channel
_anaconda_depends 2019.03 py37_0
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
_tflow_select 2.3.0 mkl
absl-py 0.9.0 pypi_0 pypi
alabaster 0.7.12 py37_0
anaconda custom py37_1
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.7 py37_0
anaconda-project 0.8.3 py_0
asn1crypto 1.0.1 py37_0
astor 0.8.1 pypi_0 pypi
astroid 2.3.1 py37_0
astropy 3.2.1 py37he774522_0
atomicwrites 1.3.0 py37_1
attrs 19.2.0 py_0
babel 2.7.0 py_0
backcall 0.1.0 py37_0
backports 1.0 py_2
backports.functools_lru_cache 1.5 py_2
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.8.0 py37_0
bitarray 1.0.1 py37he774522_0
bkcharts 0.2 py37_0
blas 1.0 mkl
bleach 3.1.0 py37_0
blosc 1.16.3 h7bd577a_0
bokeh 1.3.4 py37_0
boto 2.49.0 py37_0
bottleneck 1.2.1 py37h452e1ab_1
bzip2 1.0.8 he774522_0
ca-certificates 2020.1.1 0
cachetools 4.0.0 pypi_0 pypi
certifi 2019.9.11 py37_0
cffi 1.12.3 py37h7a1dbc1_0
chardet 3.0.4 py37_1003
click 7.0 py37_0
cloudpickle 1.2.2 py_0
clyent 1.2.2 py37_1
colorama 0.4.1 py37_0
comtypes 1.1.7 py37_0
conda-package-handling 1.6.0 py37h62dcd97_0
conda-verify 3.4.2 py_1
console_shortcut 0.1.1 3
contextlib2 0.6.0 py_0
cryptography 2.7 py37h7a1dbc1_0
curl 7.65.3 h2a8f88b_0
cycler 0.10.0 py37_0
cython 0.29.13 py37ha925a31_0
cytoolz 0.10.0 py37he774522_0
dask 2.5.2 py_0
dask-core 2.5.2 py_0
decorator 4.4.0 py37_1
defusedxml 0.6.0 py_0
dill 0.3.1.1 pypi_0 pypi
distributed 2.5.2 py_0
docutils 0.15.2 py37_0
entrypoints 0.3 py37_0
et_xmlfile 1.0.1 py37_0
fastcache 1.1.0 py37he774522_0
filelock 3.0.12 py_0
flask 1.1.1 py_0
freetype 2.9.1 ha9979f8_1
fsspec 0.5.2 py_0
future 0.17.1 py37_0
gast 0.2.2 pypi_0 pypi
get_terminal_size 1.0.0 h38e98db_0
gevent 1.4.0 py37he774522_0
glob2 0.7 py_0
google-auth 1.11.0 pypi_0 pypi
google-auth-oauthlib 0.4.1 pypi_0 pypi
google-pasta 0.1.8 py_0
googleapis-common-protos 1.51.0 pypi_0 pypi
greenlet 0.4.15 py37hfa6e2cd_0
grpcio 1.26.0 pypi_0 pypi
h5py 2.9.0 py37h5e291fa_0
hdf5 1.10.4 h7ebc959_0
heapdict 1.0.1 py_0
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.6.0 py37_0
imagesize 1.1.0 py37_0
importlib_metadata 0.23 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
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.15.1 py37_0
jinja2 2.10.3 py_0
joblib 0.13.2 py37_0
jpeg 9b hb83a4c4_2
json5 0.8.5 py_0
jsonschema 3.0.2 py37_0
jupyter 1.0.0 py37_7
jupyter_client 5.3.3 py37_1
jupyter_console 6.0.0 py37_0
jupyter_core 4.5.0 py_0
jupyterlab 1.1.4 pyhf63ae98_0
jupyterlab_server 1.0.6 py_0
keras 2.3.1 py37h21ff451_0 conda-forge
keras-applications 1.0.8 py_0
keras-preprocessing 1.1.0 py_1
keyring 18.0.0 py37_0
kiwisolver 1.1.0 py37ha925a31_0
krb5 1.16.1 hc04afaa_7
lazy-object-proxy 1.4.2 py37he774522_0
libarchive 3.3.3 h0643e63_5
libcurl 7.65.3 h2a8f88b_0
libgpuarray 0.7.6 hfa6e2cd_0
libiconv 1.15 h1df5818_7
liblief 0.9.0 ha925a31_2
libmklml 2019.0.5 0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.11.2 h7bd577a_0
libpython 2.1 py37_0
libsodium 1.0.16 h9d3ae62_0
libssh2 1.8.2 h7a1dbc1_0
libtiff 4.0.10 hb898794_2
libxml2 2.9.9 h464c3ec_0
libxslt 1.1.33 h579f668_0
llvmlite 0.29.0 py37ha925a31_0
locket 0.2.0 py37_1
lxml 4.4.1 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.0 py_0
markdown 3.1.1 py37_0
markupsafe 1.1.1 py37he774522_0
matplotlib 3.1.1 py37hc8f65d3_0
mccabe 0.6.1 py37_1
menuinst 1.4.16 py37he774522_0
mistune 0.8.4 py37he774522_0
mkl 2019.4 245
mkl-service 2.3.0 py37hb782905_0
mkl_fft 1.0.14 py37h14836fe_0
mkl_random 1.1.0 py37h675688f_0
mock 3.0.5 py37_0
more-itertools 7.2.0 py37_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
navigator-updater 0.2.1 py37_0
nbconvert 5.6.0 py37_1
nbformat 4.4.0 py37_0
networkx 2.3 py_0
nltk 3.4.5 py37_0
nose 1.3.7 py37_2
notebook 6.0.1 py37_0
numba 0.45.1 py37hf9181ef_0
numexpr 2.7.0 py37hdce8814_0
numpy 1.16.5 py37h19fb1c0_0
numpy-base 1.16.5 py37hc3f5095_0
numpydoc 0.9.1 py_0
oauthlib 3.1.0 pypi_0 pypi
olefile 0.46 py37_0
openpyxl 3.0.0 py_0
openssl 1.1.1d he774522_3
opt_einsum 3.1.0 py_0
packaging 19.2 py_0
pandas 0.25.1 pypi_0 pypi
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
parso 0.5.1 py_0
partd 1.0.0 py_0
path.py 12.0.1 py_0
pathlib2 2.3.5 py37_0
patsy 0.5.1 py37_0
pep8 1.7.1 py37_0
pickleshare 0.7.5 py37_0
pillow 6.2.0 py37hdc69c19_0
pip 20.0.2 pypi_0 pypi
pkginfo 1.5.0.1 py37_0
pluggy 0.13.0 py37_0
ply 3.11 py37_0
powershell_shortcut 0.0.1 2
prometheus_client 0.7.1 py_0
promise 2.3 pypi_0 pypi
prompt_toolkit 2.0.10 py_0
protobuf 3.11.2 pypi_0 pypi
psutil 5.6.3 py37he774522_0
py 1.8.0 py37_0
py-lief 0.9.0 py37ha925a31_2
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pycodestyle 2.5.0 py37_0
pycosat 0.6.3 py37hfa6e2cd_0
pycparser 2.19 py37_0
pycrypto 2.6.1 py37hfa6e2cd_9
pycurl 7.43.0.3 py37h7a1dbc1_0
pyflakes 2.1.1 py37_0
pygments 2.4.2 py_0
pygpu 0.7.6 py37h452e1ab_0
pylint 2.4.2 py37_0
pyodbc 4.0.27 py37ha925a31_0
pyopenssl 19.0.0 py37_0
pyparsing 2.4.2 py_0
pyqt 5.9.2 py37h6538335_2
pyreadline 2.1 py37_1
pyrsistent 0.15.4 py37he774522_0
pysocks 1.7.1 py37_0
pytables 3.5.2 py37h1da0976_1
pytest 5.2.1 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.5.0 py37_0
pytest-doctestplus 0.4.0 py_0
pytest-openfiles 0.4.0 py_0
pytest-remotedata 0.3.2 py37_0
python 3.7.4 h5263a28_0
python-dateutil 2.8.0 py37_0
python-libarchive-c 2.8 py37_13
pytz 2019.3 py_0
pywavelets 1.0.3 py37h8c2d366_1
pywin32 223 py37hfa6e2cd_1
pywinpty 0.5.5 py37_1000
pyyaml 5.1.2 py37he774522_0
pyzmq 18.1.0 py37ha925a31_0
qt 5.9.7 vc14h73c81de_0
qtawesome 0.6.0 py_0
qtconsole 4.5.5 py_0
qtpy 1.9.0 py_0
requests 2.22.0 py37_0
requests-oauthlib 1.3.0 pypi_0 pypi
rope 0.14.0 py_0
rsa 4.0 pypi_0 pypi
ruamel_yaml 0.15.46 py37hfa6e2cd_0
scikit-image 0.15.0 py37ha925a31_0
scikit-learn 0.21.3 py37h6288b17_0
scipy 1.4.1 pypi_0 pypi
seaborn 0.9.0 py37_0
send2trash 1.5.0 py37_0
setuptools 41.4.0 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
sklearn 0.0 pypi_0 pypi
snappy 1.1.7 h777316e_3
snowballstemmer 2.0.0 py_0
sortedcollections 1.1.2 py37_0
sortedcontainers 2.1.0 py37_0
soupsieve 1.9.3 py37_0
sphinx 2.2.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.1.2 py_0
spyder 3.3.6 py37_0
spyder-kernels 0.5.2 py37_0
sqlalchemy 1.3.9 py37he774522_0
sqlite 3.30.0 he774522_0
statsmodels 0.10.1 py37h8c2d366_0
sympy 1.4 py37_0
tbb 2019.4 h74a9793_0
tblib 1.4.0 py_0
tensorboard 2.1.0 pypi_0 pypi
tensorflow 2.1.0 pypi_0 pypi
tensorflow-base 2.0.0 mkl_py37hd1d5974_0
tensorflow-datasets 2.0.0 pypi_0 pypi
tensorflow-estimator 2.1.0 pypi_0 pypi
tensorflow-metadata 0.21.1 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
terminado 0.8.2 py37_0
testpath 0.4.2 py37_0
theano 1.0.4 py37_0
tk 8.6.8 hfa6e2cd_0
toolz 0.10.0 py_0
tornado 6.0.3 py37he774522_0
tqdm 4.36.1 py_0
traitlets 4.3.3 py37_0
unicodecsv 0.14.1 py37_0
urllib3 1.24.2 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_0
wcwidth 0.1.7 py37_0
webencodings 0.5.1 py37_1
werkzeug 0.16.0 py_0
wheel 0.33.6 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
xlrd 1.2.0 py37_0
xlsxwriter 1.2.1 py_0
xlwings 0.15.10 py37_0
xlwt 1.3.0 py37_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zeromq 4.3.1 h33f27b4_3
zict 1.0.0 py_0
zipp 0.6.0 py_0
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0
TF 2.2.0 isn't available on conda yet.
It's possible to install TF 2.2.0 now with either:
pip install tensorflow-gpu==2.2.0
or
pip install https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.2.0-cp37-cp37m-win_amd64.whl
ONE IMPORTANT THING: for now, at least in my case, there is a major problem with the GPU version. The old one recognises my GPU with no issues, while the latest doesn't see it for some reason. I advise you to create, just in case, a new env so you won't need to reinstall everything later on.
EDIT by a reader:
Better do not use pip install at all if you can wait for the conda version to catch up. Using the pip installer is not recommended, even if it often offers a more recent version. Using pip will risk exactly the documented error here. And you do not need to create a new env with conda update, conda update --all will not harm your dependencies in your env. See Why using Anaconda environments to install tensorflow on Windows?.
There are two methods
1. Install into virtual environment with
pip TensorFlow
virtualenv --system-site-packages -p python3 ./venv
then you need to activate your new environment
pip install --upgrade pip
pip list # show packages installed within the virtual environment
this command for quit
deactivate # don't exit until you're done using TensorFlow
we finish by installing tensor
pip install --upgrade tensorflow
2. Install in your system
python3 --version
pip3 --version
virtualenv --version
Ubuntu
sudo apt update
sudo apt install python3-dev python3-pip
sudo pip3 install -U virtualenv # system-wide install
then
pip3 install --user --upgrade tensorflow # install in $HOME
create new environment and use this command in jupyter notebook :
!pip install tensorflow==2.2-rc3
this version work on CPU or GPU.
Its becasue your required tensorflow version is not available in you current python version.
For Example: python 3.9 doesn't has tensorflow 2.2.0
I have faced this issue once, may this helps you.
Thanks

Categories

Resources