问题描述
我正在使用64位Ubuntu 12.04,并且今天开始学习python(我尝试安装盗版的MATLAB但失败了...)我有一个线性编程问题要解决,我想将lp_solve模块用于Python.我尝试了1到2个小时才能找到下载文件并安装该模块.
I am using Ubuntu 12.04 64-bit, and started learning python today.(I tried to install a pirate version of MATLAB but failed...)I have a linear programming problem to solve, and I want to use lp_solve module for Python.I tried for 1~2 hours to find the download file and install the module.
我不确定我是否下载了正确的东西,并且直到现在我都无法安装它.
I am not sure if I downloaded a right thing, and I could not install it until now.
如何安装此软件? http://lpsolve.sourceforge.net/中没有下载链接,它告诉我运行一个命令
How can I install this?There is no download link in http://lpsolve.sourceforge.net/, and it tells me to run a command
python setup.py安装
python setup.py install
但是在任何地方都没有setup.py文件,包括我在某处下载的lpsolve源文件.
but there is no setup.py file in anywhere, including the lpsolve source file I downloaded somewhere.
如果您知道从何处下载和安装它,能否一步一步地教我该怎么做?
If you know where to download it, and install it, could you teach me how to do them, step by step?
我不确定我的Python版本.
I am not sure about the version of my Python.
谢谢.
推荐答案
下载链接为:
- http://sourceforge.net/projects/lpsolve/或
- http://sourceforge.net/projects/lpsolve/files/lpsolve/进入文件"标签.
- http://sourceforge.net/projects/lpsolve/, or
- http://sourceforge.net/projects/lpsolve/files/lpsolve/ for the files tab.
安装后,可能需要调整PYTHONPATH
.
Once you have it installed, you may need to tweak your PYTHONPATH
.
您可能还想研究cvexp
:
这篇关于如何在Linux Ubuntu 10.04上为Python安装lpsolve模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!