I am trying to download the blat package so that I can use the GAMMA program to analyze mutations in some sequences. I have bioconda install and I am using one-liner code to download blat described here: https://shanguangyu.com/articles/install-blat-on-mac-with-one-liner-command/
I think the issue could be that blat is not made for M1 macs. I previously had it installed on an older mac but I don't remember how I did that. I am a beginner/proficient coder so it could be an obvious error. Any help is appreciated.
Here is my code:
conda install -c bioconda blat
Here is my error:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- blat
Current channels:
- https://conda.anaconda.org/bioconda/osx-arm64
- https://conda.anaconda.org/bioconda/noarch
- https://conda.anaconda.org/conda-forge/osx-arm64
- https://conda.anaconda.org/conda-forge/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
You got to the root of the issue. M1 Macs use an ARM64-based architecture as opposed to x64. The website for blat does not list ARM compatibility, and, addressing the M1 specifically, a quick examination of the last update to the files shows that they predate the launch of the Apple Silicon Macs, just like the website you got the command from. Anaconda itself added support for ARM64 only recently. x64 translation does exist for macOS apps, but I don't think I've heard of one for blat.
From post update
This seems to be a common issue for Python users on new M1 macs. Many python packages are not made for ARM chips
This is solved by downloading homebrew and miniforge and using this code:
CONDA_SUBDIR=osx-64 conda create -n [environment] # create a new environment
conda activate [environment]
conda env config vars set CONDA_SUBDIR=osx-64 # subsequent commands use intel packages
https://naolin.medium.com/conda-on-m1-mac-with-miniforge-bbc4e3924f2b
https://towardsdatascience.com/using-conda-on-an-m1-mac-b2df5608a141
https://github.com/Haydnspass/miniforge#rosetta-on-mac-with-apple-silicon-hardware
Related
After re-installing Anaconda 4 times in a row, and trying every possible trick in the book, I cannot seem to get OpenCV in my Anaconda apps. I want to use cv2 in Spyder (version 5.2.2), but countless tries have not resulted in anything of use.
DISCLAIMER: I am quite the noob when it comes to data environments, paths and whatnot, so be nice :)
INFO ABOUT THE PROBLEM:
I have now factory reset the computer, only downloaded and installed Anaconda through the official website. I then tried to type in to the Anaconda prompt:
conda install -c conda-forge opencv
When I run that, it currently produces:
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: /
I tried the same yesterday, with similar results. Running for a couple of hours, it started Examining conflicts with a bunch of packages.
At this point I can do no better than just ask here. I've tried so many different ways of trying to install openCV, and none of them have worked. I am desperate for any help.
I am using a GP66 Leopard computer with Windows 10, I don't know what more specs are needed.
In advance, thank you for looking in to this problem.
This did it: pip install opencv-python. Thank you to #CristophRackwitz for the suggestion!
(base) C:\Users\Lenovo>conda install -c menpo dlib
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.|
failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- dlib -> python[version='2.7.*|3.4.*|3.5.*']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
I did not find a solution to this problem yet. Heeeelppp, i tried both creating a new virtualenv into which install an older version of python (ex 3.5) and run the command pip install quast, but it doesn't work.
I wanna use some libraries such as DLIB, opencv, tensorflow and tesseract for computer vision...
I'm trying to install ray[tune] tune-sklearn on my machine but keeps failing. I'm using a MacBook Pro 2019 with Big Sur Version 11.6 and Python 3.9.7 (default, Sep 16 2021, 08:50:36) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin. All other packages I've tried to installed fine either using conda install or pip install except for this one. I'm struggling to find an answer online myself. I was on Python 3.8 but I removed this and installed 3.9 as I thought this was the problem. Apologies in advance, I'm new to data mining and still don't know a great deal yet.
I tried
conda install -c conda-forge -y ray-tune tune-sklearn
But got back this:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- ray-tune
Current channels:
- https://conda.anaconda.org/conda-forge/osx-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
I also tried
pip install ray[tune] tune-sklearn
But got back
zsh: no matches found: ray[tune]
Any help would be greatly appreciated, thank you.
Update:
I also tried
pip install 'ray[tune]'
And got back
ERROR: Could not find a version that satisfies the requirement ray[tune] (from versions: none)
ERROR: No matching distribution found for ray[tune]
ray[tune] is a library within the Ray distributed compute project that supports scalable hyperparameter tuning -- not a stand-alone Python package. You should be able to install ray with the proper dependencies using:
pip install "ray[tune]"
After Ray has been installed, you can reference it within your Python project using either:
import ray[tune]
or
from ray import tune
I have ran into some issue in trying to install mayavi using conda. First it was stuck in the "solving enviroment" step and afterwards I obtained this
(base) usr#pc:~$ conda install -c anaconda mayavi
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.
failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- mayavi -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
I'm a little bit puzzled by this message, what does it mean "If python is on the left-most side of the chain"? I also modified my PATH and I am using python 3.8, shouldn't the installation work with the most recent version?
It looks like these packages on anaconda channel has not been updated in over a year, but the conda-forge channel has some newer builds, including some for Python 3.8. You could try
conda install -c anaconda -c conda-forge mayavi
(edited with correct conda-forge link)
I have made multiple attempts but can't find a fix to the following. This is being done with Anaconda.
conda install pyttsx
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- pyttsx
Current channels:
- https://repo.anaconda.com/pkgs/main/win-32
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-32
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-32
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
If you search for a package name on anaconda.org you can find out what channel(s) it is available on (which may not be in the default anaconda channel). In this case:
$ conda install -c auto pyttsx
See https://anaconda.org/auto/pyttsx
I should add: It appears this package has not been updated in over 6 years, and is only available for Python 2.7. So you should consider whether it is a good idea to use it and if there isn't a better, currently maintained alternative.