Windows下Anaconda执行env create时ResolvePackageNotFound错误求助
Hey there, let's work through this error you're facing when creating your robotreviewer environment. The root issue here is that those specific versions of spacy and ptyprocess are quite outdated—conda can't locate them in its default package channels anymore. Here are three actionable solutions to get past this:
Add the conda-forge channel to your environment creation command
Conda-forge is a community-driven channel that often archives older package versions that aren't available in the default conda channels. Run this modified command to pull packages from conda-forge first:conda env create -f robotreviewer_env_local.yml -c conda-forgeThis tells conda to check conda-forge before its default channels, which might turn up those hard-to-find old versions.
Adjust the version constraints in your YAML file
If conda-forge doesn't have those exact versions either, you'll need to loosen the version requirements. Open yourrobotreviewer_env_local.ymlfile and make these changes:- Replace
spacy=0.101.0withspacy>=2.0(or a specific later version likespacy=2.3.7, which is stable and widely available) - Replace
ptyprocess=0.5.1withptyprocess>=0.6.0(or just remove the version number entirely to let conda pick a compatible version automatically)
Save the file, then re-run the original environment creation command:
conda env create -f robotreviewer_env_local.yml- Replace
Install the problematic packages via pip after environment setup
If you absolutely need those exact old versions, you can create the environment without them first, then use pip to install the specific versions:- Open your YAML file and comment out the lines for
spacy=0.101.0andptyprocess=0.5.1(add a#at the start of each line) - Create the environment:
conda env create -f robotreviewer_env_local.yml - Activate the environment:
conda activate robotreviewer_env_local - Install the exact versions using pip:
pip install spacy==0.101.0 ptyprocess==0.5.1
Note: Using pip alongside conda can sometimes lead to dependency conflicts, but this is a common workaround for legacy package versions that conda can't find.
- Open your YAML file and comment out the lines for
内容的提问来源于stack exchange,提问作者adelehasadi

