在Macos上使用anaconda解决与urllib3的冲突以安装AWS elastic beanstalk CLI?

2024-10-01 07:50:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用conda install -c davidbgonzalez awsebcli为aws elastic beanstalk安装cli,但始终遇到以下错误:

/Users/deepak/.local/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.23) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:
  - awsebcli
  - urllib3
Use "conda info <package>" to see the dependencies for each package.

现在这个错误出现在许多库中——不仅仅是urllib3;但是对于每一个库,我都可以通过使用conda uninstall或{}来解决。但是,对于urllib3,如果卸载,conda命令本身就不起作用,因为它说找不到requests package,如果我更新urllib3-也没什么区别,冲突仍然存在,我无法继续awsebcli安装。在

帮忙吗?在

附言:我使用MacOS和Conda4.5.9安装和Python2.7.14。 我尝试了一个pip install awsebcli-它安装正确,但我无法找到可执行文件,因此不确定如何将其包含到“$PATH”变量中。所以,我想我需要使用conda安装,因为这是我在任何地方使用的主要python。在

更新: 这是conda info urllib3的结果

^{pr2}$

我使用pip uninstall卸载了加密和idna,但是冲突没有发生-当我conda install -c davidbgonzalez awsebcli时,我得到了相同的错误。在

这里怎么了?在


Tags: installpiptoinfoawspackage错误requests
1条回答
网友
1楼 · 发布于 2024-10-01 07:50:58

可能是您的condalib目录中已经有一个urllib3。在尝试安装awsebcli之前,您是否尝试过卸载urlliub3?在

无论如何,使用conda安装{}不受正式支持。此外,conda install -c davidbgonzalez awsebcli安装了一个将近2年的awsebcli版本。在

I tried a pip install awsebcli- and it installed properly, but I'm not able to locate the executable and thus not sure how to include it ...

你把它安装成sudo了吗?如果是这样,它将使您的用户无法读取(因为它不在您的路径中)。这是一个常见的陷阱。我建议使用virtualenv with ^{} for the sanest experience。让我知道这是否有效。在

相关问题 更多 >