我正在尝试安装requirements.txt中提到的库包
\n这是我得到的错误:
\nPS C:\\Users\\lalit\\Downloads\\The-Movie-Cinema-master> pip install -r requirements.txt\nWARNING: Ignoring invalid distribution -p (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution -p (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution -ip (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution - (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution -p (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution -p (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution -ip (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution - (c:\\python39\\lib\\site-packages)\nCollecting Flask==1.1.1\n Using cached Flask-1.1.1-py2.py3-none-any.whl (94 kB)\nCollecting gunicorn==19.9.0\n Using cached gunicorn-19.9.0-py2.py3-none-any.whl (112 kB)\nCollecting Jinja2==2.11.3\n Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)\nCollecting MarkupSafe==1.1.1\n Using cached MarkupSafe-1.1.1-cp39-cp39-win_amd64.whl (16 kB)\nCollecting Werkzeug==0.15.5\n Using cached Werkzeug-0.15.5-py2.py3-none-any.whl (328 kB)\nRequirement already satisfied: numpy>=1.9.2 in c:\\python39\\lib\\site-packages (from -r requirements.txt (line 6)) (1.21.2)\nCollecting scipy>=0.15.1\n Using cached scipy-1.7.1-cp39-cp39-win_amd64.whl (33.8 MB)\nCollecting nltk==3.5\n Using cached nltk-3.5.zip (1.4 MB)\nCollecting scikit-learn>=0.18\n Using cached scikit_learn-0.24.2-cp39-cp39-win_amd64.whl (6.9 MB)\nCollecting pandas>=0.19\n Using cached pandas-1.3.2-cp39-cp39-win_amd64.whl (10.2 MB)\nCollecting beautifulsoup4==4.9.1\n Using cached beautifulsoup4-4.9.1-py3-none-any.whl (115 kB)\nCollecting jsonschema==3.2.0\n Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)\nCollecting tmdbv3api==1.6.1\n Using cached tmdbv3api-1.6.1-py2.py3-none-any.whl (13 kB)\nCollecting lxml==4.6.3\n Using cached lxml-4.6.3-cp39-cp39-win_amd64.whl (3.5 MB)\nCollecting urllib3==1.26\n Downloading urllib3-1.26.0-py2.py3-none-any.whl (136 kB)\n |\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88| 136 kB 6.4 MB/s\nCollecting requests==2.23.0\n Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)\nCollecting pickleshare==0.7.5\n Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)\nCollecting click>=5.1\n Using cached click-8.0.1-py3-none-any.whl (97 kB)\nCollecting itsdangerous>=0.24\n Using cached itsdangerous-2.0.1-py3-none-any.whl (18 kB)\nCollecting joblib\n Using cached joblib-1.0.1-py3-none-any.whl (303 kB)\nCollecting regex\n Using cached regex-2021.8.3-cp39-cp39-win_amd64.whl (270 kB)\nCollecting tqdm\n Using cached tqdm-4.62.1-py2.py3-none-any.whl (76 kB)\nCollecting soupsieve>1.2\n Using cached soupsieve-2.2.1-py3-none-any.whl (33 kB)\nCollecting pyrsistent>=0.14.0\n Using cached pyrsistent-0.18.0-cp39-cp39-win_amd64.whl (62 kB)\nRequirement already satisfied: setuptools in c:\\python39\\lib\\site-packages (from jsonschema==3.2.0->-r requirements.txt (line 12)) (56.0.0)\nCollecting attrs>=17.4.0\n Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB)\nRequirement already satisfied: six>=1.11.0 in c:\\python39\\lib\\site-packages (from jsonschema==3.2.0->-r requirements.txt (line 12)) (1.16.0)\nCollecting certifi>=2017.4.17\n Using cached certifi-2021.5.30-py2.py3-none-any.whl (145 kB)\nINFO: pip is looking at multiple versions of urllib3 to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of lxml to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of tmdbv3api to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of jsonschema to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of beautifulsoup4 to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of nltk to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of werkzeug to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of markupsafe to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of jinja2 to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of gunicorn to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.\nINFO: pip is looking at multiple versions of flask to determine which version is compatible with other requirements. This could take a while.\nERROR: Cannot install -r requirements.txt (line 16) and urllib3==1.26 because these package versions have conflicting dependencies.\n\nThe conflict is caused by:\n The user requested urllib3==1.26\n requests 2.23.0 depends on urllib3!=1.25.0, !=1.25.1, <1.26 and >=1.21.1\n\nTo fix this you could try to:\n1. loosen the range of package versions you've specified\n2. remove package versions to allow pip attempt to solve the dependency conflict\n\nERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies\nWARNING: Ignoring invalid distribution -p (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution -p (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution -ip (c:\\python39\\lib\\site-packages)\nWARNING: Ignoring invalid distribution - (c:\\python39\\lib\\site-packages)\nPS C:\\Users\\lalit\\Downloads\\The-Movie-Cinema-master>\n\nRun Code Online (Sandbox Code Playgroud)\n安装软件包的命令:pip install -r requirements.txt
之后我遇到了错误。如何逐步解决这些问题?
\n小智 5
确保使用最新版本:
对我来说修复是使用以下最新版本
requests==2.28.1 (https://pypi.org/project/requests/)
urllib3==1.26.12 (https://pypi.org/project/urllib3/)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19944 次 |
| 最近记录: |