Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/359.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
试图安装python库关闭,获取gperf错误_Python_Windows_Gperf - Fatal编程技术网

试图安装python库关闭,获取gperf错误

试图安装python库关闭,获取gperf错误,python,windows,gperf,Python,Windows,Gperf,您的系统上是否安装了python模块gperf.py?我指的是这个: 检查的一种方法: c:\python27\scripts\gperf.exe 注意:此示例在OS X上。请使用适当的Windows命令行工具 (gperf)macbook:gperf joeyoung$ python >>> import gperf >>> print gperf.__file__ /Users/joeyoung/.virtualenvs/gperf/lib/pytho

您的系统上是否安装了python模块
gperf.py
?我指的是这个:

检查的一种方法:

c:\python27\scripts\gperf.exe
注意:此示例在OS X上。请使用适当的Windows命令行工具

(gperf)macbook:gperf joeyoung$ python

>>> import gperf
>>> print gperf.__file__
/Users/joeyoung/.virtualenvs/gperf/lib/python2.7/site-packages/gperf/__init__.pyc
>>> print gperf.__path__
['/Users/joeyoung/.virtualenvs/gperf/lib/python2.7/site-packages/gperf']
我猜存放
gperf.py
的文件夹在您的路径中,它将被执行,而不是
gperf.exe
。 您甚至可以在gperf.py的使用说明中看到拼写错误的
output

资料来源:

如果您的系统上有pip,您可以尝试卸载
gperf.py
,如下所示:

Usage: gperf.py [options]

Options:
  -h, --help            show this help message and exit
  -i INPUT_FILE, --input=INPUT_FILE
  -o OUTPUT_DIR, --ouput=OUTPUT_DIR
  --csv
  --stat
  --minor
  --height=HEIGHT
  --width=WIDTH
如果幸运的话,Snown的
setup.py
将在
路径上找到您的
gperf.exe
,并将其与
gperf.py
一起使用

编辑:对于评论中提到的错误,请


然后再试一次。

卸载后,it表示找不到任何gperf副本,因此显然使用了正确的副本。另外,在最初的帖子中,它只是说gperf[options]而不是gperf.py[options],现在您可以安装适用于windows的gperf:确保gperf位于您的路径上,以便setup.py可以找到它。谢谢,这样做了,通过了一个错误,但是C++中出现了一个新的代码:<代码>…\VisualC++,用于Python \ \\/End6\/Cn/Ong/W/3/G3/DN/DEXG-ISRC-IHTML- IC:\python 27 \PC/TCSNUDUN。C/FuBudie\TEM.WON-AMD64-2.7\Posiv\SNUDWON.Obj.SNUDWON.C C:\\用户\NICK\DeB\\PROG\Python \SNUDWOR\SRC\Buffel.H(23):致命错误C1083:无法打开包含文件:'tdit.h ':没有这样的文件或目录错误:命令“c\\\\\\\\\\\\\\\\\\\\\\\\\\ \ \ \ \ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\C++,微软,\'\\\\\\\dx\\bin \\\AMD64 \ C.exe '],退出状态2失败.
(gperf)macbook:gperf joeyoung$ cd /Users/joeyoung/.virtualenvs/gperf/lib/python2.7/site-packages/gperf
(gperf)macbook:gperf joeyoung$ ls -al
total 40
drwxr-xr-x   6 joeyoung  staff   204 Aug 19 04:14 .
drwxr-xr-x  14 joeyoung  staff   476 Aug 19 04:14 ..
-rw-r--r--   1 joeyoung  staff     0 Aug 19 04:14 __init__.py
-rw-r--r--   1 joeyoung  staff   184 Aug 19 04:14 __init__.pyc
-rw-r--r--   1 joeyoung  staff  7928 Aug 19 04:14 gperf.py
-rw-r--r--   1 joeyoung  staff  7656 Aug 19 04:14 gperf.pyc
Usage: gperf.py [options]

Options:
  -h, --help            show this help message and exit
  -i INPUT_FILE, --input=INPUT_FILE
  -o OUTPUT_DIR, --ouput=OUTPUT_DIR
  --csv
  --stat
  --minor
  --height=HEIGHT
  --width=WIDTH
pip uninstall gperf
C:\\Users\\Nick\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\include\\stdint.h