Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble installing "distribute": NameError: name 'sys_platform' is not defined

Tags:

python

I'm trying to install the Python package "distribute". I've got it downloaded and it begins to work, but then quits out with the error seen here:

enter image description here

I have a feeling the solution is somehow related to me going in and defining sys_platform, but I don't have enough of a grasp on what's actually wrong to know what to fix. Thanks for any help! I'm always blown away at how helpful you all are.

like image 376
n1c9 Avatar asked Aug 31 '15 02:08

n1c9


2 Answers

As stated by Burhan you have to install the setuptools package: just use the command:

pip install setuptools

Most importantly, do not forget to also uninstall the distribute package (since tools provided by that package are already included by setuptools).

Just use the command:

pip uninstall distribute
like image 179
Enrico M. Avatar answered Nov 15 '22 21:11

Enrico M.


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

like image 26
Burhan Khalid Avatar answered Nov 15 '22 21:11

Burhan Khalid