简体   繁体   English

pip 安装 simpletransformers 时出错

[英]Error when pip installing simpletransformers

I am trying to install simpletransformers via pip, but it gives me the following error:我正在尝试通过 pip 安装 simpletransformers,但它给了我以下错误:

"ERROR: Exception:
Traceback (most recent call last):
  File "/sw/arch/Debian10/EB_production/2021/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 180, in _main
    status = self.run(options, args)
  File "/sw/arch/Debian10/EB_production/2021/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 204, in wrapper
    return func(self, options, args)
  File "/sw/arch/Debian10/EB_production/2021/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 393, in run
    installed = install_given_reqs(
  File "/sw/arch/Debian10/EB_production/2021/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/pip/_internal/req/__init__.py", line 77, in install_given_reqs
    requirement.install(
  File "/sw/arch/Debian10/EB_production/2021/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 782, in install
    install_wheel(
  File "/sw/arch/Debian10/EB_production/2021/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/pip/_internal/operations/install/wheel.py", line 810, in install_wheel
    _install_wheel(
  File "/sw/arch/Debian10/EB_production/2021/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/pip/_internal/operations/install/wheel.py", line 653, in _install_wheel
    file.save()
  File "/sw/arch/Debian10/EB_production/2021/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/pip/_internal/operations/install/wheel.py", line 419, in save
    with open(self.dest_path, "wb") as dest:
UnicodeEncodeError: 'latin-1' codec can't encode character '\U0001f4f9' in position 75: ordinal not in range(256)

" "

I am working on jupyterhub and have tried creating a conda environment with Python version 3.7 as suggested in other cases, but the problem was not solved.我正在研究 jupyterhub 并尝试按照其他情况下的建议使用 Python 3.7 版创建 conda 环境,但问题没有解决。

Any tips are welcome!欢迎任何提示!

The problem comes from the encodage.问题来自编码。 I think these topics could help you.我认为这些主题可以帮助你。

Streamlit install fails on GitLab CI with UnicodeEncodeError 使用 UnicodeEncodeError 在 GitLab CI 上安装 Streamlit 失败

'ascii' codec can't encode character : ordinal not in range (128) “ascii”编解码器无法编码字符:序数不在范围内(128)

In general google your error message you'll find o lot of related post and maybe your answer.一般来说,谷歌你的错误信息,你会发现很多相关的帖子,也许是你的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM