i am trying to run python 2.7 on my Notebook, but the setup code fails:
conda create --name python27 python=2.7
error:
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
python=3.7
Current channels:
http://conda.anaconda.org/gurobi/osx-64
http://conda.anaconda.org/gurobi/noarch
anyone know how to solve it?
tried this:https://www.dev2qa.com/how-to-manage-anaconda-environments/?unapproved=23378&moderation-hash=9d3a3d01f2257771adf184891b3afc0b#comment-23378
and this:https://www.bountysource.com/issues/69268090-removeerror-requests-is-a-dependency-of-conda-and-cannot-be-removed-from-conda-s-operating-environment
Related
I am trying to run a python code in PyCharm that requires cartopy. Cartopy will not install on my Anaconda 3. My computer is running Windows. I have tried entering the following in Anaconda 3 and get the error:
(base) PS C:\Users\w______> conda install -c conda-forge/label/cf201901 cartopy
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: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Please help! Is there another way I can install cartopy? My maps are due next week and nobody at the university seems to be able to help me.
I am getting the following error output when trying to install eomaps using Conda. I don't know how to solve this. I have also tried the same using pip but it didn't seem to solve the problem. Here is the error that Conda reports:
(base) C:\Windows\system32>conda install -c conda-forge eomaps
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: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Here is the error that pip reports:
ERROR: Failed building wheel for cartopy
ERROR: Command errored out with exit status 1:
------
ERROR: Failed building wheel for fiona
ERROR: Could not build wheels for cartopy which use PEP 517 and cannot be installed directly
How can I get this to install?
EOmaps dev here...
I think the problem is that you're installing packages in your (base) environment! You most probably have some packages installed (previous versions of cartopy, pyproj etc.?) that conflict with the requirements of EOmaps which is why the conda-solver does not succeed.
I'd strongly suggest working in a fresh environment and NOT in the base environment!
(Checkout conda user-guide - managing environments)
As an example, the following should work without any problems:
conda create -n eomaps_env python=3.9
conda activate eomaps_env
conda install -c conda-forge eomaps
(the name eomaps_env and the python-version are both optional and you can change it to whatever name and version you like!)
To speed up solving complex dependencies you can also try to use mamba (a c++ reimplementation of the conda package manager) which does the very same thing as conda (but solving dependencies works a lot faster):
conda create -n eomaps_env python=3.9
conda activate eomaps_env
conda install -c conda-forge mamba
mamba install -c conda-forge eomaps
I typed in the code (conda install -c conda-forge opencv) into the anaconda prompt, and when it starts to download it freezes at solving environment and tries again in an endless cycle.
this is what it says
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.
I tried a series of steps to solve this problem without solution. Until i had to use "albumentation" module for another AI project, and this library brings openCV and it solves my problem.
conda install -c conda-forge albumentations
I plan on use R inside Python using the rpy2 package in Jupyterhub.
I'm using conda 4.9.2
$ conda install -c r r-essentials
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.
ResolvePackageNotFound:
- conda==4.8.1
and trying to downgrad conda 4.8.1, But this error occured.
EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
Is there anything I can do?
I need to update cartopy 0.16 to 0.17 because of this bug fix.
bash command conda list | grep cartopy returns:
cartopy 0.16.0
When I then do conda update cartopy
I get:
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
But then checking again, I still have cartopy 0.16.
I've also tried the commands:
conda install -c conda-forge cartopy (that just installs 0.16) and conda install cartopy=0.17 which takes me through a long list of returns that starts with this:
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: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining conflict for conda basemap scipy python mkl_fft twyt...
But it ultimately doesn't update cartopy.
Does anybody know how I can get the new version with conda?
It looks like there are packages in your current env that are conflicting with the newer version of cartopy. I suggest creating a seperate environment for that cartopy version:
conda create -n <someName> python=<your desired version> cartopy=0.17 <other packages you may need>