I am trying to install GDAL in virtual environment based on the various solutions out there.
However the download itself already fails:
$ pip install --no-install GDAL
Here is the pip.log
------------------------------------------------------------
/Users/test/venv/bin/pip run on Sun Jun 2 15:35:15 2013
Downloading/unpacking GDAL
Running setup.py egg_info for package GDAL
running egg_info
writing pip-egg-info/GDAL.egg-info/PKG-INFO
writing top-level names to pip-egg-info/GDAL.egg-info/top_level.txt
writing dependency_links to pip-egg-info/GDAL.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/Users/test/venv/build/GDAL/setup.py", line 267, in <module>
ext_modules = ext_modules )
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "<string>", line 14, in replacement_run
File "/Users/test/venv/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/setuptools/command/egg_info.py", line 259, in find_sources
mm.run()
File "/Users/test/venv/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/setuptools/command/egg_info.py", line 325, in run
self.add_defaults()
File "/Users/test/venv/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/setuptools/command/egg_info.py", line 361, in add_defaults
sdist.add_defaults(self)
File "/Users/test/venv/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/setuptools/command/sdist.py", line 211, in add_defaults
build_ext = self.get_finalized_command('build_ext')
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 312, in get_finalized_command
cmd_obj.ensure_finalized()
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/Users/test/venv/build/GDAL/setup.py", line 164, in finalize_options
self.gdaldir = self.get_gdal_config('prefix')
File "/Users/test/venv/build/GDAL/setup.py", line 144, in get_gdal_config
return fetch_config(option)
File "/Users/test/venv/build/GDAL/setup.py", line 97, in fetch_config
raise gdal_config_error, e""")
File "<string>", line 4, in <module>
__main__.gdal_config_error: [Errno 2] No such file or directory
Complete output from command python setup.py egg_info:
running egg_info
writing pip-egg-info/GDAL.egg-info/PKG-INFO
writing top-level names to pip-egg-info/GDAL.egg-info/top_level.txt
writing dependency_links to pip-egg-info/GDAL.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/Users/test/venv/build/GDAL/setup.py", line 267, in <module>
ext_modules = ext_modules )
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "<string>", line 14, in replacement_run
File "/Users/test/venv/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/setuptools/command/egg_info.py", line 259, in find_sources
mm.run()
File "/Users/test/venv/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/setuptools/command/egg_info.py", line 325, in run
self.add_defaults()
File "/Users/test/venv/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/setuptools/command/egg_info.py", line 361, in add_defaults
sdist.add_defaults(self)
File "/Users/test/venv/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/setuptools/command/sdist.py", line 211, in add_defaults
build_ext = self.get_finalized_command('build_ext')
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 312, in get_finalized_command
cmd_obj.ensure_finalized()
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/Users/test/venv/build/GDAL/setup.py", line 164, in finalize_options
self.gdaldir = self.get_gdal_config('prefix')
File "/Users/test/venv/build/GDAL/setup.py", line 144, in get_gdal_config
return fetch_config(option)
File "/Users/test/venv/build/GDAL/setup.py", line 97, in fetch_config
raise gdal_config_error, e""")
File "<string>", line 4, in <module>
__main__.gdal_config_error: [Errno 2] No such file or directory
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/test/venv/build/GDAL
Exception information:
Traceback (most recent call last):
File "/Users/test/venv/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py", line 139, in main
status = self.run(options, args)
File "/Users/test/venv/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", line 266, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Users/test/venv/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1057, in prepare_files
req_to_install.run_egg_info()
File "/Users/test/venv/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 236, in run_egg_info
command_desc='python setup.py egg_info')
File "/Users/test/venv/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/util.py", line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /Users/test/venv/build/GDAL
What am I missing?
The workaround given by #user1738154 didn't work as expected for me so went ahead and installed GDAL using HomeBrew then using pip into my Virtual environment.
$ brew install gdal
(venv)$ pip install GDAL
Everything compiled and ran like a charm.
A workaround to that problem is to
Download GDAL Complete from this site
Install GDAL Complete.pkg
Go to /Library/Frameworks/GDAL.framework/Versions/1.10/ and copy all files in there
Go to your virtual environment's sites-packages /venv/lib/python2.7/site-packages and paste the copied files in there
after install gdal using these steps on host:
sudo apt-get install gdal-bin
sudo apt-get install libgdal-dev
After that use
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
This should work like charm
Related
I am trying to install pandas to use in my python code. I was able to upgrade my pip using pip install upgrade pip but when I try to install pandas using pip install pandas I get the following errors:
Traceback (most recent call last):
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\fcompiler\compaq.py", line 78
, in CompaqVisualFCompiler
m.initialize()
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\msvccompiler.py", line 48, in
initialize
_MSVCCompiler.initialize(self)
File "C:\msys64\mingw64\lib\python3.9\distutils\msvccompiler.py", line 259, in initialize
self.__paths = self.get_msvc_paths("path")
File "C:\msys64\mingw64\lib\python3.9\distutils\msvccompiler.py", line 602, in get_msvc_paths
r"\Win32 (%s)\Directories" % (self.__root, platform))
AttributeError: 'MSVCCompiler' object has no attribute '_MSVCCompiler__root'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Brian\AppData\Local\Temp\tmp94oxoujq_in_process.py", line 363, in <module>
main()
File "C:\Users\Brian\AppData\Local\Temp\tmp94oxoujq_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Brian\AppData\Local\Temp\tmp94oxoujq_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "C:\Users\Brian\AppData\Local\Temp\pip-build-env-tr54un10\overlay\lib\python3.9\site-packages\setuptools\build_meta.py", line 157, in prepare
e_metadata_for_build_wheel
self.run_setup()
File "C:\Users\Brian\AppData\Local\Temp\pip-build-env-tr54un10\overlay\lib\python3.9\site-packages\setuptools\build_meta.py", line 248, in run_se
tup
super(_BuildMetaLegacyBackend,
File "C:\Users\Brian\AppData\Local\Temp\pip-build-env-tr54un10\overlay\lib\python3.9\site-packages\setuptools\build_meta.py", line 142, in run_se
tup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 508, in <module>
setup_package()
File "setup.py", line 500, in setup_package
setup(**metadata)
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\core.py", line 169, in setup
return old_setup(**new_attr)
File "C:\Users\Brian\AppData\Local\Temp\pip-build-env-tr54un10\overlay\lib\python3.9\site-packages\setuptools\__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\msys64\mingw64\lib\python3.9\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\msys64\mingw64\lib\python3.9\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\msys64\mingw64\lib\python3.9\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Brian\AppData\Local\Temp\pip-build-env-tr54un10\overlay\lib\python3.9\site-packages\setuptools\command\dist_info.py", line 31, in
run
egg_info.run()
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\command\egg_info.py", line 24
, in run
self.run_command("build_src")
File "C:\msys64\mingw64\lib\python3.9\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\msys64\mingw64\lib\python3.9\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\command\build_src.py", line 1
44, in run
self.build_sources()
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\command\build_src.py", line 1
55, in build_sources
self.build_library_sources(*libname_info)
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\command\build_src.py", line 2
88, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\command\build_src.py", line 3
78, in generate_sources
source = func(extension, build_dir)
File "numpy\core\setup.py", line 658, in get_mathlib_info
st = config_cmd.try_link('int main(void) { return 0;}')
File "C:\msys64\mingw64\lib\python3.9\distutils\command\config.py", line 241, in
try_link
self._check_compiler()
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\command\config.py", line 80,
in _check_compiler
self.fcompiler = new_fcompiler(compiler=self.fcompiler,
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\fcompiler\__init__.py", line
876, in new_fcompiler
load_all_fcompiler_classes()
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\fcompiler\__init__.py", line
777, in load_all_fcompiler_classes
__import__ (module_name)
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\fcompiler\compaq.py", line 54
, in <module>
class CompaqVisualFCompiler(FCompiler):
File "C:\Users\Brian\AppData\Local\Temp\pip-install-i72pcle8\numpy_328f6081d36f426b90572be17f203722\numpy\distutils\fcompiler\compaq.py", line 83
, in CompaqVisualFCompiler
if '_MSVCCompiler__root' in str(msg):
NameError: name 'msg' is not defined
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Before upgrading my pip, I tried installing pandas but none of the versions that I tried to install would download; however, I don't think I was getting these same errors before I upgraded pip. Can someone help me figure out how to install pandas? Is there a different way that I need to install it without using pip install pandas?
Remove the NumPy then try to install pandas again.
pip uninstall package_name
On our linux redhat RHEL 6 cluster, I downloaded cryptography-0.8.2.tar.gz and then ran
python setup.py install --user
in the cryptography-0.8.2 directory. I am getting the following error. Can anyone help me solve it? I'm not up to speed on weak references, just trying to install the cryptography module. Thanks much!
rcook#rzgpu2 (cryptography-0.8.2 ): python setup.py install --user
running install
Traceback (most recent call last):
File "setup.py", line 342, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/apps/python/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/apps/python/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/apps/python/lib/python2.7/distutils/dist.py", line 971, in run_command
cmd_obj.ensure_finalized()
File "/usr/apps/python/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "setup.py", line 119, in finalize_options
self.distribution.ext_modules = get_ext_modules()
File "setup.py", line 78, in get_ext_modules
from cryptography.hazmat.bindings.commoncrypto.binding import (
File "src/cryptography/hazmat/bindings/commoncrypto/binding.py", line 14, in <module>
class Binding(object):
File "src/cryptography/hazmat/bindings/commoncrypto/binding.py", line 36, in Binding
"-framework", "Security", "-framework", "CoreFoundation"
File "src/cryptography/hazmat/bindings/utils.py", line 97, in build_ffi_for_binding
extra_link_args=extra_link_args,
File "src/cryptography/hazmat/bindings/utils.py", line 106, in build_ffi
ffi.cdef(cdef_source)
File "/g/g0/rcook/.local/lib/python2.7/site-packages/cffi/api.py", line 106, in cdef
self._parser.parse(csource, override=override, packed=packed)
File "/g/g0/rcook/.local/lib/python2.7/site-packages/cffi/cparser.py", line 165, in parse
self._internal_parse(csource)
File "/g/g0/rcook/.local/lib/python2.7/site-packages/cffi/cparser.py", line 199, in _internal_parse
realtype = self._get_type(decl.type, name=decl.name)
File "/g/g0/rcook/.local/lib/python2.7/site-packages/cffi/cparser.py", line 360, in _get_type
return self._get_struct_union_enum_type('struct', type, name)
File "/g/g0/rcook/.local/lib/python2.7/site-packages/cffi/cparser.py", line 434, in _get_struct_union_enum_type
return self._structnode2type[type]
File "/usr/apps/python/lib/python2.7/weakref.py", line 256, in __getitem__
return self.data[ref(key)]
TypeError: cannot create weak reference to 'Struct' object
The problem is actually in the pycparser module.
As per https://bugs.launchpad.net/openstack-gate/+bug/1446882 do the following:
pip uninstall pycparser && pip install -Iv pycparser==2.10
As it turns out pycparser-2.11 is the culprit for this error message/bug.
pip uninstall pycparser && pip install -Iv pycparser==2.10
I am new to python, and after reading the running some examples, I wanted to try statsmodels.
I copied the following example from statsmodels website,
#!/usr/bin/env python3
import numpy as np
import statsmodels.api as sm
spector_data = sm.datasets.spector.load()
spector_data.exog = sm.add_constant(spector_data.exog, prepend=False)
#Fit and summarize OLS model
mod = sm.OLS(spector_data.endog, spector_data.exog)
res = mod.fit()
print (res.summary())
and I get the following error:
Running unit tests for scipy
Traceback (most recent call last):
File "./statsmodels.py", line 3, in <module>
import statsmodels.api as sm
File "/home/ra/python/statsmodels.py", line 3, in <module>
scipy.test()
File "/usr/lib/python3/dist-packages/numpy/testing/nosetester.py", line 318, in test
self._show_system_info()
File "/usr/lib/python3/dist-packages/numpy/testing/nosetester.py", line 187, in _show_system_info
nose = import_nose()
File "/usr/lib/python3/dist-packages/numpy/testing/nosetester.py", line 69, in import_nose
raise ImportError(msg)
ImportError: Need nose >= 0.10.0 for tests - see http://somethingaboutorange.com/mrl/projects/nose
so, I ran the below command for statsmodels, and it gave me the following message upon running the install:
sudo easy_install3 -U statsmodels
Searching for statsmodels
Reading http://pypi.python.org/simple/statsmodels/
Reading http://statsmodels.sourceforge.net/
Reading https://github.com/statsmodels/statsmodels/downloads
Best match: statsmodels 0.5.0
Downloading https://pypi.python.org/packages/source/s/statsmodels/statsmodels-0.5.0.zip#md5=4ed78e8c6ababdcae0400fc0fe6f31a7
Processing statsmodels-0.5.0.zip
Running statsmodels-0.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-hnrc4z/statsmodels-0.5.0/egg-dist-tmp-2_kign
Traceback (most recent call last):
File "setup.py", line 116, in check_dependency_versions
ImportError: No module named pandas.version
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/easy_install3", line 9, in <module>
load_entry_point('distribute==0.6.24dev-r0', 'console_scripts', 'easy_install')()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1931, in main
with_ei_usage(lambda:
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1912, in with_ei_usage
return f()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1935, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib/python3.2/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.2/distutils/dist.py", line 917, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.2/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 368, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 608, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 638, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 828, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1105, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 31, in run_setup
lambda: exec(compile(open(
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 73, in run
return func()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 34, in <lambda>
{'__file__':setup_script, '__name__':'__main__'})
File "setup.py", line 463, in <module>
File "setup.py", line 118, in check_dependency_versions
ImportError: statsmodels requires pandas
So, I ran the below to make sure I had the latest pandas (I had run the sudo apt-get install python-pandas before, but since statsmodels did not find that, I did the below:
sudo easy_install3 -U pandas
Searching for pandas
Reading http://pypi.python.org/simple/pandas/
Best match: pandas 0.14.0
Downloading https://pypi.python.org/packages/source/p/pandas/pandas-0.14.0.zip#md5=9afe57bd470a2ddaf67bdfb5fc9c0eee
Processing pandas-0.14.0.zip
Running pandas-0.14.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-deg0nw/pandas-0.14.0/egg-dist-tmp-19hrp_
warning: no files found matching 'README.rst'
no previously-included directories found matching 'doc/build'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.png' found anywhere in distribution
pandas/index.c:4:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
Where's my error this time.
btw, this is the version of pandas I see from my python prompt:
>>> import pandas
/usr/local/lib/python2.7/dist-packages/pandas/io/excel.py:626: UserWarning: Installed openpyxl is not supported at this time. Use >=1.6.1 and <2.0.0.
.format(openpyxl_compat.start_ver, openpyxl_compat.stop_ver))
>>> pandas.__version__
'0.14.0'
I don't understand why I get that message when I import.
Also, I wanted to post the results of which, in case that might be of any use:
ra#ra-VGN-FZ:~$ which python
/usr/bin/python
ra#ra-VGN-FZ:~$ which easy_install
/usr/bin/easy_install
ra#ra-VGN-FZ:~$ which pip3
/usr/local/bin/pip3
To solve openpyxl problem, I did the following:
pip uninstall openpyxl
Cannot uninstall requirement openpyxl, not installed
Storing debug log for failure in /tmp/tmpci3yro
ra#ra-VGN-FZ19:~$ pip install openpyxl==1.8.6
Downloading/unpacking openpyxl==1.8.6
Downloading openpyxl-1.8.6-py2.py3-none-any.whl (190kB): 190kB downloaded
Installing collected packages: openpyxl
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/pip-1.5.6-py3.2.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python3.2/dist-packages/pip-1.5.6-py3.2.egg/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/local/lib/python3.2/dist-packages/pip-1.5.6-py3.2.egg/pip/req.py", line 1435, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/local/lib/python3.2/dist-packages/pip-1.5.6-py3.2.egg/pip/req.py", line 671, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/local/lib/python3.2/dist-packages/pip-1.5.6-py3.2.egg/pip/req.py", line 901, in move_wheel_files
pycompile=self.pycompile,
File "/usr/local/lib/python3.2/dist-packages/pip-1.5.6-py3.2.egg/pip/wheel.py", line 215, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python3.2/dist-packages/pip-1.5.6-py3.2.egg/pip/wheel.py", line 205, in clobber
os.makedirs(destdir)
File "/usr/lib/python3.2/os.py", line 152, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python3.2/dist-packages/openpyxl-1.8.6.dist-info'
Storing debug log for failure in /tmp/tmp15h3o4
This is the error with python3:
sudo easy_install3 -U statsmodels
Searching for statsmodels
Reading http://pypi.python.org/simple/statsmodels/
Reading http://statsmodels.sourceforge.net/
Reading https://github.com/statsmodels/statsmodels/downloads
Best match: statsmodels 0.5.0
Downloading https://pypi.python.org/packages/source/s/statsmodels/statsmodels-0.5.0.zip#md5=4ed78e8c6ababdcae0400fc0fe6f31a7
Processing statsmodels-0.5.0.zip
Running statsmodels-0.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-oudla7/statsmodels-0.5.0/egg-dist-tmp-o6dh5a
Traceback (most recent call last):
File "setup.py", line 120, in check_dependency_versions
ImportError: No module named patsy
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/easy_install3", line 9, in <module>
load_entry_point('distribute==0.6.24dev-r0', 'console_scripts', 'easy_install')()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1931, in main
with_ei_usage(lambda:
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1912, in with_ei_usage
return f()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1935, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib/python3.2/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.2/distutils/dist.py", line 917, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.2/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 368, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 608, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 638, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 828, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1105, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 31, in run_setup
lambda: exec(compile(open(
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 73, in run
return func()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 34, in <lambda>
{'__file__':setup_script, '__name__':'__main__'})
File "setup.py", line 463, in <module>
File "setup.py", line 122, in check_dependency_versions
ImportError: statsmodels requires patsy. http://patsy.readthedocs.org
ra#ra-VGN-FZ19:~$ sudo easy_install3 -U patsy
Searching for patsy
Reading http://pypi.python.org/simple/patsy/
Best match: patsy 0.2.1
Downloading https://pypi.python.org/packages/source/p/patsy/patsy-0.2.1.zip#md5=d51fa2fcb60018d75073f375c87ddccf
Processing patsy-0.2.1.zip
Running patsy-0.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-l1wpxc/patsy-0.2.1/egg-dist-tmp-2qgd7e
no previously-included directories found matching 'doc/_build'
zip_safe flag not set; analyzing archive contents...
Adding patsy 0.2.1 to easy-install.pth file
Installed /usr/local/lib/python3.2/dist-packages/patsy-0.2.1-py3.2.egg
Processing dependencies for patsy
Finished processing dependencies for patsy
Thanks to Jonathan Villemaire-Krajden who misled me while i was seeking a solution to show() in matplotlib, my statsmodels has broken.
I tried to reinstall statsmodels and now I get the following error:
easy_install3 -U statsmodels
Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 449, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 742, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 643, in resolve
raise VersionConflict(dist, req) # XXX put more info here
pkg_resources.VersionConflict: (distribute 0.7.3 (/usr/local/lib/python3.2/dist-packages/distribute-0.7.3-py3.2.egg), Requirement.parse('distribute==0.6.24dev-r0'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/easy_install3", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 2837, in <module>
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 451, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 464, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 799, in __init__
self.scan(search_path)
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 829, in scan
self.add(dist)
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 849, in add
dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
TypeError: unorderable types: NoneType() < str()
ra#ra-VGN-FZ19:~$ sudo easy_install3 -U statsmodels
Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 449, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 742, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 643, in resolve
raise VersionConflict(dist, req) # XXX put more info here
pkg_resources.VersionConflict: (distribute 0.7.3 (/usr/local/lib/python3.2/dist-packages/distribute-0.7.3-py3.2.egg), Requirement.parse('distribute==0.6.24dev-r0'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/easy_install3", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 2837, in <module>
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 451, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 464, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 799, in __init__
self.scan(search_path)
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 829, in scan
self.add(dist)
File "/usr/local/lib/python3.2/dist-packages/setuptools-5.1-py3.2.egg/pkg_resources.py", line 849, in add
dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
TypeError: unorderable types: NoneType() < str()
sudo pip3 install statsmodels
Downloading/unpacking statsmodels
Downloading statsmodels-0.5.0.tar.gz (5.5MB): 5.5MB downloaded
Running setup.py (path:/tmp/pip_build_root/statsmodels/setup.py) egg_info for package statsmodels
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/statsmodels/setup.py", line 463, in <module>
check_dependency_versions(min_versions)
File "/tmp/pip_build_root/statsmodels/setup.py", line 109, in check_dependency_versions
from scipy.version import short_version as spversion
File "/usr/lib/python3/dist-packages/scipy/__init__.py", line 124, in <module>
pkgload(verbose=SCIPY_IMPORT_VERBOSE,postpone=True)
File "/usr/local/lib/python3.2/dist-packages/numpy/_import_tools.py", line 177, in __call__
for package_name in self._get_sorted_names():
File "/usr/local/lib/python3.2/dist-packages/numpy/_import_tools.py", line 114, in _get_sorted_names
for name in depend_dict.keys():
RuntimeError: dictionary changed size during iteration
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/statsmodels/setup.py", line 463, in <module>
check_dependency_versions(min_versions)
File "/tmp/pip_build_root/statsmodels/setup.py", line 109, in check_dependency_versions
from scipy.version import short_version as spversion
File "/usr/lib/python3/dist-packages/scipy/__init__.py", line 124, in <module>
pkgload(verbose=SCIPY_IMPORT_VERBOSE,postpone=True)
File "/usr/local/lib/python3.2/dist-packages/numpy/_import_tools.py", line 177, in __call__
for package_name in self._get_sorted_names():
File "/usr/local/lib/python3.2/dist-packages/numpy/_import_tools.py", line 114, in _get_sorted_names
for name in depend_dict.keys():
RuntimeError: dictionary changed size during iteration
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/statsmodels
Storing debug log for failure in /home/ra/.pip/pip.log
You are running statsmodels.py with Python 3, and almost certainly running ipython with Python 2.
When you install with pip it usesPython 2, and installs the packages in a different location than where Python 3 looks.
Either install nose using pip3 (if you have it installed - read here if not)
sudo pip3 install nose
or run your statsmodels.py with Python 2 (replace python3 with python on your first line):
#!/usr/bin/env python
I run the following command in terminal sudo python2.6 setup.py install and after some output I get the below error.
Traceback (most recent call last):
File "setup.py", line 16, in <module>
packages=find_packages()
File "/opt/python2.6/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/opt/python2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/opt/python2.6/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/install.py", line 76, in run
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/install.py", line 104, in do_egg_install
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 211, in run
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 427, in easy_install
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 478, in install_item
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 519, in process_distribution
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 570, in resolve
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2149, in requires
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2141, in _dep_map
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2560, in split_sections
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1854, in yield_lines
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2163, in _get_metadata
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1181, in get_metadata_lines
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1178, in get_metadata
File "/opt/python2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1238, in _get
zipimport.ZipImportError: bad local file header in /opt/python2.6/lib/python2.6/site-packages/businesscommon-5.63-py2.6.egg
I ran the command unzip -t /opt/python2.6/lib/python2.6/site-packages/businesscommon-5.63-py2.6.egg to see if the EGG file is a valid ZIP file and it returned 'No errors detected'.
I've done some research on zipimport.ZipImportError but can't seem to figure how really to debug or fix it. I don't have much experience with Python so any help or advice would be appreciated.
Looks like all I needed to do was run sudo python2.5 setup.py install instead of sudo python2.6 setup.py install
Notice that I was oringally using python2.6 instead of python2.5.
I've searched around for awhile, and tried http://nltk.org/install.html#source-installation-for-32-bit-or-64-bit-windows and the registry changes from 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 to use my winpython folder).
(it does seem to indicate that I have nltk installed, but winpython doesn't seem to come with nltk, and "import nltk" doesn't work)
my output from running the command "pip install pyyaml nltk" is 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 for package pyyaml
skipping 'ext\_yaml.c' Cython extension (up-to-date)
Requirement already satisfied (use --upgrade to 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 for pyyaml
checking if libyaml is 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>
--> the rest is trimmed
Any thoughts?
edit--here is the 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 for package pyyaml
skipping 'ext\_yaml.c' Cython extension (up-to-date)
Requirement already satisfied (use --upgrade to 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 for pyyaml
checking if libyaml is 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 from 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 is 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 with 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 the its built in control pannel), installed the 32 bit version of pyyaml from the site, and then nltk, and it seems to be working(!)