Install python-glpk
I want to install python-glpk
I followed the instructions here:
https://en.wikibooks.org/wiki/GLPK/Python
But when I tried to do this:
import glpk
print glpk.glp_version()
I have these errors
Thank you
software-installation
add a comment |
I want to install python-glpk
I followed the instructions here:
https://en.wikibooks.org/wiki/GLPK/Python
But when I tried to do this:
import glpk
print glpk.glp_version()
I have these errors
Thank you
software-installation
It is known bug in Ubuntu 16.04 LTS, see fix in my answer below.
– N0rbert
Jan 21 at 21:24
add a comment |
I want to install python-glpk
I followed the instructions here:
https://en.wikibooks.org/wiki/GLPK/Python
But when I tried to do this:
import glpk
print glpk.glp_version()
I have these errors
Thank you
software-installation
I want to install python-glpk
I followed the instructions here:
https://en.wikibooks.org/wiki/GLPK/Python
But when I tried to do this:
import glpk
print glpk.glp_version()
I have these errors
Thank you
software-installation
software-installation
edited Jan 21 at 20:10
N0rbert
22.8k649108
22.8k649108
asked Jan 21 at 19:50
Cult 24Cult 24
82
82
It is known bug in Ubuntu 16.04 LTS, see fix in my answer below.
– N0rbert
Jan 21 at 21:24
add a comment |
It is known bug in Ubuntu 16.04 LTS, see fix in my answer below.
– N0rbert
Jan 21 at 21:24
It is known bug in Ubuntu 16.04 LTS, see fix in my answer below.
– N0rbert
Jan 21 at 21:24
It is known bug in Ubuntu 16.04 LTS, see fix in my answer below.
– N0rbert
Jan 21 at 21:24
add a comment |
1 Answer
1
active
oldest
votes
Bug
For Ubuntu 16.04 LTS it is known issue - it was reported to LaunchPad.net on 2016-10-02 as bug 1629672.
Fix
We can fix this bug by installation of previous version of python-ply
component with pip
into your home folder:
#sudo apt-get install python-glpk # you did this before in question
sudo apt-get install python-pip
pip install ply==3.4 --user
And then test it with simple script (name it glpk_test.py
) with contents:
#!/usr/bin/python2
import glpk
print glpk.glp_version()
then make it executable with chmod +x glpk_test.py
and execute with ./glpk_test.py
.
The output on Ubuntu 16.04 LTS will be:
4.57
Hi, Thanks for the quick response I did it, but nothing happend. The steps that I followed to install are: 1) sudo apt-get install python-glpk 2) sudo apt-get install glpk-utils 3) sudo apt-get install python-pip 4) pip install ply==3.4 --user Am I right?
– Cult 24
Jan 21 at 22:44
Just tested this method on my fully upgraded Ubuntu 16.04 LTS - it results in 4.57 with these steps.
– N0rbert
Jan 22 at 9:41
Ok it works! Thanks
– Cult 24
Jan 22 at 17:11
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1111753%2finstall-python-glpk%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Bug
For Ubuntu 16.04 LTS it is known issue - it was reported to LaunchPad.net on 2016-10-02 as bug 1629672.
Fix
We can fix this bug by installation of previous version of python-ply
component with pip
into your home folder:
#sudo apt-get install python-glpk # you did this before in question
sudo apt-get install python-pip
pip install ply==3.4 --user
And then test it with simple script (name it glpk_test.py
) with contents:
#!/usr/bin/python2
import glpk
print glpk.glp_version()
then make it executable with chmod +x glpk_test.py
and execute with ./glpk_test.py
.
The output on Ubuntu 16.04 LTS will be:
4.57
Hi, Thanks for the quick response I did it, but nothing happend. The steps that I followed to install are: 1) sudo apt-get install python-glpk 2) sudo apt-get install glpk-utils 3) sudo apt-get install python-pip 4) pip install ply==3.4 --user Am I right?
– Cult 24
Jan 21 at 22:44
Just tested this method on my fully upgraded Ubuntu 16.04 LTS - it results in 4.57 with these steps.
– N0rbert
Jan 22 at 9:41
Ok it works! Thanks
– Cult 24
Jan 22 at 17:11
add a comment |
Bug
For Ubuntu 16.04 LTS it is known issue - it was reported to LaunchPad.net on 2016-10-02 as bug 1629672.
Fix
We can fix this bug by installation of previous version of python-ply
component with pip
into your home folder:
#sudo apt-get install python-glpk # you did this before in question
sudo apt-get install python-pip
pip install ply==3.4 --user
And then test it with simple script (name it glpk_test.py
) with contents:
#!/usr/bin/python2
import glpk
print glpk.glp_version()
then make it executable with chmod +x glpk_test.py
and execute with ./glpk_test.py
.
The output on Ubuntu 16.04 LTS will be:
4.57
Hi, Thanks for the quick response I did it, but nothing happend. The steps that I followed to install are: 1) sudo apt-get install python-glpk 2) sudo apt-get install glpk-utils 3) sudo apt-get install python-pip 4) pip install ply==3.4 --user Am I right?
– Cult 24
Jan 21 at 22:44
Just tested this method on my fully upgraded Ubuntu 16.04 LTS - it results in 4.57 with these steps.
– N0rbert
Jan 22 at 9:41
Ok it works! Thanks
– Cult 24
Jan 22 at 17:11
add a comment |
Bug
For Ubuntu 16.04 LTS it is known issue - it was reported to LaunchPad.net on 2016-10-02 as bug 1629672.
Fix
We can fix this bug by installation of previous version of python-ply
component with pip
into your home folder:
#sudo apt-get install python-glpk # you did this before in question
sudo apt-get install python-pip
pip install ply==3.4 --user
And then test it with simple script (name it glpk_test.py
) with contents:
#!/usr/bin/python2
import glpk
print glpk.glp_version()
then make it executable with chmod +x glpk_test.py
and execute with ./glpk_test.py
.
The output on Ubuntu 16.04 LTS will be:
4.57
Bug
For Ubuntu 16.04 LTS it is known issue - it was reported to LaunchPad.net on 2016-10-02 as bug 1629672.
Fix
We can fix this bug by installation of previous version of python-ply
component with pip
into your home folder:
#sudo apt-get install python-glpk # you did this before in question
sudo apt-get install python-pip
pip install ply==3.4 --user
And then test it with simple script (name it glpk_test.py
) with contents:
#!/usr/bin/python2
import glpk
print glpk.glp_version()
then make it executable with chmod +x glpk_test.py
and execute with ./glpk_test.py
.
The output on Ubuntu 16.04 LTS will be:
4.57
edited Jan 22 at 9:42
answered Jan 21 at 20:10
N0rbertN0rbert
22.8k649108
22.8k649108
Hi, Thanks for the quick response I did it, but nothing happend. The steps that I followed to install are: 1) sudo apt-get install python-glpk 2) sudo apt-get install glpk-utils 3) sudo apt-get install python-pip 4) pip install ply==3.4 --user Am I right?
– Cult 24
Jan 21 at 22:44
Just tested this method on my fully upgraded Ubuntu 16.04 LTS - it results in 4.57 with these steps.
– N0rbert
Jan 22 at 9:41
Ok it works! Thanks
– Cult 24
Jan 22 at 17:11
add a comment |
Hi, Thanks for the quick response I did it, but nothing happend. The steps that I followed to install are: 1) sudo apt-get install python-glpk 2) sudo apt-get install glpk-utils 3) sudo apt-get install python-pip 4) pip install ply==3.4 --user Am I right?
– Cult 24
Jan 21 at 22:44
Just tested this method on my fully upgraded Ubuntu 16.04 LTS - it results in 4.57 with these steps.
– N0rbert
Jan 22 at 9:41
Ok it works! Thanks
– Cult 24
Jan 22 at 17:11
Hi, Thanks for the quick response I did it, but nothing happend. The steps that I followed to install are: 1) sudo apt-get install python-glpk 2) sudo apt-get install glpk-utils 3) sudo apt-get install python-pip 4) pip install ply==3.4 --user Am I right?
– Cult 24
Jan 21 at 22:44
Hi, Thanks for the quick response I did it, but nothing happend. The steps that I followed to install are: 1) sudo apt-get install python-glpk 2) sudo apt-get install glpk-utils 3) sudo apt-get install python-pip 4) pip install ply==3.4 --user Am I right?
– Cult 24
Jan 21 at 22:44
Just tested this method on my fully upgraded Ubuntu 16.04 LTS - it results in 4.57 with these steps.
– N0rbert
Jan 22 at 9:41
Just tested this method on my fully upgraded Ubuntu 16.04 LTS - it results in 4.57 with these steps.
– N0rbert
Jan 22 at 9:41
Ok it works! Thanks
– Cult 24
Jan 22 at 17:11
Ok it works! Thanks
– Cult 24
Jan 22 at 17:11
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1111753%2finstall-python-glpk%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It is known bug in Ubuntu 16.04 LTS, see fix in my answer below.
– N0rbert
Jan 21 at 21:24