pip install models ModuleNotFoundError: No module named ‘base‘

博客记录了使用pip install models安装模块时遇到的问题,包括提示ModuleNotFoundError: No module named 'base',以及安装过程中出现的其他错误,如Command errored out with exit status 1等,还显示找不到满足要求的版本和匹配的发行版。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

pip install models  ModuleNotFoundError: No module named 'base'

 

 

python -m pip install --upgrade --force pip 
pip install setuptools==33.1.1

https://blog.csdn.net/qq_37788558/article/details/79049410

 

解决了安装pip install models又 提示

    ModuleNotFoundError: No module named 'base'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/e6/6a/0a4cb29c5d32d
be06080deebd1e4f8896f6de56f954d690d492e8044b91/models-0.0.4.tar.gz#sha256=4537a
b50b1efb54ff52762f6108be8afcfc194927380d948d7d983ac2557a98 (from https://pypi.o
g/simple/models/). Command errored out with exit status 1: python setup.py egg_
nfo Check the logs for full command output.
  Downloading models-0.0.3.tar.gz (6.2 kB)
    ERROR: Command errored out with exit status 1:
     command: 'd:\installed\programdata\anaconda3\python.exe' -c 'import io, os
 sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppDat
\\Local\\Temp\\pip-install-h4a6smpy\\models_1f900994d28c470d80cec06fe9740779\\s
tup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-
nstall-h4a6smpy\\models_1f900994d28c470d80cec06fe9740779\\setup.py'"'"';f = get
ttr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else
o.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().rep
ace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'e
ec'"'"'))' egg_info --egg-base 'C:\Users\Administrator\AppData\Local\Temp\pip-p
p-egg-info-2he0b4zz'
         cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-h4a6smpy\mo
els_1f900994d28c470d80cec06fe9740779\
    Complete output (16 lines):
    Error processing line 7 of d:\installed\programdata\anaconda3\lib\site-pack
ges\pywin32.pth:

      Traceback (most recent call last):
        File "d:\installed\programdata\anaconda3\lib\site.py", line 168, in add
ackage
          exec(line)
        File "<string>", line 1, in <module>
      ModuleNotFoundError: No module named 'pywin32_bootstrap'

    Remainder of file ignored
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Administrator\AppData\Local\Temp\pip-install-h4a6smpy\mode
s_1f900994d28c470d80cec06fe9740779\setup.py", line 24, in <module>
        import models
      File "C:\Users\Administrator\AppData\Local\Temp\pip-install-h4a6smpy\mode
s_1f900994d28c470d80cec06fe9740779\models\__init__.py", line 23, in <module>
        from base import *
    ModuleNotFoundError: No module named 'base'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/68/35/b990e771f1398
d98385774c651c0c90baec4b4ef19c752b5e6add126d3f/models-0.0.3.tar.gz#sha256=9bb03
5231b46d53df62c63321c33fc6935ca58db629e3aef09c735b781a9d8b (from https://pypi.o
g/simple/models/). Command errored out with exit status 1: python setup.py egg_
nfo Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement models (from ver
ions: 0.0.3, 0.0.4, 0.0.5, 0.1.0, 0.1.1, 0.2.0, 0.3.0, 0.4.0, 0.7.0, 0.8.0, 0.9
0, 0.9.1, 0.9.2, 0.9.3)
ERROR: No matching distribution found for models

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值