有64位版本的pymongo吗?

发布于 2024-09-30 23:35:33 字数 3236 浏览 6 评论 0原文

当我使用 easy_install 和 64 位 python 安装 pymongo 时,发生异常。但它适用于 32 位 python。好像只支持32位python。

所以我想知道64位pymongo是否存在?

谢谢。

---更多细节---

    running install
running bdist_egg
running egg_info
writing pymongo.egg-info\PKG-INFO
writing top-level names to pymongo.egg-info\top_level.txt
writing dependency_links to pymongo.egg-info\dependency_links.txt
reading manifest file 'pymongo.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h' under directory 'pymongo'
writing manifest file 'pymongo.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'bson._cbson' extension
Traceback (most recent call last):
  File "F:\mongodb-mongo-python-driver-7269ec4\setup.py", line 184, in <module>
    "doc": doc})
  File "C:\Python26\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "build\bdist.win-amd64\egg\setuptools\command\install.py", line 76, in ru
n
  File "build\bdist.win-amd64\egg\setuptools\command\install.py", line 96, in do
_egg_install
  File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "build\bdist.win-amd64\egg\setuptools\command\bdist_egg.py", line 175, in
 run
  File "build\bdist.win-amd64\egg\setuptools\command\bdist_egg.py", line 161, in
 call_command
  File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "build\bdist.win-amd64\egg\setuptools\command\install_lib.py", line 20, i
n run
  File "C:\Python26\lib\distutils\command\install_lib.py", line 112, in build
    self.run_command('build_ext')
  File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "F:\mongodb-mongo-python-driver-7269ec4\setup.py", line 108, in run
    build_ext.run(self)
  File "C:\Python26\lib\distutils\command\build_ext.py", line 345, in run
    self.build_extensions()
  File "C:\Python26\lib\distutils\command\build_ext.py", line 471, in build_exte
nsions
    self.build_extension(ext)
  File "F:\mongodb-mongo-python-driver-7269ec4\setup.py", line 118, in build_ext
ension
    build_ext.build_extension(self, ext)
  File "C:\Python26\lib\distutils\command\build_ext.py", line 536, in build_exte
nsion
    depends=ext.depends)
  File "C:\Python26\lib\distutils\msvc9compiler.py", line 448, in compile
    self.initialize()
  File "C:\Python26\lib\distutils\msvc9compiler.py", line 358, in initialize
    vc_env = query_vcvarsall(VERSION, plat_spec)
  File "C:\Python26\lib\distutils\msvc9compiler.py", line 274, in query_vcvarsal
l
    raise ValueError(str(list(result.keys())))
ValueError: [u'path']

When i install pymongo using easy_install with 64-bit python, exception happens. But it works with 32-bit python. It seems only 32-bit python is supported.

So i want to know whether 64-bit pymongo exists?

Thanks.

--- more details ---

    running install
running bdist_egg
running egg_info
writing pymongo.egg-info\PKG-INFO
writing top-level names to pymongo.egg-info\top_level.txt
writing dependency_links to pymongo.egg-info\dependency_links.txt
reading manifest file 'pymongo.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h' under directory 'pymongo'
writing manifest file 'pymongo.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'bson._cbson' extension
Traceback (most recent call last):
  File "F:\mongodb-mongo-python-driver-7269ec4\setup.py", line 184, in <module>
    "doc": doc})
  File "C:\Python26\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "build\bdist.win-amd64\egg\setuptools\command\install.py", line 76, in ru
n
  File "build\bdist.win-amd64\egg\setuptools\command\install.py", line 96, in do
_egg_install
  File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "build\bdist.win-amd64\egg\setuptools\command\bdist_egg.py", line 175, in
 run
  File "build\bdist.win-amd64\egg\setuptools\command\bdist_egg.py", line 161, in
 call_command
  File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "build\bdist.win-amd64\egg\setuptools\command\install_lib.py", line 20, i
n run
  File "C:\Python26\lib\distutils\command\install_lib.py", line 112, in build
    self.run_command('build_ext')
  File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "F:\mongodb-mongo-python-driver-7269ec4\setup.py", line 108, in run
    build_ext.run(self)
  File "C:\Python26\lib\distutils\command\build_ext.py", line 345, in run
    self.build_extensions()
  File "C:\Python26\lib\distutils\command\build_ext.py", line 471, in build_exte
nsions
    self.build_extension(ext)
  File "F:\mongodb-mongo-python-driver-7269ec4\setup.py", line 118, in build_ext
ension
    build_ext.build_extension(self, ext)
  File "C:\Python26\lib\distutils\command\build_ext.py", line 536, in build_exte
nsion
    depends=ext.depends)
  File "C:\Python26\lib\distutils\msvc9compiler.py", line 448, in compile
    self.initialize()
  File "C:\Python26\lib\distutils\msvc9compiler.py", line 358, in initialize
    vc_env = query_vcvarsall(VERSION, plat_spec)
  File "C:\Python26\lib\distutils\msvc9compiler.py", line 274, in query_vcvarsal
l
    raise ValueError(str(list(result.keys())))
ValueError: [u'path']

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

宣告ˉ结束 2024-10-07 23:35:33

首先运行 vcvarsall.bat,然后安装 pymongo。

Run vcvarsall.bat first, then install pymongo.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文