How to install pywin32 in virtualenv with python 2.7 64 bit?

后端 未结 4 1492
余生分开走
余生分开走 2021-02-20 04:52

I wonder right way to install on virtualenv with 64 bit python 2.7 pywin32 module (Operating system is Windows 7 64 bit).
I\'ve found exe installer on Sourceforge.

4条回答
  •  难免孤独
    2021-02-20 05:45

    Unfortunately, support for 64bit Python on Windows is relatively poor than the 32bit version. It's not the fault of the Python community but the relative difficulty of getting free compilers for 64bit Windows.

    If you installed the 64bit version of Python, you also need to use packages built for 64bit. Some simple Python packages (those written in pure Python and not requiring external/C libraries) will install as normal using setuptools/easy_install/virtualenv. A lot of 64bit packages however might break when installed in virtualenv and will require an installer.

    Fortunately, you can find 64bit pre-compiled installers for popular packages here. Try the package there first. The installer will target the global/main installation of Python and thus is not isolated by virtualenv. Note however that these are unofficial builds: provided for free for your convenience so please don't sue the provider if things fail (or expect for help).

提交回复
热议问题