简体   繁体   中英

UnicodeEncodeError: 'ascii' codec can't encode character u'\u2018' in position 15564: ordinal not in range(128)

When I try to execute the poetry add pyarrow command in the directory where my poetry.lock file is I get the following error (see title).

I tried using a specific or the lastest version of poetry but the error stays there. I have the latest version of poetry and python version 3.9.1.

This happens just for this module, all the others are okay.

I tried it as well and also get an error, but it is different. It is working for me with python3.8 though. Maybe you can use that version. The documentation also doesn't mention python3.9 as a compatible version.

As an alternative you can install the nightlies from this repo . I quickly tested it with poetry and it works. This poetry resource might be helpful to set that up. You have to set this in your pyproject.toml :

[[tool.poetry.source]]
name = "pyarrow"
url = "https://repo.fury.io/arrow-nightlies/"

and then run poetry add --allow-prereleases pyarrow .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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