如何在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
.whlfile 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 likelpsolve55-<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.dllfile (usually included in the wheel’s unpacked files) into your Python 3.6’sLib\site-packages\lpsolve55directory. Alternatively, add that directory to your system’sPATHenvironment 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.
- 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 - Install openturns from conda-forge:
conda install -c conda-forge openturns
- If you don’t have a Python 3.6 conda environment yet, create one:
- If conda isn’t an option, use a third-party wheel: Find a
.whlfile 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 --versionandpython -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
相关产品推荐
相关产品推荐

