You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Windows10的Python3.6中安装并正常使用lpsolve55与openturns?

Hey there, I’ve wrestled with getting these exact packages running on Python 3.6/Windows 10 before—older Python versions can be tricky since many official builds drop support over time. Let’s walk through solutions for each package one by one:

解决 lpsolve55 安装与运行问题

First, the standard pip install lpsolve55 often fails for Python 3.6 because there’s no official wheel maintained anymore. Here’s what worked for me:

  • Uninstall any broken existing versions first:
    pip uninstall -y lpsolve55
    
  • Grab a compatible third-party wheel: Look for a pre-compiled .whl file made specifically for Python 3.6 and your Windows architecture (64-bit is almost certainly what you’re using). Make sure the filename matches something like lpsolve55-<version>-cp36-cp36m-win_amd64.whl.
  • Install the wheel directly: Navigate to the folder where you saved the file, then run:
    pip install lpsolve55-xxx-cp36-cp36m-win_amd64.whl
    
  • Fix DLL missing errors (common issue): If you get a "lpsolve55.dll not found" error after installation, copy the lpsolve55.dll file (usually included in the wheel’s unpacked files) into your Python 3.6’s Lib\site-packages\lpsolve55 directory. Alternatively, add that directory to your system’s PATH environment variable. Also, make sure you have the Microsoft Visual C++ Redistributable for Visual Studio 2015 installed—Python 3.6 relies on this runtime.
解决 openturns 安装与运行问题

openturns dropped official support for Python 3.6 a while back, so we need to use alternative installation methods:

  • Conda is your best bet here: Conda-Forge maintains older package versions for legacy Python releases.
    1. If you don’t have a Python 3.6 conda environment yet, create one:
      conda create -n py36_openturns python=3.6
      conda activate py36_openturns
      
    2. Install openturns from conda-forge:
      conda install -c conda-forge openturns
      
  • If conda isn’t an option, use a third-party wheel: Find a .whl file built for Python 3.6/Windows, then install it with pip just like we did for lpsolve55.
  • Troubleshoot runtime errors: openturns often requires newer VC++ runtimes—install the Microsoft Visual C++ Redistributable for Visual Studio 2017 or later if you see missing DLL errors. Also, double-check that your Python 3.6 is a 64-bit build; 32-bit builds rarely work with modern scientific packages.
通用排查小贴士
  • Upgrade pip to the last version compatible with Python 3.6: Newer pip versions drop support for 3.6, so install version 21.0.1 (the final release that works with 3.6):
    pip install --upgrade pip==21.0.1
    
  • Verify your Python environment: Run python --version and python -c "import platform; print(platform.architecture())" to confirm you’re on Python 3.6 64-bit—mismatched architectures are a common culprit for failed installs.

内容的提问来源于stack exchange,提问作者Elena Popa

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 04:25:12