Skip to content

Commit

Permalink
install the right python package version (#326)
Browse files Browse the repository at this point in the history
For multiple installation of paddle, there might be multiple versions of python package at opt/paddle/share/wheels/. We should install the right version.
Ideally, we should remove the wrong versions when install. But it's not easy to do this with cmake.

Change-Id: Ida8a8d60643ad9e42cf1c85776de9122d5ba1392
  • Loading branch information
emailweixu authored and reyoung committed Nov 3, 2016
1 parent d412a5e commit 9f9b4af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/scripts/submit_local.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ EOF
if [ $? -eq 1 ]; then # Older version installed, or not installed at all
echo "First time run paddle, need to install some python dependencies."
BASEDIR=$(dirname "$0")
pip install ${BASEDIR}/../opt/paddle/share/wheels/*.whl
pip install ${BASEDIR}/../opt/paddle/share/wheels/*-@PADDLE_VERSION@-*.whl
if [ $? -ne 0 ]; then
echo "pip install wheels failed. "
echo "Please use 'sudo paddle' at the first time you use PaddlePaddle"
Expand Down

0 comments on commit 9f9b4af

Please sign in to comment.