Python Forum
Error with non-ASCII character?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error with non-ASCII character?
#4
(Nov-07-2020, 05:45 PM)giomach Wrote:
Error:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe1 in position 0: unexpected end of data (sitecustomize.py, line 7)
Have you made this sitecustomize.py yourself)
It's not a part of original file as least in Python 3.8,has not 3.9 yet.
This is a file i have made myself in the past look at this post.

Dos other pip install works?
pip install requests
Can try to run a virtual environment(build into Python),this is was i always do if help someone with Pyinstaller,to get all new installation.
A demo i use cmder(recommend),commnad is just the same in cmd.
# Test python
E:\div_code
λ python -V
Python 3.8.3

# Test pip
E:\div_code
λ pip -V
pip 20.2.3 from c:\python38\lib\site-packages\pip (python 3.8)

# Make environment  
E:\div_code
λ python -m venv my_env

# cd in
E:\div_code
λ cd my_env\

# Activate, see (my_env) 
E:\div_code\my_env
λ E:\div_code\my_env\Scripts\activate

# Test pip again,now point to this folder
(my_env) E:\div_code\my_env
λ pip -V
pip 19.2.3 from e:\div_code\my_env\lib\site-packages\pip (python 3.8)

# Install
(my_env) E:\div_code\my_env
λ pip install pyinstaller
Collecting pyinstaller
  Downloading ..... 
Successfully installed altgraph-0.17 future-0.18.2 pefile-2019.4.18 pyinstaller-4.0 pyinstaller-hooks-contrib-2020.10 pywin32-ctypes-0.2.0

# Move python file this folder and run Pyinstaller
(my_env) E:\div_code\my_env
Reply


Messages In This Thread
Error with non-ASCII character? - by giomach - Nov-07-2020, 05:45 PM
RE: Error with non-ASCII character? - by snippsat - Nov-07-2020, 05:58 PM
RE: Error with non-ASCII character? - by giomach - Nov-07-2020, 06:57 PM
RE: Error with non-ASCII character? - by snippsat - Nov-07-2020, 07:42 PM
RE: Error with non-ASCII character? - by giomach - Nov-07-2020, 11:00 PM
RE: Error with non-ASCII character? - by snippsat - Nov-08-2020, 01:11 AM
RE: Error with non-ASCII character? - by giomach - Nov-08-2020, 11:31 AM
RE: Error with non-ASCII character? - by snippsat - Nov-08-2020, 12:29 PM
RE: Error with non-ASCII character? - by giomach - Nov-08-2020, 07:18 PM
RE: Error with non-ASCII character? - by snippsat - Nov-08-2020, 08:03 PM
RE: Error with non-ASCII character? - by giomach - Nov-09-2020, 01:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 562: ord ctrldan 23 4,893 Apr-24-2023, 03:40 PM
Last Post: ctrldan
  UnicodeEncodeError: 'ascii' codec can't encode character '\xfd' in position 14: ordin Armandito 6 2,746 Apr-29-2022, 12:36 PM
Last Post: Armandito
  [solved] unexpected character after line continuation character paul18fr 4 3,440 Jun-22-2021, 03:22 PM
Last Post: deanhystad
  python error: bad character range \|-t at position 12 faustineaiden 0 3,706 May-28-2021, 09:38 AM
Last Post: faustineaiden
  SyntaxError: unexpected character after line continuation character siteshkumar 2 3,203 Jul-13-2020, 07:05 PM
Last Post: snippsat
  how can i handle "expected a character " type error , when I input no character vivekagrey 2 2,770 Jan-05-2020, 11:50 AM
Last Post: vivekagrey
  Error when entering letter/character instead of number/integer helplessnoobb 2 7,103 Jun-22-2019, 07:15 AM
Last Post: ThomasL
  Replace changing string including uppercase character with lowercase character silfer 11 6,242 Mar-25-2019, 12:54 PM
Last Post: silfer
  SyntaxError: unexpected character after line continuation character Saka 2 18,590 Sep-26-2017, 09:34 AM
Last Post: Saka
  Character Definition Like ASCII llarix1 2 3,751 Jul-11-2017, 01:25 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020