使用Anaconda安装Tweepy失败求助(Python2.7、Windows10环境)
Hey there, let's work through this Tweepy install issue you're hitting. The core problem here is that Python 2.7 reached end-of-life in 2020, and most modern package repositories (including conda-forge) no longer maintain builds for it. Even after cleaning your conda packages, the latest Tweepy versions don't support Python 2.7, which is why your install keeps failing.
Here are step-by-step fixes to get Tweepy working:
1. Install the Last Python 2.7-Compatible Tweepy Version
Tweepy 3.10.0 is the final release that supports Python 2.7. Try installing this specific version via conda first:
conda install -c conda-forge tweepy=3.10.0
2. Fall Back to Pip if Conda Can't Find the Package
If conda still throws errors (since conda-forge may have removed the old build), use pip instead—pip still hosts the Python 2.7 compatible wheels for Tweepy 3.10.0:
- First, activate your conda environment (skip this if you're using the base environment):
activate your_environment_name - Then install the targeted Tweepy version:
pip install tweepy==3.10.0
3. Troubleshoot Pip Issues (If They Arise)
If pip throws errors during installation, you may need to upgrade pip to the last version that supports Python 2.7:
pip install --upgrade pip==20.3.4
Quick Pre-Check
Make sure conda-forge is added to your conda channels (it's required for the first method):
conda config --show channels
If you don't see conda-forge in the list, add it with:
conda config --add channels conda-forge
内容的提问来源于stack exchange,提问作者Rapha

