python - NameError: name 'sys_platform' is not defined -


i have viewed several other posts , tried --upgrade upgrade setuptools, not helps.

the output follows, way use osx,

my python version python 2.7.6 -- 64-bit

   ~$ pip install urlopen  collecting urlopen   using cached urlopen-1.0.0.zip     .....         return eval(compiled_marker, environment)        file "<environment marker>", line 1, in <module>      nameerror: name 'sys_platform' not defined      ----------------------------------------     command "python setup.py egg_info" failed error code 1 in /var/folders/tb/gh49g76s63l3rk1p63lfbs800000gn/t/pip-build-navlzp/urlopen 

update:

i try uninstall 'distribute' first, fails output mean

~$ pip uninstall distribute using pip version 6.0.6, version 8.1.2 available. should consider upgrading via 'pip install --upgrade pip' command. not uninstalling distribute @ /applications/canopy.app/appdata/canopy-1.5.2.2785.macosx-x86_64/canopy.app/contents/lib/python2.7/site-packages, outside environment /users/lilisun/library/enthought/canopy_64bit/user 

update: 2016-08-19

this problem solved using enpkg setuptools , enpkg pip. guess problem may caused sth. related virtual environment of canopy.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -