我正在尝试安装此模块http://pypi.python.org/pypi/winrandom/1.1.所以我提取zip文件的内容并尝试使用以下命令安装它:
python setup.py install
Run Code Online (Sandbox Code Playgroud)
并收到此输出:
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¨
Run Code Online (Sandbox Code Playgroud)
我也试过easy_install但收到同样的错误.
输出中提到的Python文件夹是只读的,我怀疑它是导致问题的原因,但是我无法更改只读属性.
编辑:也尝试以管理员身份运行
这个问题可能是因为cygwin使用gml和g ++的符号链接,而windows不知道如何处理这个问题.快速测试一下,看看是否如此:
C:\>g++
Access is denied.
C:\>bash
$ ls -l /usr/bin/g++
lrwxrwxrwx 1 nate Domain Users 21 Mar 22 2010 /usr/bin/g++ -> /etc/alternatives/g++
$ g++
g++: no input files
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3077 次 |
最近记录: |