Failed to set 'distribute': NameError: name 'sys_platform' not defined

I am trying to install the Python โ€œdistributeโ€ package. I downloaded it and it starts to work, but then leaves with the error visible here:

enter image description here

I have a feeling that the solution is somehow related to the fact that I enter and define sys_platform, but I do not have enough understanding that it is actually wrong to know what to fix. Thanks for any help! I am always blown away by how helpful all of you are.

+7
python
source share
2 answers

As pointed out by Burhan, you need to install the setuptools package: just use the command:

 pip install setuptools 

Most importantly, be sure to also remove the distribute package (since the tools provided by this package are already included with setuptools ).

Just use the command:

 pip uninstall distribute 
+16
source share

You need to install setuptools ; as distribution is now part of it.

+2
source share

All Articles