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

Solution for package compatibility errors #10

Open
tifa365 opened this issue Sep 26, 2020 · 2 comments
Open

Solution for package compatibility errors #10

tifa365 opened this issue Sep 26, 2020 · 2 comments

Comments

@tifa365
Copy link

tifa365 commented Sep 26, 2020

If you run into package compatibility errors, try the following:

  1. Create a virtuel environment with conda or python, use version 3.5
conda create --name py35 python=3.5.
conda activate py35
  1. Install chicksexer
pip install chicksexer
  1. Conda/Python will likely install the newest package versions because of the requirements.txt, so you have to reinstall the necessary packages
pip install regex==2017.4.29
pip install docopt==.6.2
pip install scipy==0.18.1
  1. Use pip list to make sure all necessary packages are installed with the following version numbers:
numpy==1.12.1
tensorflow==1.0.1
scikit-learn==0.18.1
scipy==0.18.1
docopt==0.6.2
regex==2017.4.29
  1. Start Python with the Python command from the shell, now you should be able to import chicksexer:
from chicksexer import predict_gender
predict_gender('John Smith')
@chaojian-zhang
Copy link

Is there any way to deal with it if after pip install checksexer I got TensorFlow Version: 2.4.1, with Python 3.8?

Currently, I am encountering this error:

ModuleNotFoundError: No module named 'tensorflow.contrib'

@tifa365
Copy link
Author

tifa365 commented Mar 10, 2021

Did you try using Python 3.5?

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