ERROR: Cannot install en-core-web-trf because these package versions have conflicting dependencies
ERROR: Cannot install en-core-web-trf because these package versions have conflicting dependencies
我使用以下命令(来自 spacy 网站 here)在 Windows 10 home 64 位下安装 spacy 和 en_core_web_trf,但是,我遇到了问题 运行 最后(第三行)命令。
pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download en_core_web_trf
错误:
INFO: pip is looking at multiple versions of en-core-web-trf to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install en-core-web-trf because these package versions have conflicting dependencies.
The conflict is caused by:
spacy-transformers 1.1.4 depends on torch>=1.6.0
spacy-transformers 1.1.3 depends on torch>=1.6.0
spacy-transformers 1.1.2 depends on torch>=1.6.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
有人知道怎么解决吗?谢谢!我被困在这里一晚上了。
卸载 spacy 并使用 pip install spacy-transformers -f https://download.pytorch.org/whl/torch_stable.html
重新安装后出现错误更新
ERROR: Cannot install spacy-transformers==0.5.0, spacy-transformers==0.5.1, spacy-transformers==0.5.2, spacy-transformers==0.5.3, spacy-transformers==0.6.1, spacy-transformers==0.6.2, spacy-transformers==1.0.0, spacy-transformers==1.0.1, spacy-transformers==1.0.2, spacy-transformers==1.0.3, spacy-transformers==1.0.4, spacy-transformers==1.0.5, spacy-transformers==1.0.6, spacy-transformers==1.1.0, spacy-transformers==1.1.1, spacy-transformers==1.1.2, spacy-transformers==1.1.3 and spacy-transformers==1.1.4 because these package versions have conflicting dependencies.
The conflict is caused by:
spacy-transformers 1.1.4 depends on torch>=1.6.0
spacy-transformers 1.1.3 depends on torch>=1.6.0
spacy-transformers 1.1.2 depends on torch>=1.6.0
spacy-transformers 1.1.1 depends on torch>=1.6.0
spacy-transformers 1.1.0 depends on torch>=1.6.0
spacy-transformers 1.0.6 depends on torch>=1.5.0
spacy-transformers 1.0.5 depends on torch>=1.5.0
spacy-transformers 1.0.4 depends on torch>=1.5.0
spacy-transformers 1.0.3 depends on torch>=1.5.0
spacy-transformers 1.0.2 depends on torch>=1.5.0
spacy-transformers 1.0.1 depends on torch>=1.5.0
spacy-transformers 1.0.0 depends on torch>=1.5.0
spacy-transformers 0.6.2 depends on spacy<2.4.0 and >=2.3.0
spacy-transformers 0.6.1 depends on spacy<2.4.0 and >=2.3.0
spacy-transformers 0.5.3 depends on spacy<2.3.0 and >=2.2.1
spacy-transformers 0.5.2 depends on spacy<2.3.0 and >=2.2.1
spacy-transformers 0.5.1 depends on spacy<2.3.0 and >=2.2.1
spacy-transformers 0.5.0 depends on spacy<2.3.0 and >=2.2.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
尝试:
pip uninstall spacy-transformers 1.1.4
pip uninstall spacy-transformers 1.1.3
pip uninstall spacy-transformers 1.1.2
然后执行:
pip install spacy-transformers -f https://download.pytorch.org/whl/torch_stable.html
上找到完整的安装过程
为与我有同样问题的人提供的信息。
提到的问题最终还是没有解决,至少我试过重装包,重装python(完全卸载再重装)。对我没有任何作用。
我最终是如何避免这种情况的?
我完全卸载了 python。
安装Anaconda(最新版),安装Anaconda的同时默认安装pip和python。然后我在windows命令行中使用pip install XX
,无论是安装spacy,还是安装requirements.txt,都很好。我就是这样避免了上述问题的。
希望对同样有此问题的人有所帮助。
我使用以下命令(来自 spacy 网站 here)在 Windows 10 home 64 位下安装 spacy 和 en_core_web_trf,但是,我遇到了问题 运行 最后(第三行)命令。
pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download en_core_web_trf
错误:
INFO: pip is looking at multiple versions of en-core-web-trf to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install en-core-web-trf because these package versions have conflicting dependencies.
The conflict is caused by:
spacy-transformers 1.1.4 depends on torch>=1.6.0
spacy-transformers 1.1.3 depends on torch>=1.6.0
spacy-transformers 1.1.2 depends on torch>=1.6.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
有人知道怎么解决吗?谢谢!我被困在这里一晚上了。
卸载 spacy 并使用 pip install spacy-transformers -f https://download.pytorch.org/whl/torch_stable.html
ERROR: Cannot install spacy-transformers==0.5.0, spacy-transformers==0.5.1, spacy-transformers==0.5.2, spacy-transformers==0.5.3, spacy-transformers==0.6.1, spacy-transformers==0.6.2, spacy-transformers==1.0.0, spacy-transformers==1.0.1, spacy-transformers==1.0.2, spacy-transformers==1.0.3, spacy-transformers==1.0.4, spacy-transformers==1.0.5, spacy-transformers==1.0.6, spacy-transformers==1.1.0, spacy-transformers==1.1.1, spacy-transformers==1.1.2, spacy-transformers==1.1.3 and spacy-transformers==1.1.4 because these package versions have conflicting dependencies.
The conflict is caused by:
spacy-transformers 1.1.4 depends on torch>=1.6.0
spacy-transformers 1.1.3 depends on torch>=1.6.0
spacy-transformers 1.1.2 depends on torch>=1.6.0
spacy-transformers 1.1.1 depends on torch>=1.6.0
spacy-transformers 1.1.0 depends on torch>=1.6.0
spacy-transformers 1.0.6 depends on torch>=1.5.0
spacy-transformers 1.0.5 depends on torch>=1.5.0
spacy-transformers 1.0.4 depends on torch>=1.5.0
spacy-transformers 1.0.3 depends on torch>=1.5.0
spacy-transformers 1.0.2 depends on torch>=1.5.0
spacy-transformers 1.0.1 depends on torch>=1.5.0
spacy-transformers 1.0.0 depends on torch>=1.5.0
spacy-transformers 0.6.2 depends on spacy<2.4.0 and >=2.3.0
spacy-transformers 0.6.1 depends on spacy<2.4.0 and >=2.3.0
spacy-transformers 0.5.3 depends on spacy<2.3.0 and >=2.2.1
spacy-transformers 0.5.2 depends on spacy<2.3.0 and >=2.2.1
spacy-transformers 0.5.1 depends on spacy<2.3.0 and >=2.2.1
spacy-transformers 0.5.0 depends on spacy<2.3.0 and >=2.2.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
尝试:
pip uninstall spacy-transformers 1.1.4
pip uninstall spacy-transformers 1.1.3
pip uninstall spacy-transformers 1.1.2
然后执行:
pip install spacy-transformers -f https://download.pytorch.org/whl/torch_stable.html
上找到完整的安装过程
为与我有同样问题的人提供的信息。
提到的问题最终还是没有解决,至少我试过重装包,重装python(完全卸载再重装)。对我没有任何作用。
我最终是如何避免这种情况的?
我完全卸载了 python。
安装Anaconda(最新版),安装Anaconda的同时默认安装pip和python。然后我在windows命令行中使用pip install XX
,无论是安装spacy,还是安装requirements.txt,都很好。我就是这样避免了上述问题的。
希望对同样有此问题的人有所帮助。