Your setup. Some Python packages used to use distutils for distribution, but most now use setuptools , a more complete package. Here is a question about the differences between them.
EDIT: Official setuptools dox page :. Therefore the rest of this post is probably obsolete e. Distribute - is a setuptools fork which "offers Python 3 support". Since the Setuptools 0. In short I simply needed to install pip - sudo apt-get install python-pip — Eric. For anyone else that had same issue I had: I had this problem trying to run the setup. Add a comment. Active Oldest Votes.
Improve this answer. Zaheer Ahmed Arvind Arvind 2, 1 1 gold badge 10 10 silver badges 21 21 bronze badges. I was going to vote you down for not providing the command to install setuptools but you really do need to go to that URL to see how to install it on your specific system. This issue came up when optimizing a docker build file with apt install --no-install-recommends Simply install setuptool using the command: sudo apt-get install -y python-setuptools For python3: sudo apt-get install -y python3-setuptools After that, install your package again normally, using sudo python setup.
Connor 2, 2 2 gold badges 23 23 silver badges 36 36 bronze badges. Pila Pila 4, 1 1 gold badge 16 16 silver badges 26 26 bronze badges. For Python 3, use sudo apt-get install -y python3-setuptools. I still get "ImportError: No module named setuptools". I also opened a new command shell. LR LR 1 1 silver badge 7 7 bronze badges. Cees Timmerman Cees Timmerman For python3 is: sudo apt-get install -y python3-setuptools.
Bruno 3, 1 1 gold badge 8 8 silver badges 26 26 bronze badges. The question mentions Windows, and the accepted answer also works for Ubuntu, but for those who found this question coming from a Redhat flavor of Linux, this did the trick: sudo yum install -y python-setuptools.
Jacob Stern Jacob Stern 2, 16 16 silver badges 37 37 bronze badges. Posted by: admin November 9, Leave a comment. I have always installed packages with setup. But now when I try to install ansicolors package I get:. Your setup. Many of the Python packages use distutils for the distribution, but some use setuptools , a more complete package.
Here is a question about the differences between them. Regarding Python 3. EDIT: Official setuptools dox page :. Therefore the rest of this post is probably obsolete e.
0コメント