ImportError: cannotimportname'sysconfig'from'distutils'(/usr/lib/python3.8/distutils/__init__. 因为我们修改了默认环境和软连接,pip list相应指令找的还是python3.8相关的,而不是我们的python3.10; 怎么办: 安装:apt install python3.10-distutils 如果还是不行: curl https://bootstrap.pypa.io/get-pip.py ...
return distutils.core.setup(**attrs) File "/private/var/folders/d6/g22rwyy95438yl9kcz0hq09r0000gn/T/pip-build-env-n4iozlav/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 147, in setup _setup_distribution = dist = klass(attrs) File "/private/var/folders/d6...
针对你遇到的 ImportError: cannot import name 'msvccompiler' from 'distutils' 错误,我们可以按照以下步骤来解决: 1. 确认Python版本和操作系统环境 首先,确认你的Python版本和操作系统环境。msvccompiler 是Python 2.x 版本中 distutils 模块的一部分,用于在Windows平台上编译C扩展。从Python 3.10开始,distutils 模块...
ImportError: cannot import name ‘packaging’ from ‘pkg_resources’ (D:\Anaconda\envs\torch2\lib\site-packages\pkg_resources_init_.py) 2.2、解决方案 setuptools是 Python Enterprise Application Kit(PEAK)的一个副项目,它 是一组Python的 distutilsde工具的增强工具(适用于 Python 2.3.5 以上的版本,64 ...
24.AttributeError: module 'distutils' has no attribute 'version' 将setuptools降级到59.5版本 25.版本不匹配问题 AttributeError: module 'pandas' has no attribute 'options' pytz: No module named 'pytz' ImportError: cannot import name 'distance' from 'scipy.spatial' (unknown location) ...
ImportError: cannot import name '_nt_quote_args' from 'distutils.spawn' (D:\software\program\Anaconda3\envs\open-mmlab3\lib\site-packages\setuptools_distutils\spawn.py) Secondly, the error message you posted is a bug from PyTorch extension setup , which can be solved whith: pip install set...
[ 27s] from distutils.version import LooseVersion [ 27s] /usr/lib64/python3.10/distutils/init.py:19: in [ 27s] warnings.warn(_DEPRECATION_MESSAGE, [ 27s] E DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for ...
今天发布的setuptools 50.0.0的问题。pip3 install "setuptools!=50.0" --force-reinstall ...
MSYS2 Cannot install pyaudio on python3.11 wx@DESKTOP-7RNJFH1 MINGW64 ~ $ SETUPTOOLS_USE_DISTUTILS=stdlib pip3 install pygame pysqlite3 simpleaudio yt-dlp Requirement already satisfied: pygame in c:…
gdal_calc.py from 644 to 755 changing mode of build/scripts-3.11/gdal2xyz.py from 644 to 755 changing mode of build/scripts-3.11/gdal2tiles.py from 644 to 755 /tmp/pyenv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is ...