我正在尝试在我的conda环境(运行python3.6)中安装awscli的特定版本。正如另一篇文章中所建议的,我已经尝试将conda-forge
添加到我当前的频道中。在
当我运行命令conda install -p /Users/myname/anaconda3/envs/py36 awscli==1.11.156 -y
此消息出错:
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- awscli==1.11.156
Current channels:
- https://repo.continuum.io/pkgs/main/osx-64
- https://repo.continuum.io/pkgs/main/noarch
- https://repo.continuum.io/pkgs/free/osx-64
- https://repo.continuum.io/pkgs/free/noarch
- https://repo.continuum.io/pkgs/r/osx-64
- https://repo.continuum.io/pkgs/r/noarch
- https://repo.continuum.io/pkgs/pro/osx-64
- https://repo.continuum.io/pkgs/pro/noarch
- https://conda.anaconda.org/conda-forge/osx-64
- https://conda.anaconda.org/conda-forge/noarch
引用杰克·范德普拉斯的话:
您可以尝试激活虚拟环境,然后使用任何标准方法进行安装。假设您已经创建了一个名为py36的conda虚拟环境:
或者在窗户上
^{pr2}$然后只需使用任何标准安装方法,例如:
缺点是conda没有管理使用pip安装的包的依赖关系,但在大多数情况下它是可以的。在
相关问题 更多 >
编程相关推荐