Open ducho opened 2 years ago
Hi there,
I understand you're facing issues while installing SMD on your Mac running Big Sur. Here are some steps you can try to troubleshoot the error:
1. Install Xcode Command Line Tools:
xcode-select --install
2. Reinstall or upgrade libxml2
and libxslt
:
These libraries are dependencies for lxml and might be causing the build failure. Try reinstalling or upgrading them using Homebrew:
brew install libxml2 libxslt
3. Ensure you have the correct Python version:
SMD might have specific Python version requirements. Check the project's documentation or GitHub repository to confirm the supported Python version. If necessary, install the appropriate version using the official Python installer (https://www.python.org/downloads/) or using tools like pyenv
for managing multiple Python versions.
4. Try installing from pre-built wheels:
Instead of building from source, try installing lxml using pre-built wheels:
pip install lxml --no-cache-dir
The --no-cache-dir
flag ensures that pip downloads the latest wheel from the PyPI repository.
5. Check for conflicting installations:
If you have multiple Python environments or conflicting installations of libraries, it could lead to issues. Consider creating a clean virtual environment to isolate the dependencies for SMD:
python3 -m venv venv
source venv/bin/activate
pip install smd
6. Check online resources:
Additional Tips:
pip
commands.By following these steps and referencing online resources, you should be able to resolve the installation issue and successfully install SMD on your Mac.
Hi! I have problem with installation SMD on Mac OSX Big Sur.
ducho@DSs-MacBook-Pro smd % xcode-select -v xcode-select version 2384
ducho@DSs-MacBook-Pro smd % pip -V pip 21.2.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
ERROR: Failed building wheel for lxml Running setup.py clean for lxml Building wheel for pygame (setup.py) ... error ERROR: Command errored out with exit status 1: