Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

Tags:

python

tox

i am trying to run tox commands but it shows error

ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

ERROR: python3.7: could not install deps [-rrequirements.txt]; 
v = InvocationError("'C:\\path\\test_tox\\.tox\\python3.7\\Scripts
\\python.EXE' -m pip install -rrequirements.txt", 2)

have tried most of the solution available in internet, but nothing seems to be working. i am not sure what is the root cause of this

requirements.txt:

dvc
dvc[gdrive]
sklearn
pandas
pytest
tox

enter image description here

like image 869
Somal Kant Avatar asked Sep 02 '25 17:09

Somal Kant


2 Answers

Uninstall SetupTools:

python -m pip uninstall pip setuptools

Upgrade PIP:

python -m pip install --upgrade pip

Reinstall Setuptools:

pip install --upgrade setuptools
like image 193
Techno Appear Avatar answered Sep 04 '25 05:09

Techno Appear


Below command works for me, thanks to Colonel Panic:

python -m pip uninstall pip setuptools
python -m ensurepip
python -m pip install --upgrade pip
like image 43
sailfish009 Avatar answered Sep 04 '25 06:09

sailfish009