Answers for "pip to path windows"

7

how to find where python is located

>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\Python25'
Posted by: Guest on May-28-2020
8

add pip to path

import os
import sys
pipPath = f'{os.path.dirname(sys.executable)}\Scripts'
os.system(f'setx PATH "%PATH%;{pipPath}"')
Posted by: Guest on June-26-2020
-1

pip path windows 10

C:Users[User Name]AppDataLocalProgramsPythonPython39
Posted by: Guest on March-11-2021

Browse Popular Code Answers by Language