You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
davidam@debian:~/git/python-examples$ pip install sexmachine
Requirement already satisfied: sexmachine in /usr/local/lib/python2.7/dist-packages
davidam@debian:~/git/python-examples$ python sexmachine.py
Traceback (most recent call last):
File "sexmachine.py", line 1, in
import sexmachine.detector as gender
File "/home/davidam/git/python-examples/sexmachine.py", line 1, in
import sexmachine.detector as gender
ImportError: No module named detector
The source code is:
$ cat sexmachine.py
import sexmachine.detector as gender
d = gender.Detector()
if (d.get_gender(u"Bob") == 'male'):
print("Python")
elif (d.get_gender(u"Sally") == 'female'):
print("Shell")
else:
print("PHP")
Regards.
The text was updated successfully, but these errors were encountered:
I've the next problem:
davidam@debian:~/git/python-examples$ pip install sexmachine
Requirement already satisfied: sexmachine in /usr/local/lib/python2.7/dist-packages
davidam@debian:~/git/python-examples$ python sexmachine.py
Traceback (most recent call last):
File "sexmachine.py", line 1, in
import sexmachine.detector as gender
File "/home/davidam/git/python-examples/sexmachine.py", line 1, in
import sexmachine.detector as gender
ImportError: No module named detector
The source code is:
$ cat sexmachine.py
import sexmachine.detector as gender
d = gender.Detector()
if (d.get_gender(u"Bob") == 'male'):
print("Python")
elif (d.get_gender(u"Sally") == 'female'):
print("Shell")
else:
print("PHP")
Regards.
The text was updated successfully, but these errors were encountered: