繁体   English   中英

使用Anaconda安装tweepy的问题

[英]Issues with installing tweepy with Anaconda

我在尝试为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

我得到与您相同的确切错误。 如果您检查tweepy的Github https://github.com/tweepy/tweepy,您将会看到安装tweepy的最简单方法是使用pip ,因此您应该遵循这种方式。

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

conda install pip

然后再次在命令提示符下

pip install tweepy

现在应该可以工作了

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM