r/pythonhelp • • Apr 19 '22

Python package problems

I guys, i try to run some script from github on my PC on w11 ( i know linux is better) and i think i do the right installation with the right packages but i still have an error to built 'setup.py' if you have any idea it will be greatfull.

here is a copy of the error : Can not execute 'setup.py' since setuptools is not available in the built environnement.

I try pip install -U setuptools , and pip install openupgradelib but the same error apears. Thanks for the help

version : Python 3.10.4

2 Upvotes

9 comments sorted by

View all comments

1

u/Goobyalus Apr 19 '22

Can you show exactly how you are invoking python and pip, and check their versions?

pip --version

replacing pip with your exact invocation of pip, and

python --version

replacing python with your exact invocation of python whether it's python3 or whatever?

Maybe python3 -m pip install setuptools will work for you (replacing python3 with whichever invocation of python you expect to be using).

1

u/alexenderthegrand Apr 20 '22

python version is : 3.10.4

pip version is : pip3.10

I use py - m pip install setuptools

1

u/Goobyalus Apr 20 '22

That's not a pip version, but ok. I was trying to make sure you're not installing setuptools for a different environment than the particular python you're using.

Does your py -m pip install setuptools succeed in the same environment that you're trying to run your program?

1

u/alexenderthegrand Apr 20 '22

yes it's work pretty well

1

u/Goobyalus Apr 20 '22

So setuptools installs successfully, but you still get an error when trying to isntall your requirements.txt?

Did it work after removing pathlib as social_nerdtastic suggested?