【问题标题】:Python 3.4 Installing psutil on Windows 7 x64Python 3.4 在 Windows 7 x64 上安装 psutil
【发布时间】:2014-05-31 00:16:34
【问题描述】:

我正在尝试从源代码 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

你能帮帮我吗?提前致谢

【问题讨论】:

    标签: python psutil


    【解决方案1】:

    vcvarsall.bat 看起来像是 Microsoft Visual Studio 的依赖项。
    见:Python issue:Unable to find vcvarsall.bat

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

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

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

    【讨论】:

    • 问题已解决。首先,我卸载了 x64 python 并安装了 Python x32 版本。之后我从您的链接安装了 psutil 2.1.0 x32,一切正常。谢谢!
    【解决方案2】:

    试试我的经验。我希望它会有所帮助
    我安装了 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. 检查

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-30
      • 2016-09-02
      • 1970-01-01
      相关资源
      最近更新 更多