I i JUddlmZddlZddlZddlZddlZddlZddlmZddl m Z ddl m Z e jdZejdZded <dd Zdd Zdd Z ej*Zd ed<ej2ddZy#e$rej0ZY'wxYw)) annotationsN)InstallationError)appdirs)running_under_virtualenvpippurelibstr site_packagesc<djtjS)ze Return the major-minor version of the current Python as a string, e.g. "3.7" or "3.10". z{}.{})formatsys version_infob/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pip/_internal/locations/base.pyget_major_minor_versionrs 7>>3++ ,,rctjdk(rbtjj|s tjj ||Stjj ||ddStjdk(rOtjj |\}}|ddk(r|dd}tjj ||St dtjd) aQReturn 'pathname' with 'new_root' prepended. If 'pathname' is relative, this is equivalent to os.path.join(new_root, pathname). Otherwise, it requires making 'pathname' relative and then joining the two, which is tricky on DOS/Windows and Mac OS. This is borrowed from Python's standard library's distutils module. posixNntr\zUnknown platform: z5 Can not change root path prefix on unknown platform.)osnamepathisabsjoin splitdriver)new_rootpathnamedrivers r change_rootr!s ww'ww}}X&77<<(3 377<<(12,7 7 D**84  7d?8Dww||Hd++   *C C  rc`tr/tjjtj d}n3 tjjtj d}tjjS#t$rt jdY?wxYw)Nsrcz=The folder you are executing pip from can no longer be found.) rrrrr prefixgetcwdOSErrorexitabspath) src_prefixs rget_src_prefixr*8su!WW\\#**e4  Vbiik59J 77??: &&  V HHT U Vs2B B-,B-z str | None user_sitec>ttjdS)NPYTHONFRAMEWORK)bool sysconfigget_config_varrrris_osx_frameworkr1Ps  (():; <rAs" 6'C(''.(Y'' 2 s2- 8 ' 5D446Iz6  == Is$BB"!B"