Use Pip

The channel value of pypi indicates that this package was installed from PyPI using pip, and therefore - as suggested in @Sraw's comment - it needs to be removed with pip.

pip uninstall awscli

Additional Tips

Using pip in your base is discouraged. See "Using Pip in a Conda Environment".

The conda list command accepts a regex, so you don't need grep (which ends up filtering out the header information) to search specific packages. In this case conda list aws would have sufficed.

Answer from merv on Stack Overflow
🌐
GitHub
github.com › conda › conda › issues › 12197
Consolidate exceptions when a package is not found in the target environment · Issue #12197 · conda/conda
December 23, 2022 - $conda remove this-does-not-exist Collecting package metadata (repodata.json): done Solving environment: failed PackagesNotFoundError: The following packages are missing from the target environment: - this-does-not-exist
Author   jaimergp
Discussions

Problem conda install--revision - Technical Topics - Anaconda Forum
I am trying to roll back to a previous conda installation. When I enter conda install --rev 17 I get the following message eventually 'The following packages are missing from the target environment threadpool=2.1.0=ph5ca1d4c-0 and yet I have installed this package and can see it in my Anaconda/pkgs ... More on forum.anaconda.com
🌐 forum.anaconda.com
0
May 6, 2025
python - PackagesNotFoundError: The following packages are missing from the target environment: - shapely - Stack Overflow
I am trying to remove shapely in anaconda using: conda remove shapely but receiving the following warning message: Collecting package metadata (repodata.json): done Solving environment: failed More on stackoverflow.com
🌐 stackoverflow.com
July 22, 2023
Anaconda python: PackagesNotFoundError error when trying to roll back revision - Stack Overflow
For some reason I decided to upgrade setuptools. The so-called package plan that popped up when I ran conda install -c anaconda setuptools was as follows: The following packages will be downloaded... More on stackoverflow.com
🌐 stackoverflow.com
PackagesNotFoundError even when package installed - Packages & Environments - Anaconda Forum
A conda-smithy repository for cdo. Contribute to conda-forge/cdo-feedstock development by creating an account on GitHub · Currently you’re trying to install CDO for your Windows OS. According to conda-forge’s repository, there’re currently no binary tar balls available for Windows. More on forum.anaconda.com
🌐 forum.anaconda.com
0
May 28, 2023
🌐
GitHub
github.com › conda › conda › issues › 8351
Cannot remove environment, returns empty PackagesNotFoundError · Issue #8351 · conda/conda
February 27, 2019 - Current Behavior Remove all packages in environment /anaconda3/envs/cling37: PackagesNotFoundError: The following packages are missing from the target environment: - Steps to Reproduce > conda remove --name cling37 --all Expected Behavio...
Author   jarmitage
🌐
Anaconda Forum
forum.anaconda.com › technical topics
Problem conda install--revision - Technical Topics - Anaconda Forum
May 6, 2025 - I am trying to roll back to a previous conda installation. When I enter conda install --rev 17 I get the following message eventually 'The following packages are missing from the target environment threadpool=2.1.0=ph5ca1d4c-0 and yet I have installed this package and can see it in my Anaconda/pkgs ...
🌐
Stack Overflow
stackoverflow.com › questions › 76742455 › packagesnotfounderror-the-following-packages-are-missing-from-the-target-enviro
python - PackagesNotFoundError: The following packages are missing from the target environment: - shapely - Stack Overflow
July 22, 2023 - Collecting package metadata (repodata.json): done Solving environment: failed PackagesNotFoundError: The following packages are missing from the target environment: - shapely
Top answer
1 of 4
11

I had a similar issue where I could not role back to an older revision. After the command

conda install --revision N

I got a similar error message in the style

PackagesNotFoundError: The following packages are missing from the target environment:
    - channel-name::package==v.v.v=build
    - ...

What helped was to add the channel to the command

conda install --revision N -c channel-name
2 of 4
5

It appears you are maintaining your environment by issuing a series of conda install commands. You could continue to do this, with an additional version specification on the command line. But I encourage you to switch to this approach:

Create an environment.yml file that looks like this.

name: myproject

channels:
  - conda-forge

dependencies:
  - bzip2 >= 1.0.6
  - pip >= 19.1.1
  - snappy >= 1.1.7
  - zlib >= 1.2.11

Add others as needed.

Use conda env update to install the packages. (With which python you can see where they were installed.)

An advantage of this approach is you can easily rm -rf ~/miniconda3/envs/myproject/ (or wherever they were installed) and then conda env update to re-install from scratch. This typically resolves versionitis problems, or at least offers a hint about which version constraints should be relaxed to permit a feasible solution.

I personally favor >= constraints in my environment.yml files. Sticking to modern versions is good for community support when things go awry, and is good for speed of updates since conda will have just a handful of modern versions to consider, rather than trying to figure out how e.g. python2 might play into the dependency constraints. It helps me to learn of updates, and then I re-run my automated unit tests upon pulling in newer deps.

Alternatively you can routinely store == constraints to lock it down if desired, e.g. bzip2 == 1.0.6. And if you haven't been doing that, you can still checkout an old snapshot with e.g. bzip2 >= 1.0.5 and edit with global search-n-replace, changing >= to ==. That will set the controls on the Time Machine to go back in time to some consistent set of older dep versions. If your conda env update run shows some rough edges, consider nuking the environment and re-populating it from scratch. Often a clean install like that will run more smoothly.

Find elsewhere
🌐
Robin's Blog
blog.rtwilson.com › conda-revisions-letting-you-rollback-to-a-previous-version-of-your-environment
Conda revisions: letting you ‘rollback’ to a previous version of your environment « Robin's Blog
In this output you can see a number of specific versions (or revisions) of this environment (in this case the default conda environment), along with the date/time they were created, and the differences (installed packages shown as +, uninstalled shown as - and upgrades shown as ->).
🌐
SukhbinderSingh.com
sukhbinder.wordpress.com › 2022 › 05 › 11 › conda-packagesnotfounderror-the-following-packages-are-not-available
Conda PackagesNotFoundError: The following packages are not available – SukhbinderSingh.com
May 11, 2022 - This is a problem that had annoyed me a lot because conda environment file had specific versions specified and we were not allowed to change them to maintain compatibility of python code across different users and geographic. Problem conda install numpy=1.11.3 mkl=11.3.3 matplotlib=1.5.3 psutil=5.4.7 numexpr=2.6.1 h5py=2.6.0 hdf5=1.8.15.1 pandas=0.23.3 pytables=3.2.2 python=3.5.2 python-dateutil=2.5.3 setuptools=27.2.0 vc=14.1 vs2015_runtime zlib=1.2.11…
🌐
GitHub
github.com › conda › conda › issues › 10737
PackagesNotFoundError, IPython auto tab completion stopped working after conda update -all · Issue #10737 · conda/conda
June 21, 2021 - 1. conda update --all (causes above error messages) 2. conda install --revision 77 (causes PackagesNotFoundError) 3. pip install jupyterlab (causes ImportError) Conda update --all should not cause errors I am getting. ... active environment : None user config file : /Users/prashantsanghal/.condarc populated config files : /Users/prashantsanghal/.condarc conda version : 4.10.1 conda-build version : not installed python version : 3.6.6.final.0 virtual packages : __osx=10.16=0 __unix=0=0 __archspec=1=x86_64 base environment : /Users/prashantsanghal/anaconda3 (writable) conda av data dir : /Users/
Author   psanghal
🌐
Julia Programming Language
discourse.julialang.org › general usage
@sk_import preprocessing: LabelEncoder is throwing the following error: PackagesNotFoundError: The following packages are missing from the target environment: - mkl - General Usage - Julia Programming Language
August 7, 2020 - This error didn’t come when i compiled @sk_import preprocessing: LabelEncoder for the first time, but throwing this error for the subsequent runs. I also face the same issue for every other library import. Eg. @sk_import metrics: accuracy_score @sk_import linear_model: LogisticRegression @sk_import ensemble: RandomForestClassifier @sk_import tree: DecisionTreeClassifier I tried reinstalling ScikitLearn package, but of no use.
🌐
AMBER Mailing List
archive.ambermd.org › 202202 › 0202.html
[AMBER] Removing AmberTools binary files installed on .pyenv/shims from Tony Myung Keun Cho on 2022-02-22 (Amber Archive Feb 2022)
I used the following command to ... ~/.pyenv/shims "Collecting package metadata (repodata.json): done Solving environment: failed PackagesNotFoundError: The following packages are missing from the target environment: - ambertools" I could execute > rm -rf ~/.pyenv/shims/antechamber ...
🌐
Position Is Everything
positioniseverything.net › home › packagesnotfounderror: the following packages are not available from current channels:
Packagesnotfounderror: The Following Packages Are Not Available From Current Channels: - Position Is Everything
December 29, 2025 - The error PackagesNotFoundError: ... by an incorrect or outdated current channels configuration, incompatible packages, conflicts with other packages or dependencies, and corrupted or inconsistent package caches or installation files...
🌐
GitHub
github.com › conda › conda › issues › 8147
'conda remove' fails when no packages installed in environment · Issue #8147 · conda/conda
January 26, 2019 - $ conda create -n empty -y $ conda remove -n empty --all -y Remove all packages in environment /Users/dev/miniconda3/envs/empty: PackagesNotFoundError: The following packages are missing from the target environment: -
Author   cmeyer
🌐
JetBrains
jetbrains.com › help › pycharm › package-installation-issues.html
Package installation issues | PyCharm Documentation
November 28, 2025 - Open the system terminal (not the ... to conda documentation. One of the possible failure cases occurs when the target package is not available in the repositories supported by the conda package manager....
🌐
GitHub
github.com › spyder-ide › spyder › issues › 14139
Trying conda install spyder=4.1.5 says missing xarray · Issue #14139 · spyder-ide/spyder
November 3, 2020 - Problem Description trying to use conda install spyder=4.1.5 gives an error PackagesNotFoundError: The following packages are missing from the target environment: - conda-forge/noarch::xarray==0.15.1=py_0 However in the env: conda list x...
Author   eafpres
🌐
Conda
docs.conda.io › docs › troubleshooting.html
Troubleshooting — conda 26.3.3.dev63 documentation
The following example describes the problem in detail and its solution. Suppose you have a specific need to install the Python cx_freeze module with Python 3.4. A first step is to create a Python 3.4 environment: ... Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata ......... Solving package specifications: . Error: Package missing in current osx-64 channels: - cx_freeze You can search for packages on anaconda.org with anaconda search -t conda cx_freeze
🌐
Python Forum
python-forum.io › thread-40758.html
Installing packages of Conda / Miniconda
September 18, 2023 - Hallo, I've bought an Book 'Data Science mit Python' and I'm trying to install necessary programms and featurs. At first i installed http://conda.pydata.org/miniconda.html and I can see it in start-menu: https://share-your-photo.com/e69d79ae0a The...