错误:wcwidth 在 VS 代码中具有无效的轮子

问题描述 投票:0回答:1

运行pip install -rrequirements.txt时遇到错误错误:wcwidth有一个无效的轮子,wcwidth有一个无效的轮子,发现多个.dist-info目录:wcwidth-0.2.1.dist-info,wcwidth- 0.2.0.dist-info

我正在使用 python 3.8.0 版本并从 VS 代码在 .venv 中运行它

我的要求.txt 包含:

adal==1.2.7
argcomplete==1.12.3
azure-common==1.1.27
azure-core==1.20.1
azure-graphrbac==0.61.1
azure-identity
azure-mgmt-authorization==0.61.0
azure-mgmt-containerregistry==8.2.0
azure-mgmt-core==1.3.0
azure-mgmt-keyvault==9.3.0
azure-mgmt-resource==19.0.0
azure-mgmt-storage==19.0.0
azure-storage-blob==12.9.0
azureml-core==1.37.0.post1
backports.tempfile==1.0
backports.weakref==1.0.post1
bcrypt==3.2.0
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.9
click==8.0.3
colorama==0.4.4
contextlib2==21.6.0
cryptography==3.4.8
cycler==0.11.0
docker==5.0.3
et-xmlfile==1.1.0
fonttools==4.28.3
humanfriendly==9.2
idna==3.3
importlib-metadata==4.8.2
isodate==0.6.0
jeepney==0.7.1
jmespath==0.10.0
joblib==1.1.0
jsonpickle==2.0.0
kiwisolver==1.3.2
knack==0.8.2
matplotlib==3.4.0
msal==1.16.0
msal-extensions==0.3.1
msrest==0.6.21
msrestazure==0.6.4
mypy-extensions==0.4.3
mlflow==1.22.0
azureml-mlflow==1.37.0
ndg-httpsclient==0.5.1
numpy==1.18.1
oauthlib==3.1.1
openpyxl==3.0.9
packaging==21.3
pandas==1.3.5
paramiko==2.8.1
pathspec==0.9.0
Pillow==8.4.0
pkginfo==1.8.2
platformdirs==2.4.0
portalocker==2.3.2
pyasn1==0.4.8
pycodestyle==2.8.0
pycparser==2.21
Pygments==2.10.0
PyJWT==2.3.0
PyNaCl==1.4.0
pyodbc==4.0.32
pyOpenSSL==21.0.0
pyparsing==3.0.6
pyreadline==2.1
PySocks==1.7.1
python-dateutil==2.8.2
pytz==2021.3
PyYAML==6.0
requests==2.26.0
requests-oauthlib==1.3.0
scikit-learn==0.22.1
scipy==1.4.1
SecretStorage==3.3.1
setuptools-scm==6.3.2
six==1.16.0
sklearn==0.0.0
tabulate==0.8.9
threadpoolctl==3.0.0
toml==0.10.2
tomli==1.2.2
typed-ast==1.5.1
typing_extensions==4.0.1
urllib3==1.26.7
websocket-client==1.2.3
yapf==0.31.0
zipp==3.6.0
pyspark==3.2.0
python-dotenv==0.12.*
statsmodels==0.11.0
pytest==5.4.*
pytest-cov==2.8.*
azureml-pipeline==1.37.0
pydantic
ppgamlutils
ppgmlframework
python python-3.x
1个回答
0
投票

问题是

wcwidth
在 2020 年弄乱了一个版本 (
0.2.1
),所以当你
pip install...
并暂时依赖于
wcwidth
时,它会下载几个版本,当它到达这个有问题的版本时,它就会出错.

此处提出的一个解决方案是通过创建包含行 constraints.txt

wcwidth!=0.2.1
 文件并将您的 
pip install
 修改为 
pip install -r requirements.txt -c constraints.txt
 来排除该版本
    

© www.soinside.com 2019 - 2024. All rights reserved.