Skip to content
Snippets Groups Projects
Commit 5c719292 authored by Amir Mohammadi's avatar Amir Mohammadi
Browse files

pip install tensorflow on mac, opencv 3 is available now

parent 0c97952a
No related branches found
No related tags found
1 merge request!38opencv and tensorflow are not available on mac for now
...@@ -29,10 +29,8 @@ else ...@@ -29,10 +29,8 @@ else
fi fi
if [ "$(uname)" == "Linux" ]; then if [ "$(uname)" == "Linux" ]; then
OPENCV="opencv=3"
TENSORFLOW=tensorflow TENSORFLOW=tensorflow
else else
OPENCV=
TENSORFLOW= TENSORFLOW=
fi fi
...@@ -69,7 +67,7 @@ ${CONDA} create --yes -n ${NAME} \ ...@@ -69,7 +67,7 @@ ${CONDA} create --yes -n ${NAME} \
numexpr=2.6.1 \ numexpr=2.6.1 \
numpy=1.11.1 \ numpy=1.11.1 \
openblas=0.2.19 \ openblas=0.2.19 \
${OPENCV} \ opencv=3 \
pillow=3.3.1 \ pillow=3.3.1 \
pip=8.1.2 \ pip=8.1.2 \
pkg-config \ pkg-config \
...@@ -88,6 +86,13 @@ ${CONDA} create --yes -n ${NAME} \ ...@@ -88,6 +86,13 @@ ${CONDA} create --yes -n ${NAME} \
echo "[>>] Pip-installing extra dependencies in environment ${NAME} for ${PYTHON_VERSION}..." echo "[>>] Pip-installing extra dependencies in environment ${NAME} for ${PYTHON_VERSION}..."
source ${BASEDIR}/bin/activate ${NAME} source ${BASEDIR}/bin/activate ${NAME}
# pip install tensorflow in mac
if [ "$(uname)" == "Darwin" ]; then
pip install tensorflow
# test tensorflow
python -c "import tensorflow"
fi
# Cyvlfeat requires special instructions # Cyvlfeat requires special instructions
cyvlfeat=git+https://github.com/menpo/cyvlfeat@v0.4.5 cyvlfeat=git+https://github.com/menpo/cyvlfeat@v0.4.5
if [ "$(uname)" == "Linux" ]; then if [ "$(uname)" == "Linux" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment