GLPK installation error

183 views
Skip to first unread message

Omid Alizadeh Mousavi

unread,
Jun 23, 2016, 8:55:40 PM6/23/16
to pulp-or-discuss
Hi,

I have Python3.4 installed on Windows 10, 64-bit. I have installed PuLP on my machine successfully. I have tried to install GLPK but when I run "setup.py install" I get the following error. What might be the solution?

Thanks,

C:\Users\NB_DEPsys_1\Downloads\glpk-0.3>setup.py install
'which' is not recognized as an internal or external command,
operable program or batch file.
running install
running build
running build_ext
building 'glpk' extension
Traceback (most recent call last):
  File "C:\Users\NB_DEPsys_1\Downloads\glpk-0.3\setup.py", line 101, in <module>
    ext_modules = [module1])
  File "C:\Python34\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\distutils\command\install.py", line 539, in run
    self.run_command('build')
  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\distutils\command\build.py", line 126, in run
    self.run_command(cmd_name)
  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\distutils\command\build_ext.py", line 339, in run
    self.build_extensions()
  File "C:\Python34\lib\distutils\command\build_ext.py", line 448, in build_extensions
    self.build_extension(ext)
  File "C:\Python34\lib\distutils\command\build_ext.py", line 503, in build_extension
    depends=ext.depends)
  File "C:\Python34\lib\distutils\msvc9compiler.py", line 460, in compile
    self.initialize()
  File "C:\Python34\lib\distutils\msvc9compiler.py", line 371, in initialize
    vc_env = query_vcvarsall(VERSION, plat_spec)
  File "C:\Python34\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsall
    raise ValueError(str(list(result.keys())))
ValueError: ['path']


Stuart Mitchell

unread,
Jun 23, 2016, 9:02:22 PM6/23/16
to pulp-or...@googlegroups.com
so this is a question about how to install glpk in windows, sorry I am not sure how to do that.

But pulp does come bundled with the cbc solver (the default) which is generally faster.

Stu

--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discu...@googlegroups.com.
To post to this group, send email to pulp-or...@googlegroups.com.
Visit this group at https://groups.google.com/group/pulp-or-discuss.
For more options, visit https://groups.google.com/d/optout.



--
Stuart Mitchell
PhD Engineering Science
Extraordinary Freelance Programmer and Optimisation Guru
Reply all
Reply to author
Forward
0 new messages