Using older notebook on latest Anaconda Navigator tensorflow unsatisfiable error

from ktsh.tanaka.2020 to quique123

Package conflicts are caused by version mismatches when deploying the package.

I checked the status of the conflict, but basically it is due to the version mismatch. In order to avoid this situation, it is necessary to upgrade the version of each package with [version =’> = x.y.z’].

For package version upgrade,

(base) C: \ Users \ marci> conda upgrade “corresponding package”

Must be executed. For large packages (eg Tesorflow, Prophet), it may automatically upgrade the required packages.

however,
C: \ Users \ marci> pip install “Applicable package”
If the package can be installed with, it may not be upgraded automatically.

If the python version or the appropriate Chanel is set, it will be selected automatically.

added / updated specs:
–decorator

The following packages will be downloaded:

package | build
--------------------------- | -----------------
certifi-2021.10.8 | py39h06a4308_2 156 KB anaconda
decorator-5.1.1 | pyhd3eb1b0_0 12 KB anaconda
openssl-1.1.1n | h7f8727e_0 3.8 MB anaconda
-------------------------------------------------- -------------------------------------------------- ----------
                                       Total: 4.0 MB

The following packages will be SUPERSEDED by a higher-priority channel:

certifi intel-> anaconda
decorator pkgs / main-> anaconda
openssl intel-> anaconda

Proceed ([y]/n)?

Is displayed.

I think the basic cause is that the system settings are not appropriate. In particular, in the case of Windows, software that requires automatic URL transmission may be malware that does not have a port for downloading Anaconda in the security software settings and firewall settings.

I hope that the settings around that will also be reviewed.

Regards, you.
ktsh.tanaka.2020

So I run this command:

conda upgrade “corresponding package”

for each conflicting package and then try again?

1 Like

from ktsh.tanaka.2020 to quique123

that’s right. exactly.

However, be sure to enter the package name you want to use in the location of the corresponding package.

And make sure you have the packages you need.

It’s easy to check. Just log in with the URL below and enter the package name from the Search window.
https://anaconda.org/

Regards, you.
ktsh.tanaka.2020

ok there are too many packages. Its taking forever. Is there a better way, like reinstalling everything?

1 Like

from ktsh.tanaka.2020 to quique123

I agree. I think it will take some time, so I think it’s a good idea to reinstall it.

The method is shown below.

I think that Anaconda you are using is for windows, so first try removing it using Delete Application in Control Center.

Then, delete the environment variables such as PYTHONPATH (do not delete them all).
As a method, it is displayed by “Right-click the start button> System> Advanced system settings”. Please check and delete the PATH for Anaconda.

It’s a good idea to reinstall after it’s done.

Regards, you.
ktsh.tanaka.2020

  1. I uninstalled anaconda navigator

  2. i right clicked on start, system, advanced but found no environment variables or path for anaconda. I assume its because they were removed by the uninstaller?

  3. is there a better way to install anaconda navigator and all its components or is the GUI the best way? After installing via GUI exe installer, I got this update alert and it started updating by itself.

Here are pictures of the env/path vars after uninstalling old anaconda & the installer automatically updating the new install…

update anaconda


1 Like

What was strange was that it asked me to quite to install but it started installing without me clicking yes or no.

You can see the pop question still in the background:

A few minutes later after nothing had happened for a while, i clicked on Yes in the quit anaconda application to see if that was what was holding up the update…but it has been updating for about 10 minutes now and no completion…

It has been 40 minutes and still updating…+60 minutes…3 hrs…i think its safe to say it failed

1 Like

from ktsh.tanaka.2020 to quique123
The cause is simple. The following packages cannot be downloaded directly from Anaconda Navigator.
DataSpell
Datalore
Pycharm
So even if I select Install, it will not be installed. In that case, please check the browser that is set by default. You’re probably opening the JetBrains download page. Please download it and then restart the settings.

again,
Orange3
For, about building a new environment? I will ask you.
Answer that question, choose to build a new environment, and the download will begin in minutes.

This process is in the background
(base) $ conda create --name orange3 python = 3.9
Is running.

Regards, you.
ktsh.tanaka.2020

i downloaded the exe installer from the anaconda.com page:

1 Like

from ktsh.tanaka.2020 to quique123

Maybe it’s because the registry was temporarily unavailable (the GitHub source has been removed).

We installed and tried the same version of Anaconda you are using on Windows 10 at 2022-06-15 12:40 (UTC).

At first, I got the message “The registry does not exist”, but when I quit and reinstall it, the installation was successful.

The biggest cause is

  1. If your network is overloaded (some countries / regions limit connections to servers in the United States).
  2. Internet service providers have restrictions (again, in some countries and regions, those cases have been confirmed).

Therefore, if you need to download a large amount of data, we recommend that you check the access status from the Internet using a Windows system monitor or the like.

If we can show those data to ISP etc., it will be improved.

Addendum
For Anaconda updates, a GUI base is a good choice for beginners. However, I think the CUI base is good for experienced and experienced people.

Furthermore, in the case of windows, depending on the security software, there is also a tool that deletes the PATH and ENV parameters. If you’re using them, those tools are removing them, not the OS.

Regards, you.
ktsh.tanaka.2020.

Well im trying the update again today. This time when I clicked the Yes button to update to v2.2.0, it properly closed anaconda navigator and started the update window again, but it has been on that for about 15 minutes now:

update

I guess ill see how long it takes this time.

1 Like

from ktsh.tanaka.2020 to quique123

Here are the specs of my PC and the specs of Isp. In this case, Anaconda is in a double-installed state and is working fine.

PC
CPU: Intel (R) Core ™ i7-QM CPU @ GHz
RAM: 8GB

Windows
Edition Windows10 Home
Version 21 H2
OS build 19044.1706

ISP
Softbank mobile network (japan)
Softbank BB
IP Address 114.48.126.154
Average reception speed 912KB / sec

You should check the reception status of the network. Also, in the case of my PC, since it is an SSD, the repository scan is more than 10 times that of the HDD.
Therefore, it takes about 1 minute.

Regards, you.
ktsh.tanaka.2020

Here is my ookla speedtest and win11 resource monitor captures:
kbps

However slow it is, it should not take THAT long to download an Ananconda update. Anaconda navigator itself took 10 minutes to download. The update yesterday went on for 3hrs until i cancelled it. Today its already been running for 1 hr…2hr…3hr…

1 Like

from ktsh.tanaka.2020 to quique123

However slow it is, it should not take THAT long to download an Anaconda update. Anaconda navigator itself took 10 minutes to download. The update yesterday went on for 3hrs until i canceled it. Today its already been running for 1 hr… 2hr… 3hr …

It’s a very difficult situation. If your PC’s I / O speed is extremely slow, especially if you don’t have enough memory or HDD I / O speed, it takes time to search the registry in your PC to find the files you need. Will be charged.

Also, Anaconda’s registry will be cut off after 3600ms if there is no connection. Anaconda tries to connect again, but if the registry server near you is punctured, it goes looking for another server … and so on.

That may be one of the causes.

Regards, you.
ktsh.tanaka.2020

one whole day after updating i get this error…seems to be the same error i get when i try to update via the cmd line.
Screenshot 2022-06-16 091450

1 Like

i just tried completely removing and reinstalling anaconda this time via the CLI (Installing the 2021-11 Anaconda Python Distribution on Windows 11 (Spyder + JupyterLab IDEs) - YouTube) and when i try to install tensorflow using:

conda install -c conda-forge tensorflow

it fails to solve the environment again with the same errors as before. This is no good!

(base) PS C:\Users\marci> conda install -c conda-forge tensorflow
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: \

woah!

Finally got something different, lets see if this works:

(base) PS C:\Users\marci> conda install -c conda-forge tensorflow
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\marci\anaconda3

  added / updated specs:
    - tensorflow


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _anaconda_depends-2022.05  |           py39_0           7 KB
    _tflow_select-2.3.0        |              mkl           3 KB
    abseil-cpp-20210324.2      |       h0e60522_0         2.1 MB  conda-forge
    absl-py-1.1.0              |     pyhd8ed1ab_0          94 KB  conda-forge
    anaconda-custom            |           py39_1           4 KB
    astor-0.8.1                |     pyh9f0ad1d_0          25 KB  conda-forge
    astunparse-1.6.3           |     pyhd8ed1ab_0          15 KB  conda-forge
    blinker-1.4                |             py_1          13 KB  conda-forge
    ca-certificates-2022.6.15  |       h5b45459_0         188 KB  conda-forge
    certifi-2022.6.15          |   py39hcbf5309_0         155 KB  conda-forge
    conda-4.13.0               |   py39hcbf5309_1         1.0 MB  conda-forge
    flatbuffers-2.0.6          |       h0e60522_0         1.9 MB  conda-forge
    gast-0.4.0                 |     pyh9f0ad1d_0          12 KB  conda-forge
    google-auth-oauthlib-0.4.6 |     pyhd8ed1ab_0          19 KB  conda-forge
    google-pasta-0.2.0         |     pyh8c360ce_0          42 KB  conda-forge
    icu-68.2                   |       h0e60522_0        16.4 MB  conda-forge
    keras-preprocessing-1.1.2  |     pyhd8ed1ab_0          34 KB  conda-forge
    libclang-11.1.0            |default_h5c34c98_1        20.8 MB  conda-forge
    libprotobuf-3.14.0         |       h7755175_0         2.3 MB  conda-forge
    oauthlib-3.2.0             |     pyhd8ed1ab_0          90 KB  conda-forge
    openssl-1.1.1o             |       h8ffe710_0         5.7 MB  conda-forge
    opt_einsum-3.3.0           |     pyhd8ed1ab_1          53 KB  conda-forge
    protobuf-3.14.0            |   py39h415ef7b_1         261 KB  conda-forge
    pyqt-5.12.3                |   py39hcbf5309_8          22 KB  conda-forge
    pyqt-impl-5.12.3           |   py39h415ef7b_8         4.3 MB  conda-forge
    pyqt5-sip-4.19.18          |   py39h415ef7b_8         299 KB  conda-forge
    pyqtchart-5.12             |   py39h415ef7b_8         212 KB  conda-forge
    pyqtwebengine-5.12.1       |   py39h415ef7b_8         143 KB  conda-forge
    python-flatbuffers-1.12    |     pyhd8ed1ab_1          19 KB  conda-forge
    python_abi-3.9             |           2_cp39           4 KB  conda-forge
    qt-5.12.9                  |       h5909a2a_4       106.1 MB  conda-forge
    requests-oauthlib-1.3.1    |     pyhd8ed1ab_0          22 KB  conda-forge
    tensorboard-2.6.0          |     pyhd8ed1ab_1         5.0 MB  conda-forge
    tensorboard-data-server-0.6.0|   py39hcbf5309_2          12 KB  conda-forge
    tensorboard-plugin-wit-1.8.1|     pyhd8ed1ab_0         668 KB  conda-forge
    tensorflow-2.6.0           |mkl_py39h31650da_0           4 KB
    tensorflow-base-2.6.0      |mkl_py39h9201259_0        65.1 MB
    tensorflow-estimator-2.6.0 |     pyh7b7c402_0         267 KB
    termcolor-1.1.0            |             py_2           6 KB  conda-forge
    wheel-0.35.1               |     pyh9f0ad1d_0          29 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       233.4 MB

The following NEW packages will be INSTALLED:

  _anaconda_depends  pkgs/main/win-64::_anaconda_depends-2022.05-py39_0
  _tflow_select      pkgs/main/win-64::_tflow_select-2.3.0-mkl
  abseil-cpp         conda-forge/win-64::abseil-cpp-20210324.2-h0e60522_0
  absl-py            conda-forge/noarch::absl-py-1.1.0-pyhd8ed1ab_0
  astor              conda-forge/noarch::astor-0.8.1-pyh9f0ad1d_0
  astunparse         conda-forge/noarch::astunparse-1.6.3-pyhd8ed1ab_0
  blinker            conda-forge/noarch::blinker-1.4-py_1
  flatbuffers        conda-forge/win-64::flatbuffers-2.0.6-h0e60522_0
  gast               conda-forge/noarch::gast-0.4.0-pyh9f0ad1d_0
  google-auth-oauth~ conda-forge/noarch::google-auth-oauthlib-0.4.6-pyhd8ed1ab_0
  google-pasta       conda-forge/noarch::google-pasta-0.2.0-pyh8c360ce_0
  keras-preprocessi~ conda-forge/noarch::keras-preprocessing-1.1.2-pyhd8ed1ab_0
  libclang           conda-forge/win-64::libclang-11.1.0-default_h5c34c98_1
  oauthlib           conda-forge/noarch::oauthlib-3.2.0-pyhd8ed1ab_0
  opt_einsum         conda-forge/noarch::opt_einsum-3.3.0-pyhd8ed1ab_1
  pyqt-impl          conda-forge/win-64::pyqt-impl-5.12.3-py39h415ef7b_8
  pyqt5-sip          conda-forge/win-64::pyqt5-sip-4.19.18-py39h415ef7b_8
  pyqtchart          conda-forge/win-64::pyqtchart-5.12-py39h415ef7b_8
  pyqtwebengine      conda-forge/win-64::pyqtwebengine-5.12.1-py39h415ef7b_8
  python-flatbuffers conda-forge/noarch::python-flatbuffers-1.12-pyhd8ed1ab_1
  python_abi         conda-forge/win-64::python_abi-3.9-2_cp39
  requests-oauthlib  conda-forge/noarch::requests-oauthlib-1.3.1-pyhd8ed1ab_0
  tensorboard        conda-forge/noarch::tensorboard-2.6.0-pyhd8ed1ab_1
  tensorboard-data-~ conda-forge/win-64::tensorboard-data-server-0.6.0-py39hcbf5309_2
  tensorboard-plugi~ conda-forge/noarch::tensorboard-plugin-wit-1.8.1-pyhd8ed1ab_0
  tensorflow         pkgs/main/win-64::tensorflow-2.6.0-mkl_py39h31650da_0
  tensorflow-base    pkgs/main/win-64::tensorflow-base-2.6.0-mkl_py39h9201259_0
  tensorflow-estima~ pkgs/main/noarch::tensorflow-estimator-2.6.0-pyh7b7c402_0
  termcolor          conda-forge/noarch::termcolor-1.1.0-py_2

The following packages will be UPDATED:

  ca-certificates    pkgs/main::ca-certificates-2022.3.29-~ --> conda-forge::ca-certificates-2022.6.15-h5b45459_0
  certifi            pkgs/main::certifi-2021.10.8-py39haa9~ --> conda-forge::certifi-2022.6.15-py39hcbf5309_0
  conda              pkgs/main::conda-4.13.0-py39haa95532_0 --> conda-forge::conda-4.13.0-py39hcbf5309_1
  icu                        pkgs/main::icu-58.2-ha925a31_3 --> conda-forge::icu-68.2-h0e60522_0
  openssl              pkgs/main::openssl-1.1.1n-h2bbff1b_0 --> conda-forge::openssl-1.1.1o-h8ffe710_0
  pyqt                 pkgs/main::pyqt-5.9.2-py39hd77b12b_6 --> conda-forge::pyqt-5.12.3-py39hcbf5309_8
  qt                     pkgs/main::qt-5.9.7-vc14h73c81de_0 --> conda-forge::qt-5.12.9-h5909a2a_4

The following packages will be SUPERSEDED by a higher-priority channel:

  libprotobuf        pkgs/main::libprotobuf-3.19.1-h23ce68~ --> conda-forge::libprotobuf-3.14.0-h7755175_0
  protobuf           pkgs/main::protobuf-3.19.1-py39hd77b1~ --> conda-forge::protobuf-3.14.0-py39h415ef7b_1
  wheel                pkgs/main::wheel-0.37.1-pyhd3eb1b0_0 --> conda-forge::wheel-0.35.1-pyh9f0ad1d_0

The following packages will be DOWNGRADED:

  anaconda                                   2022.05-py39_0 --> custom-py39_1


Proceed ([y]/n)?
1 Like

from ktsh.tanaka.2020 to quique123

It seems that it was installed safely, which is good.

After that, please get the hang of it little by little. There are a lot of resources, but it’s quite difficult to find.

Regards, you.
ktsh.tanaka.2020

Ok so now when i go into the GUI I can see that tensorflow has been added but i also noticed that all of the modules installed now have a 100 in front for some reason.

Is this normal?

I ran my notebook again and now I got this error:

ModuleNotFoundError                       Traceback (most recent call last)
Input In [1], in <cell line: 7>()
      5 from statsmodels.tools.eval_measures import rmse
      6 from sklearn.preprocessing import MinMaxScaler
----> 7 from keras.preprocessing.sequence import TimeseriesGenerator
      8 from keras.models import Sequential
      9 from keras.layers import Dense

ModuleNotFoundError: No module named 'keras'
1 Like

So I did this and it worked. It worked in the sense that the installation didnt fail. So basically it seems so far that any install/upgrade on win11 via GUI fails:

(base) C:\Users\marci>conda install -c conda-forge keras
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\marci\anaconda3

  added / updated specs:
    - keras


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    keras-2.6.0                |     pyhd3eb1b0_0         721 KB
    openssl-1.1.1p             |       h8ffe710_0         5.8 MB  conda-forge
    ------------------------------------------------------------
                                           Total:         6.5 MB

The following NEW packages will be INSTALLED:

  keras              pkgs/main/noarch::keras-2.6.0-pyhd3eb1b0_0

The following packages will be UPDATED:

  openssl                                 1.1.1o-h8ffe710_0 --> 1.1.1p-h8ffe710_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
openssl-1.1.1p       | 5.8 MB    | ############################################################################ | 100%
keras-2.6.0          | 721 KB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
1 Like

When i tried running the notebook now I got this:

ImportError                               Traceback (most recent call last)
File ~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py:64, in <module>
     63 try:
---> 64   from tensorflow.python._pywrap_tensorflow_internal import *
     65 # This try catch logic is because there is no bazel equivalent for py_extension.
     66 # Externally in opensource we must enable exceptions to load the shared object
     67 # by exposing the PyInit symbols with pybind. This error will only be
     68 # caught internally or if someone changes the name of the target _pywrap_tensorflow_internal.
     69 
     70 # This logic is used in other internal projects using py_extension.

ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
Input In [1], in <cell line: 7>()
      5 from statsmodels.tools.eval_measures import rmse
      6 from sklearn.preprocessing import MinMaxScaler
----> 7 from keras.preprocessing.sequence import TimeseriesGenerator
      8 from keras.models import Sequential
      9 from keras.layers import Dense

File ~\anaconda3\lib\site-packages\keras\__init__.py:21, in <module>
     15 """Implementation of the Keras API, the high-level API of TensorFlow.
     16 
     17 Detailed documentation and user guides are available at
     18 [keras.io](https://keras.io).
     19 """
     20 # pylint: disable=unused-import
---> 21 from tensorflow.python import tf2
     22 from keras import distribute
     24 # See b/110718070#comment18 for more details about this import.

File ~\anaconda3\lib\site-packages\tensorflow\__init__.py:41, in <module>
     38 import six as _six
     39 import sys as _sys
---> 41 from tensorflow.python.tools import module_util as _module_util
     42 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
     44 # Make sure code inside the TensorFlow codebase can use tf2.enabled() at import.

File ~\anaconda3\lib\site-packages\tensorflow\python\__init__.py:40, in <module>
     31 import traceback
     33 # We aim to keep this file minimal and ideally remove completely.
     34 # If you are adding a new file with @tf_export decorators,
     35 # import it in modules_with_exports.py instead.
     36 
     37 # go/tf-wildcard-import
     38 # pylint: disable=wildcard-import,g-bad-import-order,g-import-not-at-top
---> 40 from tensorflow.python.eager import context
     41 from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
     43 # pylint: enable=wildcard-import
     44 
     45 # Bring in subpackages.

File ~\anaconda3\lib\site-packages\tensorflow\python\eager\context.py:35, in <module>
     33 from tensorflow.core.protobuf import config_pb2
     34 from tensorflow.core.protobuf import rewriter_config_pb2
---> 35 from tensorflow.python import pywrap_tfe
     36 from tensorflow.python import tf2
     37 from tensorflow.python.client import pywrap_tf_session

File ~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tfe.py:28, in <module>
     25 from __future__ import print_function
     27 # pylint: disable=invalid-import-order,g-bad-import-order, wildcard-import, unused-import
---> 28 from tensorflow.python import pywrap_tensorflow
     29 from tensorflow.python._pywrap_tfe import *

File ~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py:83, in <module>
     78 except ImportError:
     79   msg = """%s\n\nFailed to load the native TensorFlow runtime.\n
     80 See https://www.tensorflow.org/install/errors\n
     81 for some common reasons and solutions.  Include the entire stack trace
     82 above this error message when asking for help.""" % traceback.format_exc()
---> 83   raise ImportError(msg)

ImportError: Traceback (most recent call last):
  File "C:\Users\marci\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.
1 Like