当使用pip install cplex安装Python时,我会得到以下错误:
Could not find a version that satisfies the requirement cplex (from versions: none)
ERROR: No matching distribution found for cplex
我的python和pip安装是最新的。我刚刚安装了CPLEX优化器。我应该从哪里开始决定这个问题呢?
我是Linux新手,但我在安装一个没有windows二进制文件的R包时遇到了很多困难。我宁愿不安装一个完整的Linux安装和移动一切。根据的判断,这似乎是可能的。我想从下面的文档中选择任何一个选项。我试过:
C:\Users\zejas>bash
zejas@DESKTOP-JASON:/mnt/c/Users/zejas$ R CMD INSTALL cplexAPI_1.3.2.tar.gz
The program 'R' is currently not installed. You can install it by typing:
sudo apt-get in
在使用Glpk解决抽象模型之前,由于Glpk可能比Cplex慢,所以我转向Cplex。但是,在安装了Cplex并将其用作解决程序之后,我发现Cplex无法打开日志文件Pyomo:
CPLEX> CPLEX Error 1422: Could not open file 'C:\Users\???\AppData\Local\Temp\tmp6u0194_4.cplex.log' for writing.
Could not open logfile -- please try another name.
Name of new logfile ('*'
我希望安装cplexAPI R包,以便与最新版本的IBM解决程序( ILOG优化器12.10.0)进行交互,但我始终得到以下错误:
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'cplexAPI' ...
** package 'cplexAPI' successfully unpacked
我使用的是macOS和JuliaPro v1.0.1.1。我已经从IBM安装了CPLEX,并将其添加到路径中。接下来,我运行
(JuliaPro_v1.0.1.1) pkg> add CPLEX
但这给了我
ERROR: The following package names could not be resolved:
* CPLEX (not found in project, manifest or registry)
Please specify by known `name=uuid`.
当我跑的时候
echo $LD_LIBRARY_PATH
我得到了
/Applicati
我试图在高性能计算机(RedHatEntrepriseServer)上运行python脚本。管理员已经安装了CPLEX模块,但在python中导入cplex模块时仍然存在此错误。
ImportError: No module named 'cplex'
我知道这是常见的错误,我发现可能需要用cplex主目录更新PYTHONPATH变量,但是找不到这个主目录。有谁有解决这个问题的想法或建议吗?!
非常感谢!
我正试图在我的M1上运行cplex。我希望我能让它在Python3.8/9上运行,因为我还需要运行tensorflow (我通过M1的miniconda运行它)。当我尝试在miniconda python环境中通过pip安装它时,我得到了以下错误: ERROR: Could not find a version that satisfies the requirement cplex (from versions: none)
ERROR: No matching distribution found for cplex
我一直试图使用cplex和pyomo来解决某些LP问题,但是在运行时我发现了以下错误消息
[ 0.00] Setting up Pyomo environment
[ 0.00] Applying Pyomo preprocessing actions
[ 0.00] Creating model
[ 0.02] Applying solver
The license for this version of CPLEX has expired.
ERROR: "[base]/site-packages/pyomo/opt/base/solvers.py"