我试图在python中编写代码来获取twitter数据我没有得到错误的twython.但我得到了大熊猫的错误.
我已经使用pip install pandas安装了pandas.但我仍然得到这个错误.请帮忙
F:\>pip install pandas
Collecting pandas
c:\python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py
:90: InsecurePlatformWarning: A true SSLContext object is not available. This pr
events urllib3 from configuring SSL appropriately and may cause certain SSL conn
ections to fail. For more information, see https://urllib3.readthedocs.org/en/la
test/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached pandas-0.17.0-cp27-none-win32.whl
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in c:\pyth
on27\lib\site-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in c:\
python27\lib\site-packages (from pandas)
Collecting numpy>=1.7.0 (from pandas)
Downloading numpy-1.10.1.tar.gz (4.0MB)
100% …Run Code Online (Sandbox Code Playgroud) 我尝试通过执行以下命令为Python 3安装pandas:
sudo pip3 install pandas
Run Code Online (Sandbox Code Playgroud)
结果我得到了这个:
Downloading/unpacking pandas
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pandas
Cleaning up...
No distributions at all found for pandas
Run Code Online (Sandbox Code Playgroud)
也许有趣的是,Python 2的安装工作正常.
sudo pip install pandas
Run Code Online (Sandbox Code Playgroud)
返回以下内容:
Requirement already satisfied (use --upgrade to upgrade): pandas in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/lib/python2.7/dist-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /usr/lib/python2.7/dist-packages (from pandas)
Requirement already satisfied (use --upgrade …Run Code Online (Sandbox Code Playgroud)