![]() ![]() I have done the above, and can verify it works seamlessly. ![]() Once you've done this, running the command conda install anaconda will pull down the latest release of the Anaconda platform, from your internal repository. ![]() This tells conda to get packages from your local repo, rather than the public Continuum one. condarc file with this template, supplying your internal web server like: channels: ) to discover all the files, GET them and put onto your internal webserver. condarc file.Ĭhoose a web server, and put the files referred to in the public repository (above) in there, with identical directory structure (but you don't need the /pkgs/free/ part). My head is still spinning.Create a HTTP server and copy all the content from. In my case the example was a package called peakutils rolling back numpy, which then broke a from numpy import ma in scale.py module in the matplotlib package. With Anaconda, updating Python becomes a simple process that even beginners can handle confidently. Some pip installs will roll back a version of a related package, thus breaking other conda-installed packages. Updating the Python version with Anaconda ensures seamless installation of the latest version and enables you to avoid any version conflicts. That was a tricky one because it's a runtime error, and on stack overflow many of the solutions refer to various qt lib requirements which aren't part of python/conda and which I already had.Ī further specific note. It wasn't anything to do with conda version or conda config.Ī specific note for anyone using opencv-python, I ended up needing to install qt via conda, before attempting to install opencv-python via pip. Eventually my program ran in the new env, with tensorflow-gpu imported, and the root cause was revealed as conda installs which occur after pip installs. Each time it happened, I shuffled that conda package back to the initial conda create command and started again. Since I was deducing what packages I needed to install in the new env by running my program and installing one package at each error (ie instead of being methodical about listing my former env), along the way I reproduced this frozen solve thing several times. I tried all the things listed on this page, but in the end I just hammered out a new env. The list of packages cited as being incompatible was in the dozens. In my case it was tensorflow-gpu that wouldn't install from conda-forge, into an env I'd already been using for some weeks. I've generally had good results with conda and pip, but learned over time that environments really can get broken by unusual combinations of packages, and just starting a new env from scratch is often the only way forward. (myenv_conda) $ conda install -c anaconda requests-kerberos Now try to install packages using conda -c install anaconda eg: conda install -c conda requests-kerberos Then activate your myenv_conda conda activate myenv_conda Then create your virtual environment: conda create -name myenv_conda ![]() Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.ĭowngrade your conda if possible using the following commands conda config -set allow_conda_downgrades true Solving environment: failed with initial frozen solve. (base) $ conda install -c anaconda requests-kerberosĬollecting package metadata (current_repodata.json): done If your conda version is greater than or equal to 4.8, you may see that error. Now I cannot use conda for anything, please advise and thank you! It will give me errors again in the solving environment, and I think this is related to the first issue. Press CTRL-C to abort.Įven after the checking for incompatible packages, it didn't give me the solution.Ģ) When I want to upgrade or downgrade conda by the command: conda update -n base conda Then it will fail again and give message like this: Found conflicts! Looking for incompatible packages. It will give me the error in solving environment list this: failed with initial frozen solve. User-agent : conda/4.7.11 requests/2.22.0 CPython/3.6.9 Windows/10 Windows/9ġ) I cannot use conda install for any package. Package cache : C:\Users\xxx\Documents\ANACONDA\pkgsĬ:\Users\xxx\AppData\Local\conda\conda\pkgsĮnvs directories : C:\Users\xxx\Documents\ANACONDA\envsĬ:\Users\xxx\AppData\Local\conda\conda\envs Populated config files : C:\Users\xxx\.condarcīase environment : C:\Users\xxx\Documents\ANACONDA (writable) I am using anaconda as below: (base) C:\Users\xxx>conda infoĪctive env location : C:\Users\xxx\Documents\ANACONDA ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |