def test_install_package_conflict_prefix_and_user(script, data):
 prefix_path = (script.scratch_path / 'prefix')
 result = script.pip('install', '-f', data.find_links, '--no-index', '--user', '--prefix', prefix_path, 'simple==1.0', expect_error=True, quiet=True)
 assert ("Can not combine '--user' and '--prefix'" in result.stderr)

def test_install_package_conflict_prefix_and_user ( script , data ) : prefix_path = ( script . scratch_path / 'prefix' ) result = script . pip ( 'install' , '-f' , data . find_links , '--no-index' , '--user' , '--prefix' , prefix_path , 'simple==1.0' , expect_error = True , quiet = True ) assert ( "Can not combine '--user' and '--prefix'" in result . stderr )
test installing a package using pip install --prefix --user errors out .