【问题标题】:How to install pycaret on Python 3.10?如何在 Python 3.10 上安装 pycaret?
【发布时间】:2022-12-12 10:05:14
【问题描述】:

我正在尝试安装 pycaret,它显示以下错误:

 customize IntelVisualFCompiler
    Could not locate executable ifort
    Could not locate executable ifl
    customize AbsoftFCompiler
    Could not locate executable f90
    customize CompaqVisualFCompiler
    Could not locate executable DF
    customize IntelItaniumVisualFCompiler
    Could not locate executable efl
    customize Gnu95FCompiler
    Could not locate executable gfortran
    Could not locate executable f95
    customize G95FCompiler
    Could not locate executable g95
    customize IntelEM64VisualFCompiler
    customize IntelEM64TFCompiler
    Could not locate executable efort
    Could not locate executable efc
    customize PGroupFlangCompiler
    Could not locate executable flang
    don't know how to compile Fortran code on platform 'nt'
      NOT AVAILABLE
  
   
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries f77blas,cblas,atlas not found in C:\Users\HP\anaconda3\libs
      <class 'numpy.distutils.system_info.atlas_info'>
        NOT AVAILABLE
  
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/aa/f6/75297be19f48b7a8c2577753a3a700f98fc4db49d0e5ed3820dd8dee43d4/scikit-learn-0.23.2.tar.gz#sha256=20766f515e6cd6f954554387dfae705d93c7b544ec0e6c6a5d8e006f6f7ef480 (from https://pypi.org/simple/scikit-learn/) (requires-python:>=3.6). Command errored out with exit status 1: 'C:\Users\HP\anaconda3\python.exe' 'C:\Users\HP\AppData\Local\Temp\pip-standalone-pip-0rixacmy\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users\HP\AppData\Local\Temp\pip-build-env-6uf_b86o\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation == '"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation != '"'"'CPython'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'scipy>=0.19.1' Check the logs for full command output.
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Users\\HP\\anaconda3\\Lib\\site-packages\\pywin32_system32\\pywintypes39.dll'
Consider using the `--user` option or check the permissions.

我已尝试重新安装但仍然无法正常工作,它一直显示与上述相同的错误。

【问题讨论】:

  • 你用了什么 pip 命令?
  • !pip 安装 pycaret

标签: python python-3.10 pycaret


【解决方案1】:

错误说两件事。 No module named 'numpy.distutils._msvccompiler' 模块丢失,还有权限警告。您使用什么命令来安装pycaret。

如果没有安装,请重新安装 numpy,

pip install numpy --user

然后

官方 pypi - pypi - pycaret

pip install pycaret --user

如果两者都不起作用,则 Microsoft 构建工具会出现问题。 visual studio dist packages:

【讨论】:

    【解决方案2】:

    当前版本的 pycaret (2.3.10) 不支持 Python 3.10。 下一个版本的 pycaret (3.0.0) 将支持 Python 3.10。

    要安装 3.0.0 的预发布版本,您可以使用以下命令

    pip install -U --pre pycaret
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-18
      • 2021-12-20
      • 1970-01-01
      • 2021-12-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多