2

我正在尝试从源代码 psutil 2.1.0 安装 Python 3.4。我的操作系统是 Windows 7 x64。我收到错误:

c:\Python34\psutil-2.1.0>python setup.py install --verbose
running install
running bdist_egg
running egg_info
writing top-level names to psutil.egg-info\top_level.txt
writing psutil.egg-info\PKG-INFO
writing dependency_links to psutil.egg-info\dependency_links.txt
reading manifest file 'psutil.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'docs
build'
writing manifest file 'psutil.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib.win32-3.4
creating build\lib.win32-3.4\psutil
copying psutil\_common.py -> build\lib.win32-3.4\psutil
copying psutil\_compat.py -> build\lib.win32-3.4\psutil
copying psutil\_psbsd.py -> build\lib.win32-3.4\psutil
copying psutil\_pslinux.py -> build\lib.win32-3.4\psutil
copying psutil\_psosx.py -> build\lib.win32-3.4\psutil
copying psutil\_psposix.py -> build\lib.win32-3.4\psutil
copying psutil\_pssunos.py -> build\lib.win32-3.4\psutil
copying psutil\_pswindows.py -> build\lib.win32-3.4\psutil
copying psutil\__init__.py -> build\lib.win32-3.4\psutil
running build_ext
building '_psutil_windows' extension
error: Unable to find vcvarsall.bat

你能帮我吗?提前致谢

4

2 回答 2

1

试试我的经验。我希望它对
我安装了 Ptython 3.4 有所帮助。我试图安装“paramiko”模块,但收到一条错误消息(vcvarsall.bat)

所以在那之后我做了以下操作:
1.安装MinGW(参考页面-http: //docs.cython.org/src/tutorial/appendix.html
2.安装pycrypto2.6.1(我在这里找到了-https : //github.com/axper/python3-pycrypto-windows-installer
其他python版本请参考这个页面--www.voidspace.org.uk/python/modules.shtml#pycrypto
3.检查

于 2014-12-12T10:49:48.917 回答
1

vcvarsall.bat看起来像 Microsoft Visual Studio 的依赖项。
请参阅:Python 问题:无法找到 vcvarsall.bat

您可以尝试手动安装它。从这里获取 amd64 py3.4 构建:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#psutil

并安装它。如果同样失败,请使用 7-Zip 打开 .exe 并将包含的文件夹解压缩到您的站点包。

于 2014-04-16T08:56:25.580 回答