(self, context)
Installs or upgrades pip in a virtual environment
Installs or upgrades pip in a virtual environment
Installs or upgrades pip in a virtual environment
def _setup_pip(self, context):
        """Installs or upgrades pip in a virtual environment"""
        # We run ensurepip in isolated mode to avoid side effects from
        # environment vars, the current directory and anything else
        # intended for the global Python environment
        cmd = [context.env_exec_cmd, '-Im', 'ensurepip', '--upgrade',
                                                         '--default-pip']
        subprocess.check_output(cmd, stderr=subprocess.STDOUT)
def _setup_pip ( self , context ) : # We run ensurepip in isolated mode to avoid side effects from # environment vars, the current directory and anything else # intended for the global Python environment cmd = [ context . env_exec_cmd , '-Im' , 'ensurepip' , '--upgrade' , '--default-pip' ] subprocess . check_output ( cmd , stderr = subprocess . STDOUT )