Jul-23-2022, 12:08 PM
(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:You can not use single
https://photos.app.goo.gl/xKqacwjL5CrhR53w9
\
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 escapeFix 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'