"D:Program不被识别为内部或外部命令。pyspars"

2024-05-08 04:34:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在尝试安装csc pysparse,但出现以下错误:

'D:\Program' is not recognized as an internal or external command, operable 
 program or batch file.

error: Command "gcc -O2 -Wall -Wstrict-prototypes -DLENFUNC_OK=1 -
DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x0900 -Ipysparse\sparse\src 
-I"D:\Program Files\Anaconda\lib\site-packages\numpy\core\include" 
-I"D:\Program Files\Anaconda\lib\site-packages\numpy\core\include" 
-ID:\Pyt\csc-pysparse-1.1.1.4\csc-pysparse-1.1.1.4\pysparse\include 
-I"D:\Program Files\Anaconda\include" 
-I"D:\Program Files\Anaconda\PC" -c pysparse\sparse\src\spmatrixmodule.c 
-o build\temp.win32-2.7\Release\pysparse\sparse\src\spmatrixmodule.o" 
failed with exit status 1

我明白这是因为“D:\Program Files\”必须用引号括起来,但是我能不能弄清楚我要修复的是哪个文件?有什么我能做的吗?你知道吗

我以前试过使用pip install,结果是一样的。我当前使用的命令是来自csc pysparse目录的python setup.py install。你知道吗


Tags: orcoresrcnumpyincludelibpackagessite