Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'setuptools' module not contained in python 3.4?

I was trying to import setuptools in Python3.4 as following,

>>> from setuptools import setup

But I got the ImportError: No module named 'setuptools'.

My current version of Python3.4 is Python 3.4.0b1 (default, Nov 29 2013, 16:37:17), and it is installed using MacPorts.

So there is no setuptools module contained in Python 3.4 Standard Library, right? and I need to install setuptools module through pip?

Update:

setuptools is not in the standard library. But I cannot install it through pip because pip need setuptools installed first. MacPorts contains py34-setuptools @2.0.2 port and I can install setuptools through it.

like image 391
mitchelllc Avatar asked May 08 '26 04:05

mitchelllc


1 Answers

setuptools has never been a part of the standard lib. You'll always to download it separately.

For 3.4, download setuptools - (This is the compressed download link!), extract it and install it via:

python setup.py install
like image 140
aIKid Avatar answered May 09 '26 19:05

aIKid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!