Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
819 views
in Technique[技术] by (71.8m points)

cmd - "pip install models" - "python setup.py egg_info” failed with error code 1

After trying to install 'models' module I get this error:

C:UsersFilip>pip install models
Collecting models
Using cached https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:UsersFilipAppDataLocalTemppip-install-_exhlsc1modelssetup.py", line 25, in <module>
    import models
  File "C:UsersFilipAppDataLocalTemppip-install-_exhlsc1modelsmodels\__init__.py", line 23, in <module>
    from base import *
ModuleNotFoundError: No module named 'base'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:UsersFilipAppDataLocalTemppip-install-_exhlsc1models

If I try to install module 'base' this error shows up:

C:UsersFilip>pip install base
Collecting base
Using cached https://files.pythonhosted.org/packages/1b/e5/464fcdb2cdbafc65f0b2da261dda861fa51d80e1a4985a2bb00ced080549/base-1.0.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:UsersFilipAppDataLocalTemppip-install-ueghc4dhasesetup.py", line 40, in <module>
    LONG_DESCRIPTION = read("README.rst")
  File "C:UsersFilipAppDataLocalTemppip-install-ueghc4dhasesetup.py", line 21, in read
    return codecs.open(os.path.join(os.path.dirname(__file__), fname)).read()
  File "c:usersfilipappdatalocalprogramspythonpython37-32libencodingscp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 5: character maps to <undefined>

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:UsersFilipAppDataLocalTemppip-install-ueghc4dhase

If I attempt to install other packages, everything works, setuptools and pip are updated. It's crucial I have this module for my project and I can't do shit without it.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It looks like models was renamed to pymodels then renamed again to doqu (source code) which I was able to install the latest version from pypi. Is this legacy code? Will Doqu work for your purposes?

pip install doqu


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...