Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Setup and Classify #35

Open
atrlbck opened this issue Dec 18, 2019 · 1 comment
Open

Problem with Setup and Classify #35

atrlbck opened this issue Dec 18, 2019 · 1 comment

Comments

@atrlbck
Copy link

atrlbck commented Dec 18, 2019

Hello,

I am trying to run the setup function:

setup(python_loc = "/anaconda3/bin/python", conda_loc = "auto",
r_reticulate = FALSE)
and get the Error: Error 1 occurred installing packages into conda environment r-reticulate

I then try to run the classify function using the test images:

classify(path_prefix ="/Users/armandotoralbecker/Desktop/MLWIC_examples-9579f70cc1515f65e584c81282bdc15c2d75faf8/images",
data_info = "/Users/armandotoralbecker/Desktop/MLWIC_examples-9579f70cc1515f65e584c81282bdc15c2d75faf8/image_labels.csv",
model_dir = "/Users/armandotoralbecker/Desktop",
python_loc = "/anaconda3/bin/",
save_predictions = "model_predictions.txt"
)

But I get the following error:
Traceback (most recent call last):
File "eval.py", line 13, in
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'

I used the tensorflow function to install it and the other packages as well as installing directly in the terminal

info:
python: /anaconda3/envs/r-reticulate/bin/python
libpython: /anaconda3/envs/r-reticulate/lib/libpython3.6m.dylib[NOT FOUND]
pythonhome: /anaconda3/envs/r-reticulate:/anaconda3/envs/r-reticulate
version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 13:42:17) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]
numpy: /anaconda3/envs/r-reticulate/lib/python3.6/site-packages/numpy
numpy_version: 1.17.4
tensorflow: /anaconda3/envs/r-reticulate/lib/python3.6/site-packages/tensorflow

python versions found:
/anaconda3/envs/r-reticulate/bin/python
/usr/bin/python
/Users/armandotoralbecker/venv/bin/python

Thank you for your help

@mikeyEcology
Copy link
Owner

Tensorflow is not properly installed on your machine. Try running this in the terminal

cd /anaconda3/bin/
pip install tensorflow==1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants