在 Windows 上安装 tweepy 时出错 [英] Error installing tweepy on windows

查看:40
本文介绍了在 Windows 上安装 tweepy 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Python 和 tweepy 的新手.我曾尝试寻找答案,但一直无法实现.

I am new to Python and tweepy. I have tried searching for an answer but haven't been able to get this working.

我有 Java 6(对于另一个项目,不能更改为 7)、python 2.7,并且我已经在 C 驱动器中下载并解压了 tweepy.

I have Java 6 (can't change to 7, for another project), python 2.7 and I have downloaded and extracted tweepy in my C drive.

Java 和 python 都在 PATH 变量中.我正在尝试安装 tweepy,但不断收到此错误.

Java and python are both in the PATH variables. I am trying to install tweepy and I keep getting this error.

C:\>cd C:\tweepy

C:\tweepy>python
Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>setup.py build
  File "<stdin>", line 1
    setup.py build
                 ^
SyntaxError: invalid syntax
>>> setup.py install
  File "<stdin>", line 1
    setup.py install
                   ^
SyntaxError: invalid syntax
>>>

我哪里出错了?是配置问题吗?

Where am I going wrong? Is it a configuration issue?

推荐答案

另一种方法是使用 pip(如果您已安装).运行

another way is to use pip (if you have it installed). run

pip install tweepy

它应该可以正常工作.

这篇关于在 Windows 上安装 tweepy 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆