【问题标题】:Issues with installing tweepy with Anaconda使用 Anaconda 安装 tweepy 的问题
【发布时间】:2018-02-11 16:35:11
【问题描述】:

我在尝试为 python 安装 Tweepy 包时遇到此错误(我正在使用 anconda 提示符):

ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'conda-forge::pyjwt-1.5.3-py_0'.
CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda2\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
Attempting to roll back.


CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda2\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.

我按照建议运行了“conda clean --packages”,然后尝试使用conda install -c conda-forge tweepy 再次安装它,只要说它不起作用,我就会收到以下错误:

ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'conda-forge::pyjwt-1.5.3-py_0'.
CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda2\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
Attempting to roll back.


CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda2\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.

这里有什么帮助吗?我正在使用 python 2.7、Anconda2-5.0.1 和 Windows 10

【问题讨论】:

    标签: python anaconda tweepy


    【解决方案1】:

    我得到了和你一样的错误。如果您查看 tweepy 的 Github https://github.com/tweepy/tweepyyou,您会看到安装 tweepy 的最简单方法是使用 pip,因此您应该按照这种方式进行操作。

    因此,如果您尚未使用 conda 安装 pip,请在 conda 命令提示符下键入

    conda install pip
    

    然后在命令提示符下再次

    pip install tweepy

    它现在应该可以工作了

    【讨论】:

    • 是的,使用 pip 相当混乱,当你有一个专用的 anaconda-cmd 时,感谢它的工作!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-04-16
    • 1970-01-01
    • 2016-07-17
    • 2016-09-11
    • 1970-01-01
    • 2018-04-18
    • 1970-01-01
    相关资源
    最近更新 更多