nateshmbhat / pyttsx3

Offline Text To Speech synthesis for python
Mozilla Public License 2.0
2.15k stars 336 forks source link

Pip can't see newer versions of package #120

Closed J0hnL0cke closed 4 years ago

J0hnL0cke commented 4 years ago

I want to install an old version of pyttsx3 to fix #112. When trying to install the old version, I realized that I was on 2.7, which is an even older version. Here's what happens when I try to install the version I want (2.71)

$ pip install pyttsx3==2.71 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pyttsx3==2.71 Could not find a version that satisfies the requirement pyttsx3==2.71 (from versions: 1.14, 1.15, 2.5, 2.6, 2.7) No matching distribution found for pyttsx3==2.71

Meanwhile, the release history page on PyPI shows up to version 2.88.

$ pip search pyttsx3 shows the latest version:

pyttsx3 (2.88) - Text to Speech (TTS) library for Python 2 and 3. Works without internet connection or delay. Supports multiple TTS engines, including Sapi5, nsss, and espeak. INSTALLED: 2.7 LATEST: 2.88

When I try to upgrade, it remains on 2.7:

$ pip install pyttsx3 --upgrade Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pyttsx3 Installing collected packages: pyttsx3 Successfully installed pyttsx3-2.7

I believe this is the same problem reported here (different repo). The solution given there, installing the package and then upgrading, did not work for me.

J0hnL0cke commented 4 years ago

Ah, I was using pip, not pip3. Switching to pip3 allows me to install the newer versions.