Fail to install using pip install gTTS
See original GitHub issueWhen run:
pip install gTTS
I’m getting the following error:
`usuario@acpNotifica:~$ pip3 install gTTS Collecting gTTS Downloading https://files.pythonhosted.org/packages/77/1e/8e2990a0af8811129869a985abd9a31958125cb2098d93f18ab23f4a59c8/gTTS-2.0.2.tar.gz Running setup.py (path:/tmp/pip-build-1fg_sg05/gTTS/setup.py) egg_info for package gTTS produced metadata for project name unknown. Fix your #egg=gTTS fragments. Building wheels for collected packages: unknown, unknown Running setup.py bdist_wheel for unknown … done Stored in directory: /home/usuario/.cache/pip/wheels/88/47/6e/15f4ba2921f49ca5aed607f8310e063083edabc4a1b1ea42f9 Running setup.py bdist_wheel for unknown … error Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-1fg_sg05/unknown/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” bdist_wheel -d /tmp/tmpyrqfgp1_pip-wheel- --python-tag cp35: Traceback (most recent call last): File “<string>”, line 1, in <module> File “/usr/lib/python3.5/tokenize.py”, line 454, in open buffer = _builtin_open(filename, ‘rb’) FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/pip-build-1fg_sg05/unknown/setup.py’
Failed building wheel for unknown Running setup.py clean for unknown Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-1fg_sg05/unknown/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” clean --all: Traceback (most recent call last): File “<string>”, line 1, in <module> File “/usr/lib/python3.5/tokenize.py”, line 454, in open buffer = _builtin_open(filename, ‘rb’) FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/pip-build-1fg_sg05/unknown/setup.py’
Failed cleaning build dir for unknown Successfully built unknown Failed to build unknown Installing collected packages: unknown Successfully installed unknown You are using pip version 8.1.1, however version 18.1 is available. You should consider upgrading via the ‘pip install --upgrade pip’ command. `
Issue Analytics
- State:
- Created 5 years ago
- Comments:11
Top GitHub Comments
For pip2 try the following workaround after failed install (Ubuntu 16.04):
cd ~/.local/lib/python2.7/site-packages/ mv UNKNOWN-2.0.2.dist-info/ gTTS-2.0.2.dist-info/ pip install --user --force-reinstall --ignore-installed --no-binary :all: gTTS
thank you