python - Having trouble installing pyyaml and nltk with 64bit winpython -


i've searched around awhile, , tried http://nltk.org/install.html#source-installation-for-32-bit-or-64-bit-windows , registry changes other sites (ex. http://www.comoke.com/index.php/2010/11/pyyaml-on-windows-7-64-bit-python-nltk-pyyaml-python-required-not-found-in-registry/ --although modified use winpython folder).

(it seem indicate have nltk installed, winpython doesn't seem come nltk, , "import nltk" doesn't work)

my output running command "pip install pyyaml nltk" below:

c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\scripts>pip install pyyaml nltk downloading/unpacking pyyaml   running setup.py egg_info package pyyaml  skipping 'ext\_yaml.c' cython extension (up-to-date) requirement satisfied (use --upgrade upgrade): nltk in c:\winpython-6 4bit-2.7.5.1\python-2.7.5.amd64\lib\site-packages installing collected packages: pyyaml   running setup.py install pyyaml     checking if libyaml compilable     traceback (most recent call last):       file "<string>", line 1, in <module>       file "c:\users\thisis~1\appdata\local\temp\pip-build-thisisawittyusername\ pyyaml\setup.py", line 344, in <module>  --> rest trimmed 

any thoughts?

edit--here entire error:

c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\scripts>pip install pyyaml nltk downloading/unpacking pyyaml   running setup.py egg_info package pyyaml      skipping 'ext\_yaml.c' cython extension (up-to-date) requirement satisfied (use --upgrade upgrade): nltk in c:\winpython-6 4bit-2.7.5.1\python-2.7.5.amd64\lib\site-packages installing collected packages: pyyaml   running setup.py install pyyaml     checking if libyaml compilable     traceback (most recent call last):       file "<string>", line 1, in <module>       file "c:\users\thisis~1\appdata\local\temp\pip-build-thisisawittyusername\ pyyaml\setup.py", line 344, in <module>         'test': test,       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\core.py" , line 152, in setup         dist.run_commands()       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\dist.py" , line 953, in run_commands         self.run_command(cmd)       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\dist.py" , line 972, in run_command         cmd_obj.run()       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\site-packages\setu ptools\command\install.py", line 53, in run         return _install.run(self)       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\command\ install.py", line 563, in run         self.run_command('build')       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\cmd.py",  line 326, in run_command         self.distribution.run_command(command)       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\dist.py" , line 972, in run_command         cmd_obj.run()       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\command\ build.py", line 127, in run         self.run_command(cmd_name)       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\cmd.py",  line 326, in run_command         self.distribution.run_command(command)       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\dist.py" , line 972, in run_command         cmd_obj.run()       file "c:\users\thisis~1\appdata\local\temp\pip-build-thisisawittyusername\ pyyaml\setup.py", line 171, in run         _build_ext.run(self)       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\site-packages\cyth on\distutils\build_ext.py", line 163, in run         _build_ext.build_ext.run(self)       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\command\ build_ext.py", line 339, in run         self.build_extensions()       file "c:\users\thisis~1\appdata\local\temp\pip-build-thisisawittyusername\ pyyaml\setup.py", line 213, in build_extensions         with_ext = self.check_extension_availability(ext)       file "c:\users\thisis~1\appdata\local\temp\pip-build-thisisawittyusername\ pyyaml\setup.py", line 239, in check_extension_availability         depends=ext.depends)       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\msvc9com piler.py", line 473, in compile         self.initialize()       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\msvc9com piler.py", line 383, in initialize         vc_env = query_vcvarsall(version, plat_spec)       file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\msvc9com piler.py", line 299, in query_vcvarsall         raise valueerror(str(list(result.keys())))     valueerror: [u'path']     complete output command c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\p ython.exe -c "import setuptools;__file__='c:\\users\\thisis~1\\appdata\\local\\t emp\\pip-build-thisisawittyusername\\pyyaml\\setup.py';exec(compile(open(__file_ _).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\t hisis~1\appdata\local\temp\pip-taygji-record\install-record.txt --single-version -externally-managed:     running install  running build  running build_py  running build_ext  checking if libyaml compilable  traceback (most recent call last):    file "<string>", line 1, in <module>    file "c:\users\thisis~1\appdata\local\temp\pip-build-thisisawittyusername\pyya ml\setup.py", line 344, in <module>      'test': test,    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\core.py", li ne 152, in setup      dist.run_commands()    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\dist.py", li ne 953, in run_commands      self.run_command(cmd)    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\dist.py", li ne 972, in run_command      cmd_obj.run()    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\site-packages\setuptoo ls\command\install.py", line 53, in run      return _install.run(self)    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\command\inst all.py", line 563, in run      self.run_command('build')    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\cmd.py", lin e 326, in run_command      self.distribution.run_command(command)    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\dist.py", li ne 972, in run_command      cmd_obj.run()    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\command\buil d.py", line 127, in run      self.run_command(cmd_name)    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\cmd.py", lin e 326, in run_command      self.distribution.run_command(command)    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\dist.py", li ne 972, in run_command      cmd_obj.run()    file "c:\users\thisis~1\appdata\local\temp\pip-build-thisisawittyusername\pyya ml\setup.py", line 171, in run      _build_ext.run(self)    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\site-packages\cython\d istutils\build_ext.py", line 163, in run      _build_ext.build_ext.run(self)    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\command\buil d_ext.py", line 339, in run      self.build_extensions()    file "c:\users\thisis~1\appdata\local\temp\pip-build-thisisawittyusername\pyya ml\setup.py", line 213, in build_extensions      with_ext = self.check_extension_availability(ext)    file "c:\users\thisis~1\appdata\local\temp\pip-build-thisisawittyusername\pyya ml\setup.py", line 239, in check_extension_availability      depends=ext.depends)    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\msvc9compile r.py", line 473, in compile      self.initialize()    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\msvc9compile r.py", line 383, in initialize      vc_env = query_vcvarsall(version, plat_spec)    file "c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\lib\distutils\msvc9compile r.py", line 299, in query_vcvarsall      raise valueerror(str(list(result.keys())))  valueerror: [u'path']  ---------------------------------------- command c:\winpython-64bit-2.7.5.1\python-2.7.5.amd64\python.exe -c "import setu ptools;__file__='c:\\users\\thisis~1\\appdata\\local\\temp\\pip-build-thisisawit tyusername\\pyyaml\\setup.py';exec(compile(open(__file__).read().replace('\r\n',  '\n'), __file__, 'exec'))" install --record c:\users\thisis~1\appdata\local\tem p\pip-taygji-record\install-record.txt --single-version-externally-managed faile d error code 1 in c:\users\thisis~1\appdata\local\temp\pip-build-thisisawit tyusername\pyyaml storing complete log in c:\users\thisisawittyusername\pip\pip.log 

update--re-registered winpython (using built in control pannel), installed 32 bit version of pyyaml site, , nltk, , seems working(!)


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -