-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during installation of BanditPAM - Unsupported compiler -- at least C++11 support is needed! #150
Comments
Hi @sterlingalic , thank you for the bug report! A few questions:
At first glance, it looks like your While not best practice, and you will want to make sure these libraries won't break things, installing the following libraries with this command may help:
|
Thanks for the quick response! Running on: Mac OS X pip version: pip 21.3.1 from /Users/sterlingalic/Desktop/cs131new/CS131_release/fall_2021/.env/lib/python3.8/site-packages/pip (python 3.8) gcc version: Python REPL output: >>> python3 Looks like neither of my CC or CXX variables are set and that my clang version is >11 outside of Python but not when it's used in Python. Should I manually set them to something or install some separate kind of compiler for Python? |
This is interesting: it looks like your If you (It does look like you're using Anaconda CPython compiled with On Mac OS X, the |
Oh yes, I should've mentioned that I originally tried running this from a virtual environment, but it also wasn't working on my machine either. I ran pip version: gcc version: Python REPL output: >>> python3 |
Just to confirm: your output from this was inside the virtual environment, whereas your output from this is from your system I'm a bit confused because in the latter, it doesn't look like you're using Anaconda python? And in the former, it looks like you were using Anaconda python but inside a virtualenv? Could you try creating a new Anaconda environment, activating it, ensuring your |
Can you run I faced a similar issue. On inspecting I found out that while checking for flags Please capture complete logs for To install I simply installed |
What do you mean by the "logs" and how do I access them (or if you have any links to any tutorials on how to access them)? Attached a file of the installation std out and std error below. |
I found this in the attached logs and when you install LLVM there will be a binary installed at this exact location. Do let us know if installing LLVM solved it for you? |
That did the trick! Thanks Deepak and Mo! |
Great! I've added these instructions to the MacOS installation guide. Thanks for the help, @deepaks2112 ! |
I ran the command
pip3 install banditpam
, but ran into the following error:File "/private/var/folders/k2/_w3zmb555fj_k1x7mtg_q6400000gn/T/pip-install-is81nqkv/banditpam_04dfedfe2ee2481a932e35a91a31d0fe/setup.py", line 239, in build_extensions opts.append(cpp_flag(self.compiler)) File "/private/var/folders/k2/_w3zmb555fj_k1x7mtg_q6400000gn/T/pip-install-is81nqkv/banditpam_04dfedfe2ee2481a932e35a91a31d0fe/setup.py", line 88, in cpp_flag raise RuntimeError("Unsupported compiler -- at least C++11 support is needed!") RuntimeError: Unsupported compiler -- at least C++11 support is needed!
Any thoughts on how to proceed? Tried following some of the suggestions from here but with no luck.
The text was updated successfully, but these errors were encountered: