in beginning of file, and print(output.replace(original_link_file, 'link')) but still cannot exec, error is:
Traceback (most recent call last):
File "/usr/local/Cellar/go@1.17/1.17.9/libexec/pkg/tool/darwin_amd64/link", line 20, in
print(output.replace(original_link_file, 'link'))
TypeError: a bytes-like object is required, not 'str'
try to use
!/usr/bin/env python
in beginning of file, and print(output.replace(original_link_file, 'link')) but still cannot exec, error is: Traceback (most recent call last): File "/usr/local/Cellar/go@1.17/1.17.9/libexec/pkg/tool/darwin_amd64/link", line 20, in print(output.replace(original_link_file, 'link')) TypeError: a bytes-like object is required, not 'str'