Python Forum
Trouble installing modules/libraries and getting Notepad++ to show cyrillic letters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble installing modules/libraries and getting Notepad++ to show cyrillic letters
#4
(Jul-23-2022, 11:49 AM)Dragiev Wrote: https://photos.app.goo.gl/m9kWGqfVKjviSkhn6 - this is what I get whenever I try to install "os", but if it comes preinstall then, I shouldn't care about this error, correct?
You shall not install os as i posted it's a part of Python Standard Library(mean that all of this is already installed).
G:\div_code
λ python
Python 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>>
>>> os.getcwd()
'G:\\div_code'
>>> exit()
(Jul-23-2022, 11:49 AM)Dragiev Wrote: https://photos.app.goo.gl/4xvkcjFLUjPDL6UdA - and this is the error I get when I try to update pip, however I think this is also corrected I used the line you provided and got this:
Run cmd as Administrator
Quote:https://photos.app.goo.gl/piG7G5s3qvtLtNVR7 - all good it seems?
Ok

Quote:However I still can't get cyrillic to work, and I am not sure why:
https://photos.app.goo.gl/xKqacwjL5CrhR53w9
You can not use single \ in path because of escape character.
>>> path = 'C:\Users\Tom\foo'
  File "<interactive input>", line 1
    path = 'C:\Users\Tom\foo'
                             ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Fix all of these ways works.just put r(raw string) is the easiest way,
>>> path = r'C:\Users\Tom\foo'
>>> path
'C:\\Users\\Tom\\foo'
>>> 
>>> path = 'C:\\Users\\Tom\\foo'
>>> path
'C:\\Users\\Tom\\foo'
>>> 
>>> path = 'C:/Users/Tom/foo'
>>> path
'C:/Users/Tom/foo'
Reply


Messages In This Thread
RE: Trouble installing modules/libraries and getting Notepad++ to show cyrillic letters - by snippsat - Jul-23-2022, 12:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble with installing python domingo251 2 666 Sep-23-2023, 12:03 AM
Last Post: ICanIBB
  encode/decode to show correct country letters in a CTk combobox janeik 2 815 Sep-02-2023, 09:46 AM
Last Post: janeik
  Having trouble installing scikit-learn via VSC and pulling my hair out pythonturtle 1 821 Feb-07-2023, 02:23 AM
Last Post: Larz60+
  List of Modules/Libraries Installed by Default? rontarrant 2 1,069 Oct-14-2022, 05:18 PM
Last Post: rontarrant
  PIL Image im.show() no show! Pedroski55 2 1,040 Sep-12-2022, 10:19 PM
Last Post: Pedroski55
  Installing Modules PythonBorg 10 2,187 Sep-03-2022, 09:58 AM
Last Post: PythonBorg
  PIL Image im.show() no show! Pedroski55 6 5,223 Feb-08-2022, 06:32 AM
Last Post: Pedroski55
  Logging /w several modules/libraries Lou 3 2,042 Sep-11-2021, 12:35 AM
Last Post: Lou
  Installing Modules / packages Oshadha 1 1,770 Feb-05-2021, 08:04 PM
Last Post: Jeff900
  cyrillic symbols in tables in reportlab. hiroz 5 11,757 Sep-10-2020, 04:57 AM
Last Post: bradmalcom

Forum Jump:

User Panel Messages

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