运行setup.py安装pycrypto时出现“'chmod'不是内部或外部命令”错误
我这边有 Python 2.7,并且已经安装了 pycrypto 2.6.1。环境是 Windows 8,64位。
我在用 pip 安装需求的时候(也就是运行 pip install -r file_with_requirements),遇到了以下错误。
Installing collected packages: pycrypto
Found existing installation: pycrypto 2.6
Uninstalling pycrypto:
Successfully uninstalled pycrypto
Running setup.py install for pycrypto
'chmod' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
我试过用普通用户和管理员权限来安装。
2 个回答
0
你可以从下面的链接下载并安装Cygwin,具体步骤可以参考这个网站:http://cygwin.com/
0
你需要在MinGW下安装msys包。
然后在你的PATH环境变量中添加以下内容。
C:\MinGW\bin
C:\MinGW\msys\1.0\bin
[这里是你可以找到chmod可执行文件的地方]
接着,从普通的Windows命令提示符运行你的命令。