Python Forum
Cant install gtts module Python 3.4 [SOLVED]
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant install gtts module Python 3.4 [SOLVED]
#6
I think it's strange that /usr/local/lib/python3.4/dist-packages is not already in sys.path. Check
Output:
/usr/bin/python3.4 -c "import sys; print(sys.path)"
If it is not in this list, you could edit /usr/lib/python3.4/sitecustomize.py (as administrator) and add these lines
import site
site.addsitedir('/usr/local/lib/python3.4/dist-packages')
site.addsitedir('/usr/local/lib/python3.4/site-packages')
If you don't want to edit this file, you can run in a terminal
Output:
/usr/bin/python3.4 -c "import site; print(site.getusersitepackages())"
this gives you the name of a directory under your home folder. In this directory, you can create a file named usercustomize.py containing the above three lines.
Reply


Messages In This Thread
RE: Cant install gtts module Python 3.4 - by Gribouillis - Jan-04-2019, 06:51 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020