0

This is my first time using the make install command. The program I'm trying to install uses python 2.7, and my environment normally has python 3.6. I'm using Linux.

I thought using conda create -n oldpython python=2.7, followed by source activate oldpython, then make install would allow the program to install. However, after using make install I get the error

SyntaxError: Missing parentheses in call to 'print' make: *** [check_dep] Error 1

Since it's missing parentheses in call to 'print', maybe I'm not loading up python 2.7 like I thought?

Liquidity
  • 625
  • 6
  • 24
  • Print in python2 doesn't use parenthesis for prints, that's a python3 feature, what program are you trying to install by the way? – GKE Jan 30 '19 at 00:23
  • It's a little program a colleague created for our company. I know python2 doesn't use parentheses for print, which is why I know the `make install` isn't working with python2, it's working with the default python3. I know I have python3 installed because when I run `python` it gives me the version as 3.6 – Liquidity Jan 30 '19 at 00:25
  • What OS are you on? – GKE Jan 30 '19 at 00:35
  • Linux, edited to include that. – Liquidity Jan 30 '19 at 00:37
  • 2
    Ok so if conda is giving you problems, first try and use the [virtualenv](https://stackoverflow.com/questions/7237415/python-2-instead-of-python-3-as-the-temporary-default-python) if that doesn't work, then we'll try do a symlink. – GKE Jan 30 '19 at 00:42
  • 2
    That works! Thanks! – Liquidity Jan 30 '19 at 00:51

0 Answers0