Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install masspy not working #154

Open
ilknuricke opened this issue Feb 17, 2021 · 1 comment
Open

pip install masspy not working #154

ilknuricke opened this issue Feb 17, 2021 · 1 comment

Comments

@ilknuricke
Copy link

......
Collecting swiglpk
Using cached swiglpk-4.65.1.tar.gz (30 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ilknur\anaconda3\envs\masspy\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ilknur\AppData\Local\Temp\pip-install-jkgdvhfk\swiglpk_2f4580227db041b9b88e4cd94c33661c\setup.py'"'"'; file='"'"'C:\Users\Ilknur\AppData\Local\Temp\pip-install-jkgdvhfk\swiglpk_2f4580227db041b9b88e4cd94c33661c\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ilknur\AppData\Local\Temp\pip-pip-egg-info-zer12uhm'
cwd: C:\Users\Ilknur\AppData\Local\Temp\pip-install-jkgdvhfk\swiglpk_2f4580227db041b9b88e4cd94c33661c
Complete output (16 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Ilknur\AppData\Local\Temp\pip-install-jkgdvhfk\swiglpk_2f4580227db041b9b88e4cd94c33661c\setup.py", line 53, in
copy_glpk_header()
File "C:\Users\Ilknur\AppData\Local\Temp\pip-install-jkgdvhfk\swiglpk_2f4580227db041b9b88e4cd94c33661c\setup.py", line 31, in copy_glpk_header
glpsol_path = os.path.dirname(subprocess.check_output(['which', 'glpsol']))
File "C:\Users\Ilknur\anaconda3\envs\masspy\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\Ilknur\anaconda3\envs\masspy\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Ilknur\anaconda3\envs\masspy\lib\subprocess.py", line 947, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Ilknur\anaconda3\envs\masspy\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Trying to determine glpk.h location
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@ilknuricke
Copy link
Author

ilknuricke commented Feb 24, 2021

I was able to install the package from the tar.gz by manually installing glpk, swig and downgrading some dependencies. However, when I run the example code from the textbook, my simulation plots don't look like those on the example results from the website. (also I am on windows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant