为Python安装CPLEX 12.6时出错 [英] Error while installing CPLEX 12.6 for Python

查看:143
本文介绍了为Python安装CPLEX 12.6时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从ILOG目录中现有的setup.py文件中安装CPLEX for python。
我正在Windows 8 32bit和python 2.7上工作。我正在使用以下命令进行安装:

I am trying to install CPLEX for python from the setup.py file existing in ILOG directory. I am working on windows 8 32bit and python 2.7. I am using this command for installing:

python setup.py install

但是我收到此错误,

error: could not create 'build': access is denied. 

是否由于许可?我怎样才能解决这个问题?
谢谢

Is it due to the permission? How can I fix this? thanks

推荐答案

我对CPLEX一无所知,但Windows8中的进程通常无法获得对某些目录的写访问权限。

I have no idea about CPLEX but processes in windows8 usually don't get write access to certain directories.

您可以尝试以管理员身份启动的cmd中调用 python setup.py install,例如:Windows键,搜索 cmd,右键单击, 以管理员身份运行 ...

You could try to make your call "python setup.py install" in a cmd started as adminstrator, for example: windows key, search "cmd", right click, "run as adminstrator" ...

这篇关于为Python安装CPLEX 12.6时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆