LXML 3.3 with Python 3.3 on windows 7 32-bit

2019-06-14 15:56发布

I am having major issues with this install. Please provide a detailed, step-by-step guide.

1条回答
甜甜的少女心
2楼-- · 2019-06-14 16:08

These instructions are for Windows7 or Windows8 with Python3.3.

However, they should work for various versions as the releases of python and other respective prerequisites change/evolve:

  1. Install Python3.3:
    1. Download the last release of Python3.3 (currently 3.3.5) from the downloads page HERE
      • Direct link for Win32 MSI installer -> HERE
    2. Simply run the MSI to install python. It will register itself in the registry, and appear in Add/REmove Programs.
    3. NOTE: my instructions that follow assume that you choose to install python to the default path of C:\python33\ when asked during the Python Installation Wizard
  2. Add the C:\python33\ and C:\python33\scripts folders to the system path by adding those directories to the PATH environment variable from the Control Panel > System > Advanced System Settings link (Advanced Tab) > Environmental Variables (Button).
  3. Install OpenSSL:
    1. Download Win32 OpenSSL page from HERE for your version of Windows and PC architecture
    2. Download Visual C++ 2008 redistributables for your version of Windows and PC architecture
    3. Download OpenSSL for your version of Windows and architecture (the regular version, not the light one)
    4. Add the c:\openssl-win32\bin (or similar) directory to your PATH, the same way you added C:\python33 and C:\python33\scripts above.
  4. Install Setuptools (get-pip.py should install Setuptools for you), but, just in case...
    1. Download ez_setup.py HERE and save it in C:\python33\scripts
    2. Run C:\python33\scripts> python ez_setup.py
  5. Install PIP
    1. Download get-pip.py from HERE and save it in C:\python33\scripts
    2. Run C:\python33\scripts> python get-pip.py
  6. Install LXML
    1. Download LXML 3.3.3 from HERE for your version of Windows and PC architecture
    2. Run the EXE file
查看更多
登录 后发表回答