-2

I am trying to start work with Python on a new Linux server.

I have installed python3 however when I try to do pip install it throws an error saying pip-install error code as below:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-cerbjz/apache-airflow/ 

When I try pip install --upgrade setuptools it returns Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/site-packages (40.6.3)

When I do which python it returns the below:

alias python='python3'
/usr/bin/python3

When I open the bashrc file its empty though I had entered the above code in there earlier but it's no longer showing this.

How could I modify this such that the interpreter uses python 3 for all processing.

dark horse
  • 447
  • 1
  • 6
  • 17

1 Answers1

0

I suggest using https://bootstrap.pypa.io/get-pip.py and checking @Mulagala's answer here: stackoverflow

I also suggest getting familiar with how to check python and pip commands and their versions, for example

pip -V
pip3 -V  #install it if you do not have it
python --version
python2.7 --version
aless80
  • 3,122
  • 3
  • 34
  • 53