I am trying to install the package using pip3, for example, the following command:
sudo pip3 install testresources setuptools==49.6.0
But, get the following error:
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
ValueError: source code string cannot contain null bytes
What I have tried:
Remove pip3 by
purgeand install it again bysudo apt-get install python3-pip
If it helps, the python version is 3.6.9.
pip3 install --user testresources setuptools==49.6.0pip3is corrupted. It is not clear if it's the shortcut/usr/bin/pip3or the pip module itself. Can you try runningsudo python3 -m pip install <same packages>?