Re: Setup-tools

2023-07-16 Thread Mats Wichmann via Python-list

On 7/15/23 12:56, MRAB via Python-list wrote:

On 2023-07-15 07:12, YOUSEF EZZAT via Python-list wrote:

Hey!. i face a problem when i get setup packages by pip
when i code this : "pip install numpy" in my command line it gives me 
error

"ModuleNotFoundError: No module named 'distutils'"

please, i need help for solving this problem.
i have python 3.12.0b4


What do you normally do when it can't find a module? Install it via pip!

pip install distutils

By the way, do you really need Python 3.12? It's still in beta, so 
unless you're specifically checking whether it works, ready for its 
final release, you'd be better off with Python 3.11.


To add to this:

For modules which have *binary* compiled wheels (of which numpy is one), 
they are quite likely to be version-specific, and for many projects, are 
not made available for pre-release Pythons. You can check numpy here:


https://pypi.org/project/numpy/#files

(note: pre-release versions targeting pre-release Pythons *may* be 
elsewhere too, you might check with the numpy project).


What pip does if it doesn't find an appropriate wheel version matching 
your Python version is try to build it from the source distribution - 
this is why it thinks it needs distutils.  If you're on Windows, this 
will almost certainly fail, although you can often find blogs written by 
people who have gone through the same adventure who describe how they 
got there in the end.


If numpy is the thing that's important to your work, the advice would be 
to stick to a released Python with a matching released numpy.  If you 
specifically need to test that something is going to work with 3.12, 
then by all means go ahead, but be prepared to do some legwork.




--
https://mail.python.org/mailman/listinfo/python-list


Re: Setup-tools

2023-07-15 Thread MRAB via Python-list

On 2023-07-15 07:12, YOUSEF EZZAT via Python-list wrote:

Hey!. i face a problem when i get setup packages by pip
when i code this : "pip install numpy" in my command line it gives me error
"ModuleNotFoundError: No module named 'distutils'"

please, i need help for solving this problem.
i have python 3.12.0b4


What do you normally do when it can't find a module? Install it via pip!

pip install distutils

By the way, do you really need Python 3.12? It's still in beta, so 
unless you're specifically checking whether it works, ready for its 
final release, you'd be better off with Python 3.11.


--
https://mail.python.org/mailman/listinfo/python-list


Setup-tools

2023-07-15 Thread YOUSEF EZZAT via Python-list
Hey!. i face a problem when i get setup packages by pip
when i code this : "pip install numpy" in my command line it gives me error
"ModuleNotFoundError: No module named 'distutils' "

please, i need help for solving this problem.
i have python 3.12.0b4
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Install setup tools for 2.6

2009-08-05 Thread Gabriel Genellina

En Wed, 05 Aug 2009 15:31:38 -0300, Jeremy Cowles
 escribió:


Ok, I feel like this is a really stupid question, but how do you install
setup tools for Python 2.6 under windows?
The only format is .egg which requires setup tools to install, doesn't  
it?


I have no idea, and I try to stay as far away from setuptools/ez_setup as
I can. I think they solve some kind of problems for some kind of people
(else the tool would be defunct by now), but haven't worked for me.
Perhaps you don't need setuptools either?

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list


Re: Install setup tools for 2.6

2009-08-05 Thread Ned Deily
In article 
<373cf0740908051131gacaf77apba48fa40e929f...@mail.gmail.com>,
 Jeremy Cowles  wrote:
> Ok, I feel like this is a really stupid question, but how do you install
> setup tools for Python 2.6 under windows?
> The only format is .egg which requires setup tools to install, doesn't it?

http://pypi.python.org/pypi/setuptools#id1

-- 
 Ned Deily,
 n...@acm.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Install setup tools for 2.6

2009-08-05 Thread Jeremy Cowles
Ok, I feel like this is a really stupid question, but how do you install
setup tools for Python 2.6 under windows?
The only format is .egg which requires setup tools to install, doesn't it?

Thanks,
Jeremy
-- 
http://mail.python.org/mailman/listinfo/python-list


Find the name of a setup tools plugin when its class is known.

2009-06-29 Thread Mr SZ

Hi,

Using pkg_resources, I can iterate through the plugins in an entrypoint and 
note down the plugin classes and all using 
"pkg_resources.iter_entry_points(ENTRYPOINT)"

Now, when the plugin is loaded, I want to know it's entrypoint name as I have 
to load a bunch of settings identified by the name string.


Regards,
SZ


" life isn't heavy enough,it flies away and floats far above action"


  Access Yahoo!7 Mail on your mobile. Anytime. Anywhere.
Show me how: http://au.mobile.yahoo.com/mail
-- 
http://mail.python.org/mailman/listinfo/python-list