@@ -119,11 +119,15 @@ def download_url(url):
119119 make_file_link (python_dest_folder + '/python.exe' , python_dest_folder + '/python3.exe' )
120120 else :
121121 error ("Python 3 not found" )
122- subprocess .run ([python_dest_folder + '/python.exe' , '-m' , 'pip' , 'install' , '--upgrade' , 'pip' ])
123- subprocess .run ([python_dest_folder + '/python.exe' , '-m' , 'pip' , '--version' ])
124- subprocess .run ([python_dest_folder + '/python.exe' , '-m' , 'pip' , 'install' , 'clang==14.0.6' ])
125- subprocess .run ([python_dest_folder + '/python.exe' , '-m' , 'pip' , 'install' , 'cymbal' ])
126-
122+
123+ if 'WindowsApps' in python_src_folder :
124+ print ('WARNING: Detected Microsoft Store Python. Skipping pip upgrade/install due to access restrictions.' )
125+ print ('Install official Python from python.org for full functionality.' )
126+ else :
127+ subprocess .run ([python_dest_folder + '/python.exe' , '-m' , 'pip' , 'install' , '--upgrade' , 'pip' ])
128+ subprocess .run ([python_dest_folder + '/python.exe' , '-m' , 'pip' , '--version' ])
129+ subprocess .run ([python_dest_folder + '/python.exe' , '-m' , 'pip' , 'install' , 'clang==14.0.6' ])
130+ subprocess .run ([python_dest_folder + '/python.exe' , '-m' , 'pip' , 'install' , 'cymbal' ])
127131
128132microsoft_retry = []
129133
0 commit comments