安装Python模块时GCC权限被拒绝
我正在尝试安装这个模块 http://pypi.python.org/pypi/winrandom/1.1。我先把压缩文件解压,然后用这个命令来安装:
python setup.py install
但是我得到了这样的输出:
running install
running build
running build_ext
building 'winrandom' extension
c:\cygwin\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include
-IC:\Python27\PC -c src/winrandom.c -o build\temp.win32-2.7\Release\src\winrandom.o
error: command 'gcc' failed: Permission denied¨
我也试过用 easy_install 来安装,但也遇到了同样的错误。
输出中提到的 Python 文件夹是只读的,我怀疑这就是问题所在,但我无法更改这个只读属性。
补充:我还尝试以管理员身份运行。