I have a program to be compiled inside conda virtualenv where I need to have gcc.
However, when a python 2.7 being installed, it needs gcc to compile. So is it possible to use this gcc version to compile my program? or do I have to install gcc inside the env itself?
I have found out that ubuntu
actually downloads pre-compile binaries to compile python.
According to Bodhi94: "Python shows you the compiler and version that was used to build python, it doesn't use this at runtime. The version of GCC used to build python doesn't matter itself."
Furthermore, gcc has already been installed in the system itself. I do not want the program to use this system gcc when it's compiling but to use the gcc version which is inside the enviornment. How do I actually test this? Thanks in advance!
(yourenvname) ~$python
Python 2.7.16 |Anaconda, Inc.| (default, Mar 14 2019, 21:00:58)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.