gpt4 book ai didi

python-3.x - Pip Install -r requirements.txt 没有失败

转载 作者:行者123 更新时间:2023-12-05 04:01:20 25 4
gpt4 key购买 nike

我正在尝试使用 pip install -r requirements.txt 安装 requirements.txt 中的所有依赖项。如果其中一个软件包已安装或未找到其中一个软件包,它通常会停止。

我怎样才能避免这种情况?即忽略导致错误的包并移至下一个。

此外,我正在使用 conda 虚拟环境中的 pip freeze > requirements.txt 创建我的 requirements.txt

requirements.txt:

attrs==19.1.0
backcall==0.1.0
bleach==3.1.0
certifi==2019.3.9
chardet==3.0.4
Click==7.0
cycler==0.10.0
DateTime==4.3
decorator==4.4.0
defusedxml==0.5.0
entrypoints==0.3
future==0.17.1
geocoder==1.38.1
geographiclib==1.49
geopy==1.19.0
idna==2.8
importlib-resources==1.0.2
ipykernel==5.1.0
ipython==7.4.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
jedi==0.13.3
Jinja2==2.10
jsonschema==3.0.1
jupyter==1.0.0
jupyter-client==5.2.4
jupyter-console==6.0.0
jupyter-core==4.4.0
kiwisolver==1.0.1
MarkupSafe==1.1.1
matplotlib==3.0.3
mistune==0.8.4
mkl-fft==1.0.10
mkl-random==1.0.2
nbconvert==5.4.1
nbformat==4.4.0
notebook==5.7.6
numpy==1.16.2
pandas==0.24.2
pandocfilters==1.4.2
parso==0.3.4
patsy==0.5.1
pexpect==4.6.0
pickleshare==0.7.5
prometheus-client==0.6.0
prompt-toolkit==2.0.9
ptyprocess==0.6.0
Pygments==2.3.1
pyodbc==4.0.26
pyparsing==2.3.1
pyrsistent==0.14.11
python-dateutil==2.8.0
pytz==2018.9
pyzmq==18.0.0
qtconsole==4.4.3
ratelim==0.1.6
requests==2.21.0
scikit-learn==0.20.3
scipy==1.2.1
seaborn==0.9.0
Send2Trash==1.5.0
Shapely==1.6.4.post2
six==1.12.0
statsmodels==0.9.0
terminado==0.8.1
testpath==0.4.2
timezonefinder==4.0.1
tornado==6.0.2
traitlets==4.3.2
tzwhere==3.0.3
urllib3==1.24.1
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.4.2
zope.interface==4.6.0

错误:

Could not find a version that satisfies the requirement mkl-fft==1.0.10 (from -r requirements.txt (line 33)) (from versions: ) No matching distribution found for mkl-fft==1.0.10 (from -r requirements.txt (line 33))

提前致谢!

最佳答案

您应该使用--ignore-installed 标记https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-i
如果您不想安装某个包,只需将其从 requirements.txt 中删除即可。或者试试这个。 Stop pip from failing on single package when installing with requirements.txt

关于python-3.x - Pip Install -r requirements.txt 没有失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55539371/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com