网络抓取谷歌新闻

2024-09-27 07:33:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我遇到了the page。我想安装页面上提到的软件包。我在windows命令提示符下执行了以下步骤。我更新了pip,如下所示。如何安装gnp

C:\windows\system32>pip install gnp
Collecting gnp
  Using cached gnp-0.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:\Users\ng\AppData\Local\Temp\pip-build-2vb0ngae\gnp\setup.py", line 6, in <module>
        long_description = file.read()
      File "C:\Anaconda3\lib\encodings\cp1252.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 4894: character maps to <undefined>

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ng\AppData\Local\Temp\pip-build-2vb0ngae\gnp\
You are using pip version 8.1.0, however version 8.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\windows\system32>python -m pip install --upgrade pip
Collecting pip
  Downloading pip-8.1.1-py2.py3-none-any.whl (1.2MB)
    100% |################################| 1.2MB 571kB/s
Installing collected packages: pip
  Found existing installation: pip 8.1.0
    Uninstalling pip-8.1.0:
      Successfully uninstalled pip-8.1.0
Successfully installed pip-8.1.1

C:\windows\system32>pip install gnp
Collecting gnp
  Using cached gnp-0.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:\Users\ng\AppData\Local\Temp\pip-build-6mm1sf6o\gnp\setup.py", line 6, in <module>
        long_description = file.read()
      File "c:\anaconda3\lib\encodings\cp1252.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 4894: character maps to <undefined>

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ng\AppData\Local\Temp\pip-build-6mm1sf6o\gnp\

Tags: installpipinpyinfoeggwindowssetup

热门问题