Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install GCC using anaconda

Tags:

This is output of the command conda install gcc:

    Solving environment: failed  PackagesNotFoundError: The following packages are not available from current channels:    - gcc-6 
like image 217
Amat Avatar asked Nov 22 '18 07:11

Amat


People also ask

Can I run C program in Anaconda?

The solution is very simple, you just need to download the folder from the repository, then put it into the folder where your jupyter-c-kernel is installed. For example, I am using anaconda, thus put it into /home/username/anaconda3/lib/python3. 6/site-packages/ . Then launch jupyter notebook , enjoy!


2 Answers

I'm not sure how exactly the packages relate, but I needed to install the gcc package to resolve some sort of load error. Given that gcc didn't produce any results, I ran a quick

$ conda search gcc 

Which yielded, among other things, gcc_linux-64. After

$ conda install gcc_linux-64 

My issue went away, despite the fact that which gcc still pointed to the system install 🤷‍♂️

like image 195
Christian Reall-Fluharty Avatar answered Nov 15 '22 20:11

Christian Reall-Fluharty


I had to install two conda packages to fix this issue:

$ conda install gcc_linux-64 $ conda install gxx_linux-64 
like image 20
Doug Blank Avatar answered Nov 15 '22 21:11

Doug Blank