conda fails to create environment from yml

No, PyPI is not the issue. Instead, it fails because the YAML includes platform-specific build constraints, but you are transferring across platforms. Specifically, examining the build numbers on the failed packages (e.g., six=py36h0e22d5e_1), I can see that they correspond to packages from the osx-64 platform, but you are trying to install on a linux-64 platform, … Read more

How to update an existing Conda environment with a .yml file

Try using conda env update: conda activate myenv conda env update –file local.yml –prune –prune uninstalls dependencies which were removed from local.yml, as pointed out in this answer by @Blink. Or without the need to activate the environment (thanks @NumesSanguis): conda env update –name myenv –file local.yml –prune See Updating an environment in Conda User … Read more

ResolvePackageNotFound: Create env using conda and yml file on MacOS

I had same problem and found your question googling for it. ResolvePackageNotFound error describes all packages not installed yet, but required. To solve the problem, move them under pip section: name: ex3 channels: – menpo – defaults dependencies: – cairo=1.14.8=0 – *** – another dependencies, except not found ones – pip: – gst-plugins-base==1.8.0 – bleach==1.5.0 … Read more

Is that a bad idea to use conda and pip install on the same environment?

Don’t mix conda install and pip install within conda environment. Probably, decide to use conda or virtualenv+piponce and for all. And here is how you decide which one suits you best: Conda installs various (not only python) conda-adopted packages within conda environment. It gets your environments right if you are into environments. Pip installs python … Read more

What is the proper way to install TensorFlow on Apple M1 in 2022

Distilling the official directions from Apple (as of 13 July 2022), one would create an environment using the following YAML: tf-metal-arm64.yaml name: tf-metal channels: – apple – conda-forge dependencies: – python=3.9 ## specify desired version – pip – tensorflow-deps ## uncomment for use with Jupyter ## – ipykernel ## PyPI packages – pip: – tensorflow-macos … Read more