Skip to content

Commit

Permalink
Update install_software.sh
Browse files Browse the repository at this point in the history
echo "pip3 install --upgrade pip" would not upgrade pip, removing echo and quotations
  • Loading branch information
tomas-fer authored Aug 22, 2018
1 parent d1133af commit c1a1099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install_software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ if [[ $distribution =~ "Debian" ]]; then
echo -e "Installing 'pip2'"
$installer install -y python-pip &> pip_install.log
fi
echo "pip2 install --upgrade pip" &>> pip_install.log
pip2 install --upgrade pip &>> pip_install.log
else
if ! [ -x "$(command -v pip2.7)" ]; then
echo -e "Installing 'pip'"
Expand Down Expand Up @@ -122,7 +122,7 @@ fi
if [[ $distribution =~ "Fedora" ]]; then
python3 -m pip install --upgrade pip &>> pip3_install.log
else
echo "pip3 install --upgrade pip" &>> pip3_install.log
pip3 install --upgrade pip &>> pip3_install.log
fi

#Biopython
Expand Down

3 comments on commit c1a1099

@jdhayes
Copy link
Contributor

@jdhayes jdhayes commented on c1a1099 Aug 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installs via pip seems to be failing due to the fact that the pip upgrade installs over the system /usr/bin/pip.
Something like this:
pypa/pip#5221
My install log is attached.
install.log

@tomas-fer
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this seems to be an issue only on Debian/Ubuntu. However, after a new shell is invoked (e.g., 'exec bash'), pip seems to be working...

@tomas-fer
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent problems with PIP on Debian/Ubuntu, pip upgrade lines are commented now. Now the install should run smoothly (tested on Ubuntu 18.04).

Please sign in to comment.