首页 文章

'cp949'编解码器无法解码位置2095中的字节0xe2:非法多字节序列,命令“python setup.py egg_info”失败,错误代码为1

提问于
浏览
-1

当我安装计数器包时,会出现一些问题 . PLZ有人帮帮我!!我搜索了许多解决方案,但它们不能解决我的问题 . 我认为'Temp'有问题,但我不确定 .

C:\ Users \ x3k-k37 \ Desktop> pip install counter收集计数器使用缓存Counter-1.0.0.tar.gz从命令python setup.py egg_info完成输出:Traceback(最近一次调用last):文件“”,第1行,在文件“C:\ Users \ x3k-k37 \ AppData \ Local \ Temp \ pip-build-b488v7dx \ counter \ setup.py”第32行,在long_description = getLongDescription()中,文件“C:\ Users \ x3k -k37 \ AppData \ Local \ Temp \ pip-build-b488v7dx \ counter \ setup.py“,第13行,在文件中的行的getLongDescription中:UnicodeDecodeError:'cp949'编解码器无法解码位置2095中的字节0xe2:非法多字节序列命令“python setup.py egg_info”失败,错误代码1在C:\ Users \ x3k-k37 \ AppData \ Local \ Temp \ pip-build-b488v7dx \ counter \

1 回答

  • 1

    从github下载'Counter package'(https://github.com/KelSolaar/Counter) . 请参阅README.rst中的安装 . 打开'Counter'in下载文件夹编辑setup.py如下

    import re
    from setuptools import setup
    
    setup(name="Counter",
    version="1.0.0",
    author="Thomas Mansencal",
    author_email="thomas.mansencal@gmail.com",
    include_package_data=True,
    py_modules=["counter"],
    url="https://github.com/KelSolaar/Counter",
    license="MIT",
    description="Counter package defines the \"counter.Counter\" class similar to bags or multisets in other languages.",
    install_requires=[],
    tests_require=["nose"],
    classifiers=["Development Status :: 5 - Production/Stable",
                "Environment :: Console",
                "Intended Audience :: Developers",
                "License :: OSI Approved :: MIT License",
                "Natural Language :: English",
                "Operating System :: OS Independent",
                "Programming Language :: Python",
                "Topic :: Utilities"])
    

    安装'柜台包'

    python setup.py install
    

相关问题