首页 > 解决方案 > 当我使用 jupyter notebook pip install COVID19Py 时,我收到一个 ERROR Command errored out with exit status 1

问题描述

在 jupyter notebook 中运行此代码后

!pip install COVID19Py

这是命令:

Collecting COVID19Py

    Using cached COVID19Py-0.3.0.tar.gz (4.9 kB)

ERROR: Command errored out with exit status 1:
command: 'e:\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\RENSHA~1\\AppData\\Local\\Temp\\pip-install-8p0iwje4\\COVID19Py\\setup.py'"'"'; 
__file__='"'"'C:\\Users\\RENSHA~1\\AppData\\Local\\Temp\\pip-install-8p0iwje4\\COVID19Py\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\RENSHA~1\AppData\Local\Temp\pip-pip-egg-info-aru6cxyv'
     cwd: C:\Users\RENSHA~1\AppData\Local\Temp\pip-install-8p0iwje4\COVID19Py\

Complete output (5 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\RENSHA~1\AppData\Local\Temp\pip-install-8p0iwje4\COVID19Py\setup.py", line 4, in <module>
    long_description = fh.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 4010: illegal multibyte sequence
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

我已经更新了python -m pip install --upgrade setuptools

python -m pip install --upgrade pip

但它不起作用。


工作环境:

视窗 10

标签: pythonjupyter

解决方案


推荐阅读